aboutsummaryrefslogtreecommitdiffstats
path: root/board
diff options
context:
space:
mode:
authorTom Warren2013-04-10 12:32:32 -0500
committerTom Warren2013-04-15 13:01:38 -0500
commit49493cb7144f0c51a5aaecc75fcd1b3f157633ba (patch)
treef83f228d8367c5920f93af85ebedfb7697355144 /board
parentd94c2dbd0a55d742ab6ed9bd0c51b27ceed4084e (diff)
downloadu-boot-49493cb7144f0c51a5aaecc75fcd1b3f157633ba.tar.gz
u-boot-49493cb7144f0c51a5aaecc75fcd1b3f157633ba.tar.xz
u-boot-49493cb7144f0c51a5aaecc75fcd1b3f157633ba.zip
Tegra: Split tegra_get_chip_type() into soc & sku funcs
As suggested by Stephen Warren, use tegra_get_chip() to return the pure CHIPID for a Tegra SoC (i.e. 0x20 for Tegra20, 0x30 for Tegra30, etc.) and rename tegra_get_chip_type() to reflect its true function, i.e. tegra_get_chip_sku(), which returns an ID like TEGRA_SOC_T25, TEGRA_SOC_T33, etc. Signed-off-by: Tom Warren <twarren@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'board')
-rw-r--r--board/nvidia/common/emc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/nvidia/common/emc.c b/board/nvidia/common/emc.c
index 26b6ec7c3b..87d7aa25b7 100644
--- a/board/nvidia/common/emc.c
+++ b/board/nvidia/common/emc.c
@@ -40,7 +40,7 @@ int board_emc_init(void)
40{ 40{
41 unsigned rate; 41 unsigned rate;
42 42
43 switch (tegra_get_chip_type()) { 43 switch (tegra_get_chip_sku()) {
44 default: 44 default:
45 case TEGRA_SOC_T20: 45 case TEGRA_SOC_T20:
46 rate = EMC_SDRAM_RATE_T20; 46 rate = EMC_SDRAM_RATE_T20;