Skip to contentSkip to conversation

clk: mxs: add clkdev lookup for pwm

PATCH New Shawn Guo 2 participants 3 messages Jun 26, 2012 – Jun 27, 2012

Subsystems (2)
lore
Share & tools
lore

Shawn Guo

author
#0 lore raw

PATCH 1/1 clk: mxs: add clkdev lookup for pwm

Add pwm clock lookup for imx23 and imx28 booting from device tree.

---
 drivers/clk/mxs/clk-imx23.c |    1 +
 drivers/clk/mxs/clk-imx28.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
drivers/clk/mxs/clk-imx23.c +1 -0
index db2391c..7e03d41 100644
@@ -189,6 +189,7 @@ int __init mx23_clocks_init(void)
 		}
 
 	clk_register_clkdev(clks[clk32k], NULL, "timrot");
+	clk_register_clkdev(clks[pwm], NULL, "80064000.pwm");
 	clk_register_clkdevs(clks[hbus], hbus_lookups, ARRAY_SIZE(hbus_lookups));
 	clk_register_clkdevs(clks[xbus], xbus_lookups, ARRAY_SIZE(xbus_lookups));
 	clk_register_clkdevs(clks[uart], uart_lookups, ARRAY_SIZE(uart_lookups));
drivers/clk/mxs/clk-imx28.c +1 -0
index 7fad6c8..e3f6ea9 100644
@@ -314,6 +314,7 @@ int __init mx28_clocks_init(void)
 
 	clk_register_clkdev(clks[clk32k], NULL, "timrot");
 	clk_register_clkdev(clks[enet_out], NULL, "enet_out");
+	clk_register_clkdev(clks[pwm], NULL, "80064000.pwm");
 	clk_register_clkdevs(clks[hbus], hbus_lookups, ARRAY_SIZE(hbus_lookups));
 	clk_register_clkdevs(clks[xbus], xbus_lookups, ARRAY_SIZE(xbus_lookups));
 	clk_register_clkdevs(clks[uart], uart_lookups, ARRAY_SIZE(uart_lookups));
Signature · 1 line
1.7.5.4
author
#1 lore raw

PATCH 1/1 clk: mxs: add clkdev lookup for pwm

Mike,

I queued this one on my clk/mxs-for-3.6 branch together with another couple of clk/mxs patches, and will send you a pull-request at a later time.

Regards,
Shawn

Quoted 36 lines · Shawn Guo

Add pwm clock lookup for imx23 and imx28 booting from device tree.

---
 drivers/clk/mxs/clk-imx23.c |    1 +
 drivers/clk/mxs/clk-imx28.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
drivers/clk/mxs/clk-imx23.c +1 -0
index db2391c..7e03d41 100644
@@ -189,6 +189,7 @@ int __init mx23_clocks_init(void)
 		}
 
 	clk_register_clkdev(clks[clk32k], NULL, "timrot");
+	clk_register_clkdev(clks[pwm], NULL, "80064000.pwm");
 	clk_register_clkdevs(clks[hbus], hbus_lookups, ARRAY_SIZE(hbus_lookups));
 	clk_register_clkdevs(clks[xbus], xbus_lookups, ARRAY_SIZE(xbus_lookups));
 	clk_register_clkdevs(clks[uart], uart_lookups, ARRAY_SIZE(uart_lookups));
drivers/clk/mxs/clk-imx28.c +1 -0
index 7fad6c8..e3f6ea9 100644
@@ -314,6 +314,7 @@ int __init mx28_clocks_init(void)
 
 	clk_register_clkdev(clks[clk32k], NULL, "timrot");
 	clk_register_clkdev(clks[enet_out], NULL, "enet_out");
+	clk_register_clkdev(clks[pwm], NULL, "80064000.pwm");
 	clk_register_clkdevs(clks[hbus], hbus_lookups, ARRAY_SIZE(hbus_lookups));
 	clk_register_clkdevs(clks[xbus], xbus_lookups, ARRAY_SIZE(xbus_lookups));
 	clk_register_clkdevs(clks[uart], uart_lookups, ARRAY_SIZE(uart_lookups));
Signature · 1 line
1.7.5.4
#2 lore raw

PATCH 1/1 clk: mxs: add clkdev lookup for pwm

Quoted 6 lines · Shawn Guo

Mike,

I queued this one on my clk/mxs-for-3.6 branch together with another couple of clk/mxs patches, and will send you a pull-request at a later time.

Shawn,

OK great. This patch looks fine to me and I finally got a branch into clk-next, so just send your pull request along and I'll get it in.

Regards,
Mike

Quoted 41 lines

Regards,
Shawn

Quoted 36 lines · Shawn Guo

Add pwm clock lookup for imx23 and imx28 booting from device tree.

---
 drivers/clk/mxs/clk-imx23.c |    1 +
 drivers/clk/mxs/clk-imx28.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
drivers/clk/mxs/clk-imx23.c +1 -0
index db2391c..7e03d41 100644
@@ -189,6 +189,7 @@ int __init mx23_clocks_init(void)
 		}
 
 	clk_register_clkdev(clks[clk32k], NULL, "timrot");
+	clk_register_clkdev(clks[pwm], NULL, "80064000.pwm");
 	clk_register_clkdevs(clks[hbus], hbus_lookups, ARRAY_SIZE(hbus_lookups));
 	clk_register_clkdevs(clks[xbus], xbus_lookups, ARRAY_SIZE(xbus_lookups));
 	clk_register_clkdevs(clks[uart], uart_lookups, ARRAY_SIZE(uart_lookups));
drivers/clk/mxs/clk-imx28.c +1 -0
index 7fad6c8..e3f6ea9 100644
@@ -314,6 +314,7 @@ int __init mx28_clocks_init(void)
 
 	clk_register_clkdev(clks[clk32k], NULL, "timrot");
 	clk_register_clkdev(clks[enet_out], NULL, "enet_out");
+	clk_register_clkdev(clks[pwm], NULL, "80064000.pwm");
 	clk_register_clkdevs(clks[hbus], hbus_lookups, ARRAY_SIZE(hbus_lookups));
 	clk_register_clkdevs(clks[xbus], xbus_lookups, ARRAY_SIZE(xbus_lookups));
 	clk_register_clkdevs(clks[uart], uart_lookups, ARRAY_SIZE(uart_lookups));
Signature · 1 line
1.7.5.4