aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatsuhiro Suzuki <suzuki.katsuhiro@socionext.com>2018-05-14 22:14:16 -0400
committerStephen Boyd <sboyd@kernel.org>2018-05-15 17:15:43 -0400
commitc5fc9cf244b175af63ac40a7e6d236cba64067c8 (patch)
treecf81009ba763b429f39ecce6927f24702488f6c6
parent60cc43fc888428bb2f18f08997432d426a243338 (diff)
clk: uniphier: add LD11/LD20 stream demux system clock
Add clock for MPEG2 transport stream I/O and demux system (HSC) on UniPhier LD11/LD20 SoCs. Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com> Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
-rw-r--r--drivers/clk/uniphier/clk-uniphier-sys.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/clk/uniphier/clk-uniphier-sys.c b/drivers/clk/uniphier/clk-uniphier-sys.c
index ebc78ab2df05..4f5ff9fa11fd 100644
--- a/drivers/clk/uniphier/clk-uniphier-sys.c
+++ b/drivers/clk/uniphier/clk-uniphier-sys.c
@@ -51,6 +51,9 @@
51#define UNIPHIER_LD11_SYS_CLK_STDMAC(idx) \ 51#define UNIPHIER_LD11_SYS_CLK_STDMAC(idx) \
52 UNIPHIER_CLK_GATE("stdmac", (idx), NULL, 0x210c, 8) 52 UNIPHIER_CLK_GATE("stdmac", (idx), NULL, 0x210c, 8)
53 53
54#define UNIPHIER_LD11_SYS_CLK_HSC(idx) \
55 UNIPHIER_CLK_GATE("hsc", (idx), NULL, 0x210c, 9)
56
54#define UNIPHIER_PRO4_SYS_CLK_GIO(idx) \ 57#define UNIPHIER_PRO4_SYS_CLK_GIO(idx) \
55 UNIPHIER_CLK_GATE("gio", (idx), NULL, 0x2104, 6) 58 UNIPHIER_CLK_GATE("gio", (idx), NULL, 0x2104, 6)
56 59
@@ -182,6 +185,7 @@ const struct uniphier_clk_data uniphier_ld11_sys_clk_data[] = {
182 /* Index 5 reserved for eMMC PHY */ 185 /* Index 5 reserved for eMMC PHY */
183 UNIPHIER_LD11_SYS_CLK_ETHER(6), 186 UNIPHIER_LD11_SYS_CLK_ETHER(6),
184 UNIPHIER_LD11_SYS_CLK_STDMAC(8), /* HSC, MIO */ 187 UNIPHIER_LD11_SYS_CLK_STDMAC(8), /* HSC, MIO */
188 UNIPHIER_LD11_SYS_CLK_HSC(9),
185 UNIPHIER_CLK_FACTOR("usb2", -1, "ref", 24, 25), 189 UNIPHIER_CLK_FACTOR("usb2", -1, "ref", 24, 25),
186 UNIPHIER_LD11_SYS_CLK_AIO(40), 190 UNIPHIER_LD11_SYS_CLK_AIO(40),
187 UNIPHIER_LD11_SYS_CLK_EVEA(41), 191 UNIPHIER_LD11_SYS_CLK_EVEA(41),
@@ -215,6 +219,7 @@ const struct uniphier_clk_data uniphier_ld20_sys_clk_data[] = {
215 UNIPHIER_LD20_SYS_CLK_SD, 219 UNIPHIER_LD20_SYS_CLK_SD,
216 UNIPHIER_LD11_SYS_CLK_ETHER(6), 220 UNIPHIER_LD11_SYS_CLK_ETHER(6),
217 UNIPHIER_LD11_SYS_CLK_STDMAC(8), /* HSC */ 221 UNIPHIER_LD11_SYS_CLK_STDMAC(8), /* HSC */
222 UNIPHIER_LD11_SYS_CLK_HSC(9),
218 /* GIO is always clock-enabled: no function for 0x210c bit5 */ 223 /* GIO is always clock-enabled: no function for 0x210c bit5 */
219 /* 224 /*
220 * clock for USB Link is enabled by the logic "OR" of bit 14 and bit 15. 225 * clock for USB Link is enabled by the logic "OR" of bit 14 and bit 15.