From: Colin Cross Date: Tue, 28 Dec 2010 22:56:19 +0000 (-0800) Subject: ARM: tegra: stingray: Set the sdmmc tap delay for wifi X-Git-Tag: firefly_0821_release~9834^2~211 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f9ae9d60f43221229f99cac4e04a5fb4d3b6bd0b;p=firefly-linux-kernel-4.4.55.git ARM: tegra: stingray: Set the sdmmc tap delay for wifi Change-Id: Ia9b029738945c14f2fa6e6077cd20d4e191c2537 Signed-off-by: Colin Cross --- diff --git a/arch/arm/mach-tegra/board-stingray.c b/arch/arm/mach-tegra/board-stingray.c index e366b8a59823..baa36db96688 100644 --- a/arch/arm/mach-tegra/board-stingray.c +++ b/arch/arm/mach-tegra/board-stingray.c @@ -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.