mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Lucas Stach <dev@lynxeye.de>
To: barebox@lists.infradead.org
Subject: [PATCH v5 12/13] tegra: add generic meminit
Date: Fri, 12 Apr 2013 12:28:24 +0200	[thread overview]
Message-ID: <1365762505-2540-12-git-send-email-dev@lynxeye.de> (raw)
In-Reply-To: <1365762505-2540-1-git-send-email-dev@lynxeye.de>

ODMdata tells us how much RAM is installed, so no need to define this at
the board level.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
 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 <usb/ehci.h>
 #include <mach/iomap.h>
 
-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 9e14c98..cc2d748 100644
--- a/arch/arm/mach-tegra/tegra20.c
+++ b/arch/arm/mach-tegra/tegra20.c
@@ -17,6 +17,7 @@
 #include <common.h>
 #include <init.h>
 #include <ns16550.h>
+#include <asm/memory.h>
 #include <mach/iomap.h>
 #include <mach/lowlevel.h>
 
@@ -54,3 +55,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

  parent reply	other threads:[~2013-04-12 10:28 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-12 10:28 [PATCH v5 01/13] tegra: pull in iomap.h from the Linux kernel Lucas Stach
2013-04-12 10:28 ` [PATCH v5 02/13] tegra: switch to proper CPU type Lucas Stach
2013-04-12 10:28 ` [PATCH v5 03/13] tegra: unify spelling in Kconfig with Linux kernel Lucas Stach
2013-04-12 10:28 ` [PATCH v5 04/13] tegra: introduce Tegra 20 SoC type Lucas Stach
2013-04-12 10:28 ` [PATCH v5 05/13] tegra: move default textbase Lucas Stach
2013-04-12 10:28 ` [PATCH v5 06/13] tegra: switch to DT only Lucas Stach
2013-04-12 10:28 ` [PATCH v5 07/13] tegra: add driver for the clock and reset module Lucas Stach
2013-04-12 10:28 ` [PATCH v5 08/13] tegra: add T20 timer driver Lucas Stach
2013-04-12 10:28 ` [PATCH v5 09/13] tegra: add T20 power management controller driver Lucas Stach
2013-04-12 10:28 ` [PATCH v5 10/13] tegra: add common lowlevel startup Lucas Stach
2013-04-12 10:28 ` [PATCH v5 11/13] tegra: add generic debug UART support Lucas Stach
2013-04-12 10:28 ` Lucas Stach [this message]
2013-04-12 10:28 ` [PATCH v5 13/13] tegra: add GPIO controller driver Lucas Stach
2013-04-13 18:59 ` [PATCH v5 01/13] tegra: pull in iomap.h from the Linux kernel antonynpavlov
2013-04-14  8:46   ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1365762505-2540-12-git-send-email-dev@lynxeye.de \
    --to=dev@lynxeye.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox