arm: tegra: Add SATA support
Yen Lin [Thu, 13 Jan 2011 20:37:10 +0000 (12:37 -0800)]
Original-Change-Id: I18c63f1c69e155ddc1cec1718af9684d861815b7
Reviewed-on: http://git-master/r/15863
Tested-by: Yen Lin <yelin@nvidia.com>
Reviewed-by: Rhyland Klein <rklein@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/16485
Original-Change-Id: I6afa5a097b4fc7d6c45614107118458da0d9d888

Rebase-Id: R3a0f1d7f8f9ac15fa2f2ef737f85129059e83ae0

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

index c064f48..9641256 100644 (file)
@@ -342,6 +342,16 @@ void tegra_usb_otg_host_unregister(struct platform_device *pdev)
        platform_device_unregister(pdev);
 }
 
+
+#ifdef CONFIG_SATA_AHCI_TEGRA
+static void cardhu_sata_init(void)
+{
+       platform_device_register(&tegra_sata_device);
+}
+#else
+static void cardhu_sata_init(void) { }
+#endif
+
 static void __init tegra_cardhu_init(void)
 {
        tegra_common_init();
@@ -375,6 +385,7 @@ static void __init tegra_cardhu_init(void)
        cardhu_panel_init();
        cardhu_sensors_init();
        cardhu_bt_rfkill();
+       cardhu_sata_init();
 }
 
 static void __init tegra_cardhu_reserve(void)