arm: tegra: pluto: Add support for Varuna
Gaurav Batra [Tue, 16 Oct 2012 01:06:27 +0000 (18:06 -0700)]
Signed-off-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-on: http://git-master/r/144712
(cherry picked from commit 7f8d4fe2fb1d57c52de427bcdb684292014a8de8)

Change-Id: I85c627260d52a53bd14774d638e3168ca01a0417
Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/147883
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Rebase-Id: R09c8bbdb3173b9c2aa3111990c0ed8992476bd7a

arch/arm/mach-tegra/board-pluto-memory.c
arch/arm/mach-tegra/board-pluto-sensors.c
arch/arm/mach-tegra/tegra-board-id.h

index c2a959d..db739cd 100644 (file)
@@ -433,10 +433,11 @@ static struct tegra11_emc_pdata *pluto_get_emc_data(void)
 
        tegra_get_board_info(&board_info);
 
-       if (board_info.board_id != BOARD_E1580)
-               return NULL;
+       if (board_info.board_id == BOARD_E1580 ||
+           board_info.board_id == BOARD_E1575)
+               return &e1580_no_dram_pdata;
 
-       return &e1580_no_dram_pdata;
+       return NULL;
 }
 
 int __init pluto_emc_init(void)
index 597b8aa..679ea42 100644 (file)
@@ -490,7 +490,8 @@ static int pluto_nct1008_init(void)
        int ret = 0;
 
 #if defined(CONFIG_ARCH_TEGRA_11x_SOC)
-       if (board_info.board_id == BOARD_E1580) {
+       if (board_info.board_id == BOARD_E1580 ||
+           board_info.board_id == BOARD_E1575) {
                nct1008_port = TEGRA_GPIO_PX6;
        } else {
                nct1008_port = TEGRA_GPIO_PX6;
index e7e07c5..1b55b96 100644 (file)
@@ -28,6 +28,7 @@
 #define BOARD_E1614   0x064E
 #define BOARD_E1641   0x0669
 #define BOARD_E1580   0x062C
+#define BOARD_E1575   0x0627
 
 /* Board Fab version */
 #define BOARD_FAB_A00                  0x0