ARM: tegra: cardhu: add initial A07 support
Ray Poudrier [Thu, 17 May 2012 01:49:20 +0000 (18:49 -0700)]
Bug 970890

Change-Id: I24c3b1e2c621afbb90ced552194403f147e20a6c
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/102984
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

arch/arm/mach-tegra/board-cardhu-power.c
arch/arm/mach-tegra/board-cardhu.h

index 1bc811e..79d8d61 100644 (file)
@@ -486,7 +486,8 @@ int __init cardhu_regulator_init(void)
        /* E1291-A04/A05: Enable DEV_SLP and enable sleep on GPIO2 */
        if ((board_info.board_id == BOARD_E1291) &&
                        ((board_info.fab == BOARD_FAB_A04) ||
-                        (board_info.fab == BOARD_FAB_A05))) {
+                        (board_info.fab == BOARD_FAB_A05) ||
+                        (board_info.fab == BOARD_FAB_A07))) {
                tps_platform.dev_slp_en = true;
                tps_platform.gpio_init_data = tps_gpio_pdata_e1291_a04;
                tps_platform.num_gpioinit_data =
@@ -1027,7 +1028,8 @@ int __init cardhu_fixed_regulator_init(void)
                        nfixreg_devs = ARRAY_SIZE(fixed_reg_devs_e1291_a03);
                        fixed_reg_devs = fixed_reg_devs_e1291_a03;
                } else if ((board_info.fab == BOARD_FAB_A04) ||
-                               (board_info.fab == BOARD_FAB_A05)) {
+                               (board_info.fab == BOARD_FAB_A05) ||
+                               (board_info.fab == BOARD_FAB_A07)) {
                        nfixreg_devs = ARRAY_SIZE(fixed_reg_devs_e1291_a04);
                        fixed_reg_devs = fixed_reg_devs_e1291_a04;
                } else {
index ba2a0d0..27d9e47 100644 (file)
@@ -76,6 +76,8 @@
 #define BOARD_FAB_A03                  0x3
 #define BOARD_FAB_A04                  0x4
 #define BOARD_FAB_A05                  0x5
+#define BOARD_FAB_A06                  0x6
+#define BOARD_FAB_A07                  0x7
 
 /* Display Board ID */
 #define BOARD_DISPLAY_PM313            0x030D