[U-Boot] [PATCH 1/2] ARM: uniphier: remove unneeded mdelay(1) in PLL setting function

This delay is already cared by the callers of this function.
Signed-off-by: Masahiro Yamada yamada.masahiro@socionext.com ---
arch/arm/mach-uniphier/clk/pll-base-ld20.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/arch/arm/mach-uniphier/clk/pll-base-ld20.c b/arch/arm/mach-uniphier/clk/pll-base-ld20.c index a5027d2..caa631d 100644 --- a/arch/arm/mach-uniphier/clk/pll-base-ld20.c +++ b/arch/arm/mach-uniphier/clk/pll-base-ld20.c @@ -67,8 +67,6 @@ int uniphier_ld20_sscpll_ssc_en(unsigned long reg_base) if (!base) return -ENOMEM;
- mdelay(1); - tmp = readl(base); /* SSCPLLCTRL */ tmp |= SC_PLLCTRL_SSC_EN; writel(tmp, base);

For Electro-Magnetic Compatibility.
Signed-off-by: Masahiro Yamada yamada.masahiro@socionext.com ---
arch/arm/mach-uniphier/clk/pll-ld20.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/arch/arm/mach-uniphier/clk/pll-ld20.c b/arch/arm/mach-uniphier/clk/pll-ld20.c index 5e545da..fd68f31 100644 --- a/arch/arm/mach-uniphier/clk/pll-ld20.c +++ b/arch/arm/mach-uniphier/clk/pll-ld20.c @@ -24,6 +24,12 @@ int uniphier_ld20_pll_init(const struct uniphier_board_data *bd)
mdelay(1);
+ uniphier_ld20_sscpll_ssc_en(SC_CPLLCTRL); + uniphier_ld20_sscpll_ssc_en(SC_SPLL2CTRL); + uniphier_ld20_sscpll_ssc_en(SC_MPLLCTRL); + uniphier_ld20_sscpll_ssc_en(SC_VPPLLCTRL); + uniphier_ld20_sscpll_ssc_en(SC_GPPLLCTRL); + if (dpll_ssc_rate > 0) { uniphier_ld20_sscpll_ssc_en(SC_DPLL0CTRL); uniphier_ld20_sscpll_ssc_en(SC_DPLL1CTRL);

2016-10-19 16:26 GMT+09:00 Masahiro Yamada yamada.masahiro@socionext.com:
This delay is already cared by the callers of this function.
Signed-off-by: Masahiro Yamada yamada.masahiro@socionext.com
Applied to u-boot-uniphier/master.
participants (1)
-
Masahiro Yamada