summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-cardhu-power.c
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2011-09-27 15:20:07 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:49:28 -0800
commita226e7c73a8aa41f772cedda1ac2f14c000b0065 (patch)
tree12ae01f7509f8a5299810f2da069ffc9e603df19 /arch/arm/mach-tegra/board-cardhu-power.c
parenta6be2a4583f8616577d9a8f7c8ccee85f19c8bd1 (diff)
arm: tegra: cardhu: Support Fab A05
Support for E1291-A05 board. bug 881745 Reviewed-on: http://git-master/r/58053 (cherry picked from commit be104b795f0c46b8bbe1e45ca618fed74d81a7c6) Change-Id: I0137f9e13ee9c01bd60125589b16023c899389c9 Reviewed-on: http://git-master/r/59287 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Rebase-Id: R6450506e02427f4bae13857a52ed43dd530e720a
Diffstat (limited to 'arch/arm/mach-tegra/board-cardhu-power.c')
-rw-r--r--arch/arm/mach-tegra/board-cardhu-power.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu-power.c b/arch/arm/mach-tegra/board-cardhu-power.c
index 75180a3f34d0..c35b7e17cbd0 100644
--- a/arch/arm/mach-tegra/board-cardhu-power.c
+++ b/arch/arm/mach-tegra/board-cardhu-power.c
@@ -412,8 +412,10 @@ int __init cardhu_regulator_init(void)
}
}
- /* E1291-A04: Enable DEV_SLP and enable sleep on GPIO2 */
- if ((board_info.board_id == BOARD_E1291) && (board_info.fab == BOARD_FAB_A04)) {
+ /* 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))) {
tps_platform.dev_slp_en = true;
tps_platform.gpio_init_data = tps_gpio_pdata_e1291_a04;
tps_platform.num_gpioinit_data =
@@ -694,7 +696,7 @@ GREG_INIT(11, en_vdd_sdmmc1, en_vdd_sdmmc1, "vdd_3v3_devices", 0, 0, T
GREG_INIT(12, en_3v3_pex_hvdd, en_3v3_pex_hvdd, "hvdd_pex_pmu", 0, 0, TEGRA_GPIO_PL7, false, 0, 0, 0, 0);
GREG_INIT(13, en_1v8_cam, en_1v8_cam, "vdd_gen1v8", 0, 0, TEGRA_GPIO_PBB4, false, 0, 0, 0, 0);
-/* E1291-A04 specific */
+/* E1291-A04/A05 specific */
GREG_INIT(1, en_5v0_a04, en_5v0, NULL, 0, 0, TPS6591X_GPIO_8, false, 0, 0, 0, 0);
GREG_INIT(2, en_ddr_a04, en_ddr, NULL, 0, 0, TPS6591X_GPIO_7, false, 0, 0, 0, 0);
GREG_INIT(3, en_3v3_sys_a04, en_3v3_sys, NULL, 0, 0, TPS6591X_GPIO_6, false, 0, 0, 0, 0);
@@ -882,7 +884,7 @@ static struct gpio_switch_regulator_subdev_data *gswitch_subdevs_e1291_a03[] = {
E1198_GPIO_REG
};
-/* Gpio switch regulator platform data for E1291 A04*/
+/* Gpio switch regulator platform data for E1291 A04/A05*/
static struct gpio_switch_regulator_subdev_data *gswitch_subdevs_e1291_a04[] = {
COMMON_GPIO_REG_E1291_A04
E1291_A03_GPIO_REG
@@ -920,7 +922,8 @@ int __init cardhu_gpio_switch_regulator_init(void)
gswitch_pdata.num_subdevs =
ARRAY_SIZE(gswitch_subdevs_e1291_a03);
gswitch_pdata.subdevs = gswitch_subdevs_e1291_a03;
- } else if (board_info.fab == BOARD_FAB_A04) {
+ } else if ((board_info.fab == BOARD_FAB_A04) ||
+ (board_info.fab == BOARD_FAB_A05)) {
gswitch_pdata.num_subdevs =
ARRAY_SIZE(gswitch_subdevs_e1291_a04);
gswitch_pdata.subdevs = gswitch_subdevs_e1291_a04;
@@ -986,8 +989,10 @@ int __init cardhu_suspend_init(void)
tegra_get_board_info(&board_info);
tegra_get_pmu_board_info(&pmu_board_info);
- /* For PMU Fab A03 and A04 make core_pwr_req to high */
- if ((pmu_board_info.fab == BOARD_FAB_A03) || (pmu_board_info.fab == BOARD_FAB_A04))
+ /* For PMU Fab A03, A04 and A05 make core_pwr_req to high */
+ if ((pmu_board_info.fab == BOARD_FAB_A03) ||
+ (pmu_board_info.fab == BOARD_FAB_A04) ||
+ (pmu_board_info.fab == BOARD_FAB_A05))
cardhu_suspend_data.corereq_high = true;
/* CORE_PWR_REQ to be high for all processor/pmu board whose sku bit 0