* [PATCH 1/2] clk: rockchip: add clock-id for HCLK_HDMI on rk3066
@ 2018-10-08 12:02 Heiko Stuebner
[not found] ` <20181008120247.31242-1-heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Heiko Stuebner @ 2018-10-08 12:02 UTC (permalink / raw)
To: linux-clk-u79uwXL29TY76Z2rM5mHXA
Cc: sboyd-DgEjT+Ai2ygdnm+yROfE0A,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
mturquette-rdvid1DuHRBWk0Htik3J/w, Heiko Stuebner
RK3066 and RK3188 share most of the clock controller but the rk3066 does
have an internal hdmi encoder and associated clock. Therefore add a
clock-id so that this clock can be used.
Signed-off-by: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
---
include/dt-bindings/clock/rk3188-cru-common.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/dt-bindings/clock/rk3188-cru-common.h b/include/dt-bindings/clock/rk3188-cru-common.h
index b9462b7d3dfe..dc2101a634be 100644
--- a/include/dt-bindings/clock/rk3188-cru-common.h
+++ b/include/dt-bindings/clock/rk3188-cru-common.h
@@ -139,8 +139,9 @@
#define HCLK_CIF1 470
#define HCLK_VEPU 471
#define HCLK_VDPU 472
+#define HCLK_HDMI 473
-#define CLK_NR_CLKS (HCLK_VDPU + 1)
+#define CLK_NR_CLKS (HCLK_HDMI + 1)
/* soft-reset indices */
#define SRST_MCORE 2
--
2.18.0
^ permalink raw reply related [flat|nested] 3+ messages in thread[parent not found: <20181008120247.31242-1-heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>]
* [PATCH 2/2] clk: rockchip: use the newly added clock-id for hdmi on RK3066 [not found] ` <20181008120247.31242-1-heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org> @ 2018-10-08 12:02 ` Heiko Stuebner 2018-10-11 12:57 ` [PATCH 1/2] clk: rockchip: add clock-id for HCLK_HDMI on rk3066 Heiko Stuebner 1 sibling, 0 replies; 3+ messages in thread From: Heiko Stuebner @ 2018-10-08 12:02 UTC (permalink / raw) To: linux-clk-u79uwXL29TY76Z2rM5mHXA Cc: sboyd-DgEjT+Ai2ygdnm+yROfE0A, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, mturquette-rdvid1DuHRBWk0Htik3J/w, Heiko Stuebner Export the clock for devicetree usage via the newly added id. Signed-off-by: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org> --- drivers/clk/rockchip/clk-rk3188.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk-rk3188.c b/drivers/clk/rockchip/clk-rk3188.c index 67e73fd71f09..fa25e35ce7d5 100644 --- a/drivers/clk/rockchip/clk-rk3188.c +++ b/drivers/clk/rockchip/clk-rk3188.c @@ -645,7 +645,7 @@ static struct rockchip_clk_branch rk3066a_clk_branches[] __initdata = { GATE(HCLK_I2S1, "hclk_i2s1", "hclk_cpu", 0, RK2928_CLKGATE_CON(7), 3, GFLAGS), GATE(HCLK_I2S2, "hclk_i2s2", "hclk_cpu", 0, RK2928_CLKGATE_CON(7), 4, GFLAGS), GATE(HCLK_CIF1, "hclk_cif1", "hclk_cpu", 0, RK2928_CLKGATE_CON(6), 6, GFLAGS), - GATE(0, "hclk_hdmi", "hclk_cpu", 0, RK2928_CLKGATE_CON(4), 14, GFLAGS), + GATE(HCLK_HDMI, "hclk_hdmi", "hclk_cpu", 0, RK2928_CLKGATE_CON(4), 14, GFLAGS), GATE(HCLK_OTG1, "hclk_usbotg1", "hclk_peri", CLK_IGNORE_UNUSED, RK2928_CLKGATE_CON(5), 14, GFLAGS), -- 2.18.0 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] clk: rockchip: add clock-id for HCLK_HDMI on rk3066 [not found] ` <20181008120247.31242-1-heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org> 2018-10-08 12:02 ` [PATCH 2/2] clk: rockchip: use the newly added clock-id for hdmi on RK3066 Heiko Stuebner @ 2018-10-11 12:57 ` Heiko Stuebner 1 sibling, 0 replies; 3+ messages in thread From: Heiko Stuebner @ 2018-10-11 12:57 UTC (permalink / raw) To: linux-clk-u79uwXL29TY76Z2rM5mHXA Cc: sboyd-DgEjT+Ai2ygdnm+yROfE0A, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, mturquette-rdvid1DuHRBWk0Htik3J/w Am Montag, 8. Oktober 2018, 14:02:46 CEST schrieb Heiko Stuebner: > RK3066 and RK3188 share most of the clock controller but the rk3066 does > have an internal hdmi encoder and associated clock. Therefore add a > clock-id so that this clock can be used. > > Signed-off-by: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org> applied both for 4.20 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-10-11 12:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-08 12:02 [PATCH 1/2] clk: rockchip: add clock-id for HCLK_HDMI on rk3066 Heiko Stuebner
[not found] ` <20181008120247.31242-1-heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
2018-10-08 12:02 ` [PATCH 2/2] clk: rockchip: use the newly added clock-id for hdmi on RK3066 Heiko Stuebner
2018-10-11 12:57 ` [PATCH 1/2] clk: rockchip: add clock-id for HCLK_HDMI on rk3066 Heiko Stuebner
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox