]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: uniphier: enable Peripherl clock to use UART in SPL
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 28 Apr 2016 06:37:14 +0000 (15:37 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 30 Apr 2016 16:09:17 +0000 (01:09 +0900)
This is needed to use UART on SPL.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm/mach-uniphier/early-clk/early-clk-ld20.c

index 37adb37a1f82e9132db2d162e8e6dbb8ca78c0cd..5201a559403a5fcb0cd385331a6373f2bf370aa2 100644 (file)
@@ -21,6 +21,10 @@ int uniphier_ld20_early_clk_init(const struct uniphier_board_data *bd)
        writel(tmp, SC_RSTCTRL7);
 
        /* provide clocks */
+       tmp = readl(SC_CLKCTRL4);
+       tmp |= SC_CLKCTRL4_PERI;
+       writel(tmp, SC_CLKCTRL4);
+
        tmp = readl(SC_CLKCTRL7);
        tmp |= SC_CLKCTRL7_UMCSB | SC_CLKCTRL7_UMC32 | SC_CLKCTRL7_UMC31 |
                                                        SC_CLKCTRL7_UMC30;