diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-01-15 14:59:03 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-01-17 09:00:40 +0900 |
commit | 78c627cf1f808d5ae9240809a81b71903bdf4fe2 (patch) | |
tree | 9193f6e6389c787efbea9b60ef9a567a09600a2e /arch/arm/mach-uniphier/clk/clk-early-ld11.c | |
parent | a314a245d14547df0a88e1ea568116fd7947daf4 (diff) | |
download | u-boot-imx-78c627cf1f808d5ae9240809a81b71903bdf4fe2.zip u-boot-imx-78c627cf1f808d5ae9240809a81b71903bdf4fe2.tar.gz u-boot-imx-78c627cf1f808d5ae9240809a81b71903bdf4fe2.tar.bz2 |
ARM: uniphier: split out UMC clock enable
The clock enable bits for UMC are more SoC-specific than for
the other hardware blocks. Separate the UMC clocks and the other
clocks for better code reuse across SoCs.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/arm/mach-uniphier/clk/clk-early-ld11.c')
-rw-r--r-- | arch/arm/mach-uniphier/clk/clk-early-ld11.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-uniphier/clk/clk-early-ld11.c b/arch/arm/mach-uniphier/clk/clk-early-ld11.c new file mode 100644 index 0000000..bb6f7a4 --- /dev/null +++ b/arch/arm/mach-uniphier/clk/clk-early-ld11.c @@ -0,0 +1,20 @@ +/* + * Copyright (C) 2016-2017 Socionext Inc. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include <linux/io.h> + +#include "../init.h" +#include "../sc64-regs.h" + +void uniphier_ld11_early_clk_init(void) +{ + u32 tmp; + + /* provide clocks */ + tmp = readl(SC_CLKCTRL4); + tmp |= SC_CLKCTRL4_PERI; + writel(tmp, SC_CLKCTRL4); +} |