From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp3.mail.ru ([94.100.176.131]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1U5aiw-0007Cy-51 for barebox@lists.infradead.org; Wed, 13 Feb 2013 11:42:03 +0000 From: Alexander Shiyan Date: Wed, 13 Feb 2013 15:41:42 +0400 Message-Id: <1360755704-24105-7-git-send-email-shc_work@mail.ru> In-Reply-To: <1360755704-24105-1-git-send-email-shc_work@mail.ru> References: <1360755704-24105-1-git-send-email-shc_work@mail.ru> 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 v2 7/9] ARM: clps711x: Move memory initialization in common CLPS711X location To: barebox@lists.infradead.org One memory initialization will be used on any CLPS711X-target, so move it in the common location. Signed-off-by: Alexander Shiyan --- arch/arm/boards/clep7212/clep7212.c | 10 ---------- arch/arm/mach-clps711x/devices.c | 12 ++++++++++++ 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/arch/arm/boards/clep7212/clep7212.c b/arch/arm/boards/clep7212/clep7212.c index b96e480..ec9a9cb 100644 --- a/arch/arm/boards/clep7212/clep7212.c +++ b/arch/arm/boards/clep7212/clep7212.c @@ -20,16 +20,6 @@ #include #include -static int clps711x_mem_init(void) -{ - ulong memsize = get_ram_size((ulong *)SDRAM0_BASE, SZ_32M); - - arm_add_mem_device("ram0", SDRAM0_BASE, memsize); - - return 0; -} -mem_initcall(clps711x_mem_init); - static int clps711x_devices_init(void) { u32 serial_h = 0, serial_l = readl(UNIQID); diff --git a/arch/arm/mach-clps711x/devices.c b/arch/arm/mach-clps711x/devices.c index de5813a..6c760db 100644 --- a/arch/arm/mach-clps711x/devices.c +++ b/arch/arm/mach-clps711x/devices.c @@ -9,11 +9,23 @@ #include #include +#include #include +#include #include +static int clps711x_mem_init(void) +{ + ulong memsize = get_ram_size((ulong *)SDRAM0_BASE, SZ_64M); + + arm_add_mem_device("ram0", SDRAM0_BASE, memsize); + + return 0; +} +mem_initcall(clps711x_mem_init); + inline static void _clps711x_setup_memcfg(int bank, u32 addr, u32 val) { u32 tmp = readl(addr); -- 1.7.3.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox