diff options
author | Simon Glass <sjg@chromium.org> | 2011-10-03 14:55:44 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-10-06 20:54:50 -0700 |
commit | 6f04d85c748e718affff1d3327c2948724033f29 (patch) | |
tree | e9d57f115eee752d054e31253bbb1dcb3cbb8888 /arch | |
parent | 88aa2ce35dd0ead61a7efcdbef6d0f35322bb744 (diff) |
tegra3: Detect amount of DRAM correctly
Rather than hard-code this, we find out the amount of DRAM we have
using the official function.
BUG=chromium-os:21033
TEST=build and boot on Seaboard
Change-Id: Ibb20f1babc149457857292336ac588cf97fe35fa
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/8702
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/cpu/armv7/tegra3/board.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/cpu/armv7/tegra3/board.c b/arch/arm/cpu/armv7/tegra3/board.c index 861174e89e0..780328d11df 100644 --- a/arch/arm/cpu/armv7/tegra3/board.c +++ b/arch/arm/cpu/armv7/tegra3/board.c @@ -29,8 +29,9 @@ DECLARE_GLOBAL_DATA_PTR; -unsigned int board_query_sdram_size(void) +int dram_init(void) { - /* TBD - check odmdata in PMC scratch reg */ - return 0x40000000; /* Cardhu = 1GB */ + /* We do not initialise DRAM here. We just query the size */ + gd->ram_size = board_query_sdram_size(); + return 0; } |