Skip to contentSkip to conversation

DEV: CLK: sunxi ccu: export clk_apb1 for sun8i-r40 soc pwm.

PATCH In review Hao Zhang 3 participants 3 messages Nov 25, 2018 – Dec 7, 2018

Subsystems (5)
lore
Share & tools
lore

Hao Zhang

author
#0 lore raw

PATCH v3 5/6 DEV: CLK: sunxi ccu: export clk_apb1 for sun8i-r40 soc pwm.

The clock source for sun8i R40 is from apb1, so export it for dt parses.

---
 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(-)
drivers/clk/sunxi-ng/ccu-sun8i-r40.h +3 -1
index db2a124..181ab26 100644
@@ -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 */
include/dt-bindings/clock/sun8i-r40-ccu.h +2 -0
index f9e15a2..a2b8f06 100644
@@ -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
Signature · 1 line
2.7.4
#1 lore raw
Quoted 1 line · Hao Zhang

+#define CLK_APB1 27

This is already used in patch 2, so the patches must be reordered.

Best regards
Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-K?nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |