summaryrefslogtreecommitdiffstats
path: root/drivers/clk/meson/meson8b.h
diff options
context:
space:
mode:
authorMartin Blumenstingl2018-11-22 22:40:17 +0100
committerNeil Armstrong2018-11-23 15:11:58 +0100
commita7d19b05ce817d60ae672c4c112e77892978dc3c (patch)
treef07c890e644f817320873818cae7ee895aa412f9 /drivers/clk/meson/meson8b.h
parentclk: meson: meson8b: rename cpu_div2/cpu_div3 to cpu_in_div2/cpu_in_div3 (diff)
downloadkernel-qcow2-linux-a7d19b05ce817d60ae672c4c112e77892978dc3c.tar.gz
kernel-qcow2-linux-a7d19b05ce817d60ae672c4c112e77892978dc3c.tar.xz
kernel-qcow2-linux-a7d19b05ce817d60ae672c4c112e77892978dc3c.zip
clk: meson: meson8b: add the CPU clock post divider clocks
There are four CPU clock post dividers: - ABP - PERIPH (used for the ARM global timer and ARM TWD timer) - AXI - L2 DRAM Each of these clocks consists of two clocks: - a mux to select between "cpu_clk" divided by 2, 3, 4, 5, 6, 7 or 8 - a "_clk_dis" gate. The public S805 datasheet states that this should be set to 1 to disable the clock, the default value is 0. There is also a hint that these are "just in case" bits which only exist in case the corresponding mux implementation does not allow glitch-free parent changes (the muxes are designed in a way that the clock can stay enabled when changing the mux). It's still good practise to describe this clock even if we're not supposed to modify it. Thus this uses the read-only gate ops. Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Acked-by: Jerome Brunet <jbrunet@baylibre.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Link: https://lkml.kernel.org/r/20181122214017.25643-5-martin.blumenstingl@googlemail.com
Diffstat (limited to 'drivers/clk/meson/meson8b.h')
-rw-r--r--drivers/clk/meson/meson8b.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/clk/meson/meson8b.h b/drivers/clk/meson/meson8b.h
index 9cba34c6cb92..0abb331162ab 100644
--- a/drivers/clk/meson/meson8b.h
+++ b/drivers/clk/meson/meson8b.h
@@ -78,8 +78,19 @@
#define CLKID_PLL_FIXED_DCO 113
#define CLKID_PLL_VID_DCO 114
#define CLKID_PLL_SYS_DCO 115
+#define CLKID_CPU_CLK_DIV2 116
+#define CLKID_CPU_CLK_DIV3 117
+#define CLKID_CPU_CLK_DIV4 118
+#define CLKID_CPU_CLK_DIV5 119
+#define CLKID_CPU_CLK_DIV6 120
+#define CLKID_CPU_CLK_DIV7 121
+#define CLKID_CPU_CLK_DIV8 122
+#define CLKID_ABP_SEL 123
+#define CLKID_PERIPH_SEL 125
+#define CLKID_AXI_SEL 127
+#define CLKID_L2_DRAM_SEL 129
-#define CLK_NR_CLKS 116
+#define CLK_NR_CLKS 131
/*
* include the CLKID and RESETID that have