From f9ae9d60f43221229f99cac4e04a5fb4d3b6bd0b Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Tue, 28 Dec 2010 14:56:19 -0800 Subject: [PATCH] ARM: tegra: stingray: Set the sdmmc tap delay for wifi Change-Id: Ia9b029738945c14f2fa6e6077cd20d4e191c2537 Signed-off-by: Colin Cross --- arch/arm/mach-tegra/board-stingray.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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. -- 2.34.1