ARM: tegra: norrin: disable clock gating for SDIO
Rakesh Goyal [Tue, 3 Dec 2013 13:26:07 +0000 (18:26 +0530)]
1) Enable prepower for wifi
2) Disable sdio clock gating

bug 1408537

Change-Id: I782602b9929b9b2fa82592f8c97126f9de4471f0
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: http://git-master/r/337852
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>

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

index 60596f3..35d84a8 100644 (file)
@@ -383,7 +383,8 @@ static int __init ardbeg_wifi_prepower(void)
        if (!of_machine_is_compatible("nvidia,ardbeg") &&
                !of_machine_is_compatible("nvidia,laguna") &&
                !of_machine_is_compatible("nvidia,ardbeg_sata") &&
-               !of_machine_is_compatible("nvidia,tn8"))
+               !of_machine_is_compatible("nvidia,tn8") &&
+               !of_machine_is_compatible("nvidia,norrin"))
                return 0;
        ardbeg_wifi_power(1);
 
@@ -436,6 +437,12 @@ int __init ardbeg_sdhci_init(void)
                tegra_sdhci_platform_data3.uhs_mask = MMC_MASK_HS200;
        }
 
+       if (board_info.board_id == BOARD_PM374 ||
+               board_info.board_id == BOARD_PM358 ||
+               board_info.board_id == BOARD_PM363 ||
+               board_info.board_id == BOARD_PM359)
+                       tegra_sdhci_platform_data0.disable_clock_gate = 1;
+
        platform_device_register(&tegra_sdhci_device3);
        platform_device_register(&tegra_sdhci_device2);
        platform_device_register(&tegra_sdhci_device0);