[PATCH 4/6] ARM: i.MX28: Add PWM clk support

Sascha Hauer s.hauer at pengutronix.de
Fri Jun 12 02:53:39 PDT 2015


Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 arch/arm/mach-mxs/include/mach/imx28-regs.h | 1 +
 drivers/clk/mxs/clk-imx28.c                 | 1 +
 2 files changed, 2 insertions(+)

diff --git a/arch/arm/mach-mxs/include/mach/imx28-regs.h b/arch/arm/mach-mxs/include/mach/imx28-regs.h
index de0d882..1a90ec2 100644
--- a/arch/arm/mach-mxs/include/mach/imx28-regs.h
+++ b/arch/arm/mach-mxs/include/mach/imx28-regs.h
@@ -34,6 +34,7 @@
 #define IMX_WDT_BASE		0x80056000
 #define IMX_I2C0_BASE		0x80058000
 #define IMX_I2C1_BASE		0x8005a000
+#define IMX_PWM_BASE		0x80064000
 #define IMX_TIM1_BASE		0x80068000
 #define IMX_UART0_BASE		0x8006a000
 #define IMX_UART1_BASE		0x8006c000
diff --git a/drivers/clk/mxs/clk-imx28.c b/drivers/clk/mxs/clk-imx28.c
index 77a13bc..a408044 100644
--- a/drivers/clk/mxs/clk-imx28.c
+++ b/drivers/clk/mxs/clk-imx28.c
@@ -158,6 +158,7 @@ int __init mx28_clocks_init(void __iomem *regs)
 	clkdev_add_physbase(clks[uart], IMX_UART3_BASE, NULL);
 	clkdev_add_physbase(clks[uart], IMX_UART4_BASE, NULL);
 	clkdev_add_physbase(clks[gpmi], MXS_GPMI_BASE, NULL);
+	clkdev_add_physbase(clks[pwm], IMX_PWM_BASE, NULL);
 	if (IS_ENABLED(CONFIG_DRIVER_VIDEO_STM))
 		clkdev_add_physbase(clks[lcdif_comp], IMX_FB_BASE, NULL);
 
-- 
2.1.4




More information about the barebox mailing list