ARM:tegra:cardhu: Enable PCIe for cardhu, E1186 & E1187
Jay Agarwal [Fri, 30 Mar 2012 09:34:43 +0000 (14:34 +0530)]
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>

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

index 4e1d306..ec6b6ec 100644 (file)
@@ -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)