summaryrefslogtreecommitdiff
path: root/arch/arm/mach-uniphier/sc64-regs.h
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-10-27 23:47:05 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2016-10-29 17:24:30 +0900
commit76466bd7be58c0059e5d44b31907cd1066b9697b (patch)
tree8e9044cacb1a8d9cd76852ce1a922f3b8b33320d /arch/arm/mach-uniphier/sc64-regs.h
parenta8b66ac87cc1d6ffd1b3693514e60edcf61fb678 (diff)
downloadu-boot-imx-76466bd7be58c0059e5d44b31907cd1066b9697b.zip
u-boot-imx-76466bd7be58c0059e5d44b31907cd1066b9697b.tar.gz
u-boot-imx-76466bd7be58c0059e5d44b31907cd1066b9697b.tar.bz2
ARM: uniphier: enable clocks to MIO/STDMAC on LD11 if USB is enabled
At the moment, the clk driver is not clever enough to automatically enable parent clocks like Linux. Enable the STDMAC clock explicitly if USB is enabled. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/arm/mach-uniphier/sc64-regs.h')
-rw-r--r--arch/arm/mach-uniphier/sc64-regs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-uniphier/sc64-regs.h b/arch/arm/mach-uniphier/sc64-regs.h
index b0a4281..d3aa185 100644
--- a/arch/arm/mach-uniphier/sc64-regs.h
+++ b/arch/arm/mach-uniphier/sc64-regs.h
@@ -52,6 +52,8 @@
#define SC_CLKCTRL (SC_BASE_ADDR | 0x2100)
#define SC_CLKCTRL3 (SC_BASE_ADDR | 0x2108)
#define SC_CLKCTRL4 (SC_BASE_ADDR | 0x210c)
+#define SC_CLKCTRL4_MIO (1 << 10)
+#define SC_CLKCTRL4_STDMAC (1 << 8)
#define SC_CLKCTRL4_PERI (1 << 7)
#define SC_CLKCTRL4_ETHER (1 << 6)
#define SC_CLKCTRL4_NAND (1 << 0)