From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-la0-x230.google.com ([2a00:1450:4010:c03::230]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Tz8oC-0000Xo-AF for barebox@lists.infradead.org; Sat, 26 Jan 2013 16:40:48 +0000 Received: by mail-la0-f48.google.com with SMTP id fq13so251419lab.7 for ; Sat, 26 Jan 2013 08:40:46 -0800 (PST) From: Antony Pavlov Date: Sat, 26 Jan 2013 20:52:40 +0400 Message-Id: <1359219160-18500-5-git-send-email-antonynpavlov@gmail.com> In-Reply-To: <1359219160-18500-1-git-send-email-antonynpavlov@gmail.com> References: <1359219160-18500-1-git-send-email-antonynpavlov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 4/4] MIPS: dlink-dir-320: use mips_add_ram0() To: barebox@lists.infradead.org Signed-off-by: Antony Pavlov --- arch/mips/boards/dlink-dir-320/Makefile | 1 + arch/mips/boards/dlink-dir-320/board.c | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 arch/mips/boards/dlink-dir-320/board.c diff --git a/arch/mips/boards/dlink-dir-320/Makefile b/arch/mips/boards/dlink-dir-320/Makefile index ff1a655..9e14763 100644 --- a/arch/mips/boards/dlink-dir-320/Makefile +++ b/arch/mips/boards/dlink-dir-320/Makefile @@ -1 +1,2 @@ +obj-y += board.o obj-$(CONFIG_DRIVER_SERIAL_NS16550) += serial.o diff --git a/arch/mips/boards/dlink-dir-320/board.c b/arch/mips/boards/dlink-dir-320/board.c new file mode 100644 index 0000000..3eed6f0 --- /dev/null +++ b/arch/mips/boards/dlink-dir-320/board.c @@ -0,0 +1,12 @@ +#include +#include +#include +#include + +static int mem_init(void) +{ + mips_add_ram0(SZ_32M); + + return 0; +} +mem_initcall(mem_init); -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox