ARM: tegra: Ardbeg: Update SATA platform data
Ashwin Joshi [Tue, 1 Oct 2013 07:32:15 +0000 (12:32 +0530)]
Pass all board specific data for SATA from board file. Earlier it was
set in common code, moved it to board file.

Bug 1371545

Change-Id: Ice2642e3ee57cad5821224f4607b14559c4a785e
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/280631
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

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

index af22170..f254a47 100644 (file)
@@ -71,6 +71,7 @@
 #include <mach/tegra_fiq_debugger.h>
 #include <mach/xusb.h>
 #include <linux/platform_data/tegra_usb_modem_power.h>
+#include <linux/platform_data/tegra_ahci.h>
 
 #include "board.h"
 #include "board-ardbeg.h"
@@ -390,6 +391,11 @@ static struct platform_device tegra_rtc_device = {
 #ifdef CONFIG_SATA_AHCI_TEGRA
 static void bonaire_sata_init(void)
 {
+       struct tegra_ahci_platform_data *pdata;
+
+       pdata = tegra_sata_device.dev.platform_data;
+       pdata->pexp_gpio = PMU_TCA6416_GPIO(9);
+
        platform_device_register(&tegra_sata_device);
 }
 #else