diff options
author | Raj Jayaraman <rjayaraman@nvidia.com> | 2011-06-13 14:18:41 -0700 |
---|---|---|
committer | Niket Sirsi <nsirsi@nvidia.com> | 2011-06-21 14:45:26 -0700 |
commit | 62a5540a21fea8e5c9ef1b50da90b480f51534fc (patch) | |
tree | 4ad54abaae8455b13a583b89e91b9c5d721783f0 /arch | |
parent | 10dfe7aeb07c0fb080efec493b5ec31d20b53390 (diff) |
arm: tegra: cardhu: Modify modem w_disable control.
Gpio controlling w_disable has changed since Fab3.
Modify it accordingly.
Bug 819563
Change-Id: Idbeb9467168aa91c5cf942f72ec5d581a28dc4d1
Reviewed-on: http://git-master/r/36368
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-tegra/board-cardhu.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu.c b/arch/arm/mach-tegra/board-cardhu.c index f980aa67abf0..3eb75f0d30ee 100644 --- a/arch/arm/mach-tegra/board-cardhu.c +++ b/arch/arm/mach-tegra/board-cardhu.c @@ -679,7 +679,23 @@ static void cardhu_gps_init(void) static void cardhu_modem_init(void) { - tegra_gpio_enable(TEGRA_GPIO_PH5); + struct board_info board_info; + int w_disable_gpio; + + tegra_get_board_info(&board_info); + switch (board_info.board_id) { + case BOARD_E1291: + if (board_info.fab < 0x3) { + w_disable_gpio = TEGRA_GPIO_PH5; + } else { + w_disable_gpio = TEGRA_GPIO_PDD5; + } + tegra_gpio_enable(w_disable_gpio); + gpio_direction_input(w_disable_gpio); + break; + default: + break; + } } #ifdef CONFIG_SATA_AHCI_TEGRA |