summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPuneet Saxena <puneets@nvidia.com>2012-01-25 16:18:11 +0530
committerPuneet Saxena <puneets@nvidia.com>2012-02-07 02:00:04 -0800
commit5fbb64cdebd43d7f39c537748471436271a9e33a (patch)
treeb4d54909f6d3387c7d20ee5613270ec36dcf0747
parent380ebeba0ad7b7188c573703e87843d0f90bbb7d (diff)
tegra: Extend support for RAM size as 2GB
Add a case for returning RAM size as 2GB by reading PMC scratch20 register. BUG=chromium-os:23496 TEST=Build ok for Cardhu, Waluigi and Seaboard. Tested on Waluigi. Change-Id: I5dc8fdf7cd9718e5dd2ca24cd1f467c5b6e9a6aa Signed-off-by: Puneet Saxena <puneets@nvidia.com> Reviewed-on: https://gerrit.chromium.org/gerrit/14696
-rw-r--r--arch/arm/cpu/armv7/tegra-common/board.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/tegra-common/board.c b/arch/arm/cpu/armv7/tegra-common/board.c
index df79d95716f..5a57298db7e 100644
--- a/arch/arm/cpu/armv7/tegra-common/board.c
+++ b/arch/arm/cpu/armv7/tegra-common/board.c
@@ -49,7 +49,14 @@ unsigned int board_query_sdram_size(void)
return 0x10000000; /* 256 MB */
case 2:
return 0x20000000; /* 512 MB */
- case 3:
+ case 4:
+ return 0x40000000; /* 1GB */
+ case 8:
+ /*
+ * On tegra3, out of 2GB, 1MB(0xFFF00000 - FFFFFFFF) is used for
+ * Bootcode(IROM) and arm specific exception vector code.
+ */
+ return 0x7ff00000; /* 2GB - 1MB */
default:
return 0x40000000; /* 1GB */
}