Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: tegra: Correct Tegra210 UTMIPLL poweron delay

Increased Tegra210 UTMIPLL power on delay to 20us (spec maximum is 15us).
Also remove a few empty lines to make it more clear the ACTIVE_DLY_COUNT
and ENABLE_DLY_COUNT fields.

Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Thierry Reding <treding@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

authored by

Alex Frid and committed by
Stephen Boyd
71422dbb 2f924ac3

+3 -3
+3 -3
drivers/clk/tegra/clk-tegra210.c
··· 2472 2472 reg |= UTMIP_PLL_CFG2_STABLE_COUNT(utmi_parameters[i].stable_count); 2473 2473 2474 2474 reg &= ~UTMIP_PLL_CFG2_ACTIVE_DLY_COUNT(~0); 2475 - 2476 2475 reg |= 2477 2476 UTMIP_PLL_CFG2_ACTIVE_DLY_COUNT(utmi_parameters[i].active_delay_count); 2478 2477 writel_relaxed(reg, clk_base + UTMIP_PLL_CFG2); 2479 2478 2480 2479 /* Program UTMIP PLL delay and oscillator frequency counts */ 2481 2480 reg = readl_relaxed(clk_base + UTMIP_PLL_CFG1); 2482 - reg &= ~UTMIP_PLL_CFG1_ENABLE_DLY_COUNT(~0); 2483 2481 2482 + reg &= ~UTMIP_PLL_CFG1_ENABLE_DLY_COUNT(~0); 2484 2483 reg |= 2485 2484 UTMIP_PLL_CFG1_ENABLE_DLY_COUNT(utmi_parameters[i].enable_delay_count); 2486 2485 ··· 2495 2496 reg &= ~UTMIP_PLL_CFG1_FORCE_PLL_ENABLE_POWERDOWN; 2496 2497 reg |= UTMIP_PLL_CFG1_FORCE_PLL_ENABLE_POWERUP; 2497 2498 writel_relaxed(reg, clk_base + UTMIP_PLL_CFG1); 2498 - udelay(1); 2499 + 2500 + udelay(20); 2499 2501 2500 2502 /* Enable samplers for SNPS, XUSB_HOST, XUSB_DEV */ 2501 2503 reg = readl_relaxed(clk_base + UTMIP_PLL_CFG2);