ARM: tegra: stingray: Set the sdmmc tap delay for wifi
authorColin Cross <ccross@android.com>
Tue, 28 Dec 2010 22:56:19 +0000 (14:56 -0800)
committerColin Cross <ccross@android.com>
Thu, 30 Dec 2010 00:38:07 +0000 (16:38 -0800)
Change-Id: Ia9b029738945c14f2fa6e6077cd20d4e191c2537
Signed-off-by: Colin Cross <ccross@android.com>
arch/arm/mach-tegra/board-stingray.c

index e366b8a59823a28870d192982ee30e0502f9f61d..baa36db966887fdf90aa45946556a23a61204171 100644 (file)
@@ -899,6 +899,16 @@ static void __init tegra_stingray_init(void)
        tegra_init_suspend(&stingray_suspend);
        stingray_init_emc();
 
+       /* Set the SDMMC2 (wifi) tap delay to 6.  This value is determined
+        * based on propagation delay on the PCB traces. */
+       clk = clk_get_sys("sdhci-tegra.1", NULL);
+       if (!IS_ERR(clk)) {
+               tegra_sdmmc_tap_delay(clk, 6);
+               clk_put(clk);
+       } else {
+               pr_err("Failed to set wifi sdmmc tap delay\n");
+       }
+
        /* Stingray has a USB switch that disconnects the usb port from the T20
           unless a factory cable is used, the factory jumper is set, or the
           usb_data_en gpio is set.