DEV: CLK: sunxi ccu: export clk_apb1 for sun8i-r40 soc pwm.
Subsystems (5)
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.
Signed-off-by Hao Zhang <[email protected]>
--- 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
@@ -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
@@ -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
Quoted 1 line · Hao Zhang
+#define
CLK_APB127
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/ |
Quoted 9 lines · Hao Zhang
The clock source for sun8i R40 is from apb1, so export it for dt parses.
Signed-off-by Hao Zhang <[email protected]>--- 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 <[email protected]>