summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-cardhu.c
diff options
context:
space:
mode:
authorJay Agarwal <jagarwal@nvidia.com>2012-03-30 15:04:43 +0530
committerSimone Willett <swillett@nvidia.com>2012-04-03 17:52:00 -0700
commit92496e563d86ac9696c138b76d11eaa9cf2b97d8 (patch)
treec8751cb3a9fcb76b8d5b78540786467b01d8fde0 /arch/arm/mach-tegra/board-cardhu.c
parent0081e1a9946ad6d98feabfab4fcba8e657248606 (diff)
ARM:tegra:cardhu: Enable PCIe for cardhu, E1186 & E1187
Do platform device registration for cardhu and E1186 & E1187 platforms only. Bug 790141 Change-Id: I70a0144604631a0dd9499699f892f9fc7ec14d56 Signed-off-by: Jay Agarwal <jagarwal@nvidia.com> Reviewed-on: http://git-master/r/93486 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-by: Krishna Thota <kthota@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-cardhu.c')
-rw-r--r--arch/arm/mach-tegra/board-cardhu.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu.c b/arch/arm/mach-tegra/board-cardhu.c
index 4e1d3060bc45..ec6b6ec58e1a 100644
--- a/arch/arm/mach-tegra/board-cardhu.c
+++ b/arch/arm/mach-tegra/board-cardhu.c
@@ -1049,8 +1049,12 @@ static void cardhu_pci_init(void)
cardhu_pci_platform_data.use_dock_detect = 1;
cardhu_pci_platform_data.gpio = DOCK_DETECT_GPIO;
}
- tegra_pci_device.dev.platform_data = &cardhu_pci_platform_data;
- platform_device_register(&tegra_pci_device);
+ if ((board_info.board_id == BOARD_E1186) ||
+ (board_info.board_id == BOARD_E1187) ||
+ (board_info.board_id == BOARD_E1291)) {
+ tegra_pci_device.dev.platform_data = &cardhu_pci_platform_data;
+ platform_device_register(&tegra_pci_device);
+ }
}
static void cardhu_modem_init(void)