* [PATCH v3 5/6] DEV: CLK: sunxi ccu: export clk_apb1 for sun8i-r40 soc pwm.
@ 2018-11-25 16:22 Hao Zhang
2018-11-26 20:49 ` Uwe Kleine-König
2018-12-07 23:25 ` Rob Herring
0 siblings, 2 replies; 3+ messages in thread
From: Hao Zhang @ 2018-11-25 16:22 UTC (permalink / raw)
To: linux-arm-kernel
The clock source for sun8i R40 is from apb1, so export it for
dt parses.
Signed-off-by: Hao Zhang <hao5781286@gmail.com>
---
drivers/clk/sunxi-ng/ccu-sun8i-r40.h | 4 +++-
include/dt-bindings/clock/sun8i-r40-ccu.h | 2 ++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-r40.h b/drivers/clk/sunxi-ng/ccu-sun8i-r40.h
index db2a124..181ab26 100644
--- a/drivers/clk/sunxi-ng/ccu-sun8i-r40.h
+++ b/drivers/clk/sunxi-ng/ccu-sun8i-r40.h
@@ -51,7 +51,9 @@
#define CLK_AXI 25
#define CLK_AHB1 26
-#define CLK_APB1 27
+
+/* The APB1 clock is exported */
+
#define CLK_APB2 28
/* All the bus gates are exported */
diff --git a/include/dt-bindings/clock/sun8i-r40-ccu.h b/include/dt-bindings/clock/sun8i-r40-ccu.h
index f9e15a2..a2b8f06 100644
--- a/include/dt-bindings/clock/sun8i-r40-ccu.h
+++ b/include/dt-bindings/clock/sun8i-r40-ccu.h
@@ -49,6 +49,8 @@
#define CLK_CPU 24
+#define CLK_APB1 27
+
#define CLK_BUS_MIPI_DSI 29
#define CLK_BUS_CE 30
#define CLK_BUS_DMA 31
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH v3 5/6] DEV: CLK: sunxi ccu: export clk_apb1 for sun8i-r40 soc pwm.
2018-11-25 16:22 [PATCH v3 5/6] DEV: CLK: sunxi ccu: export clk_apb1 for sun8i-r40 soc pwm Hao Zhang
@ 2018-11-26 20:49 ` Uwe Kleine-König
2018-12-07 23:25 ` Rob Herring
1 sibling, 0 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2018-11-26 20:49 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Nov 26, 2018 at 12:22:03AM +0800, Hao Zhang wrote:
> +#define CLK_APB1 27
This is already used in patch 2, so the patches must be reordered.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-K?nig |
Industrial Linux Solutions | http://www.pengutronix.de/ |
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v3 5/6] DEV: CLK: sunxi ccu: export clk_apb1 for sun8i-r40 soc pwm.
2018-11-25 16:22 [PATCH v3 5/6] DEV: CLK: sunxi ccu: export clk_apb1 for sun8i-r40 soc pwm Hao Zhang
2018-11-26 20:49 ` Uwe Kleine-König
@ 2018-12-07 23:25 ` Rob Herring
1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring @ 2018-12-07 23:25 UTC (permalink / raw)
To: Hao Zhang
Cc: mark.rutland, devicetree, linux-gpio, maxime.ripard, mturquette,
linux-sunxi, linux-kernel, linux-pwm, hao5781286, sboyd, wens,
robh+dt, thierry.reding, linux-arm-kernel
On Mon, 26 Nov 2018 00:22:03 +0800, Hao Zhang wrote:
> The clock source for sun8i R40 is from apb1, so export it for
> dt parses.
>
> Signed-off-by: Hao Zhang <hao5781286@gmail.com>
> ---
> drivers/clk/sunxi-ng/ccu-sun8i-r40.h | 4 +++-
> include/dt-bindings/clock/sun8i-r40-ccu.h | 2 ++
> 2 files changed, 5 insertions(+), 1 deletion(-)
>
Reviewed-by: Rob Herring <robh@kernel.org>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-12-07 23:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-25 16:22 [PATCH v3 5/6] DEV: CLK: sunxi ccu: export clk_apb1 for sun8i-r40 soc pwm Hao Zhang
2018-11-26 20:49 ` Uwe Kleine-König
2018-12-07 23:25 ` Rob Herring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).