From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ns.km20343-01.keymachine.de ([84.19.182.79] helo=km20343-01.keymachine.de) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UMuaU-0007DO-0P for barebox@lists.infradead.org; Tue, 02 Apr 2013 06:20:54 +0000 From: Lucas Stach Date: Tue, 2 Apr 2013 08:19:11 +0200 Message-Id: <1364883552-6563-10-git-send-email-dev@lynxeye.de> In-Reply-To: <1364883552-6563-1-git-send-email-dev@lynxeye.de> References: <1364883552-6563-1-git-send-email-dev@lynxeye.de> 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" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v3 09/10] tegra: add generic meminit To: barebox@lists.infradead.org ODMdata tells us how much RAM is installed, so no need to define this at the board level. Signed-off-by: Lucas Stach --- arch/arm/boards/toshiba-ac100/board.c | 8 -------- arch/arm/mach-tegra/tegra20.c | 9 +++++++++ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/arch/arm/boards/toshiba-ac100/board.c b/arch/arm/boards/toshiba-ac100/board.c index 0eb85c5..51232ef 100644 --- a/arch/arm/boards/toshiba-ac100/board.c +++ b/arch/arm/boards/toshiba-ac100/board.c @@ -23,14 +23,6 @@ #include #include -static int ac100_mem_init(void) -{ - arm_add_mem_device("ram0", 0x0, SZ_512M); - - return 0; -} -mem_initcall(ac100_mem_init); - static struct ehci_platform_data ehci_pdata = { .flags = EHCI_HAS_TT, }; diff --git a/arch/arm/mach-tegra/tegra20.c b/arch/arm/mach-tegra/tegra20.c index 9104c3b..2b95994 100644 --- a/arch/arm/mach-tegra/tegra20.c +++ b/arch/arm/mach-tegra/tegra20.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include @@ -39,3 +40,11 @@ static int tegra20_add_debug_console(void) return 0; } console_initcall(tegra20_add_debug_console); + +static int tegra20_mem_init(void) +{ + arm_add_mem_device("ram0", 0x0, tegra20_get_ramsize()); + + return 0; +} +mem_initcall(tegra20_mem_init); -- 1.8.1.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox