Skip to contentSkip to conversation

clk: mxs: Register USB clocks for mx23

PATCH New Fabio Estevam 2 participants 7 messages Jun 19, 2012 – Aug 30, 2012

Subsystems (2)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 clk: mxs: Register USB clocks for mx23

From: Fabio Estevam <[email protected]>

Register USB clocks for mx23.

---
 drivers/clk/mxs/clk-imx23.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/clk/mxs/clk-imx23.c +2 -0
index f7be225..4735136 100644
@@ -195,6 +195,8 @@ int __init mx23_clocks_init(void)
 	clk_register_clkdevs(clks[ssp], ssp_lookups, ARRAY_SIZE(ssp_lookups));
 	clk_register_clkdevs(clks[gpmi], gpmi_lookups, ARRAY_SIZE(gpmi_lookups));
 	clk_register_clkdevs(clks[lcdif], lcdif_lookups, ARRAY_SIZE(lcdif_lookups));
+	clk_register_clkdev(clks[usb_pwr], NULL, "8007c000.usbphy");
+	clk_register_clkdev(clks[usb], NULL, "80080000.usb");
 
 	for (i = 0; i < ARRAY_SIZE(clks_init_on); i++)
 		clk_prepare_enable(clks[clks_init_on[i]]);
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 clk: mxs: Register USB clocks for mx23

Quoted 14 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Register USB clocks for mx23.

---
 drivers/clk/mxs/clk-imx23.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/clk/mxs/clk-imx23.c +0 -0
index f7be225..4735136 100644

drivers/clk/mxs/clk-imx23.c int __init mx23_clocks_init(void) · line 199

Quoted 5 lines
drivers/clk/mxs/clk-imx23.c +2 -0
@@ -195,6 +195,8 @@ int __init mx23_clocks_init(void)
 	clk_register_clkdevs(clks[ssp], ssp_lookups, ARRAY_SIZE(ssp_lookups));
 	clk_register_clkdevs(clks[gpmi], gpmi_lookups, ARRAY_SIZE(gpmi_lookups));
 	clk_register_clkdevs(clks[lcdif], lcdif_lookups, ARRAY_SIZE(lcdif_lookups));
+	clk_register_clkdev(clks[usb_pwr], NULL, "8007c000.usbphy");
+	clk_register_clkdev(clks[usb], NULL, "80080000.usb");

It depends on the node name in device tree. I would defer this a little bit to have the node name in dts settled down first.

Regards,
Shawn

Quoted 6 lines
drivers/clk/mxs/clk-imx23.c +0 -0
 	for (i = 0; i < ARRAY_SIZE(clks_init_on); i++)
 		clk_prepare_enable(clks[clks_init_on[i]]);
Signature · 1 line
1.7.1
author reviewer
#2 lore raw

PATCH 1/1 clk: mxs: Register USB clocks for mx23

On Wed, Jun 20, 2012 at 11:38 AM, Shawn Guo <[email protected]> wrote:
...

Quoted 5 lines

drivers/clk/mxs/clk-imx23.c int __init mx23_clocks_init(void) · line 199

Quoted 2 lines
drivers/clk/mxs/clk-imx23.c +2 -0
+     clk_register_clkdev(clks[usb_pwr], NULL, "8007c000.usbphy");
+     clk_register_clkdev(clks[usb], NULL, "80080000.usb");

It depends on the node name in device tree. I would defer this a little bit to have the node name in dts settled down first.

Now that the mxs usb driver is in mainline, could this patch be applied?

Regards,

Fabio Estevam

#3 lore raw

PATCH 1/1 clk: mxs: Register USB clocks for mx23

Quoted 10 lines · Fabio Estevam

On Wed, Jun 20, 2012 at 11:38 AM, Shawn Guo <[email protected]> wrote:
...

Quoted 5 lines

drivers/clk/mxs/clk-imx23.c int __init mx23_clocks_init(void) · line 199

Quoted 2 lines
drivers/clk/mxs/clk-imx23.c +2 -0
+     clk_register_clkdev(clks[usb_pwr], NULL, "8007c000.usbphy");
+     clk_register_clkdev(clks[usb], NULL, "80080000.usb");

It depends on the node name in device tree. I would defer this a little bit to have the node name in dts settled down first.

Now that the mxs usb driver is in mainline, could this patch be applied?

Probably, no, as I plan to freeze the addition to clkdev lookup table and replace it with DT clock lookup.

Signature · 2 lines
Regards,
Shawn
author reviewer
#4 lore raw

PATCH 1/1 clk: mxs: Register USB clocks for mx23

Shawn,

Quoted 2 lines · Shawn Guo

Probably, no, as I plan to freeze the addition to clkdev lookup table and replace it with DT clock lookup.

Could you please suggest how can I register the USB clocks for mx23? Any example I can refer to implement a "DT clock lookup"?

Regards,

Fabio Estevam

author reviewer
#5 lore raw

PATCH 1/1 clk: mxs: Register USB clocks for mx23

Shawn,

Quoted 9 lines · Fabio Estevam

Shawn,

Quoted 2 lines · Shawn Guo

Probably, no, as I plan to freeze the addition to clkdev lookup table and replace it with DT clock lookup.

Could you please suggest how can I register the USB clocks for mx23? Any example I can refer to implement a "DT clock lookup"?

Ping?

I saw some patches from you that changes the way dt clocks are registered for mx23/mx28, but not sure if these were applied or not.

Please let me know how should I proceed regarding mx23 usb clocks registration.

Regards,

Fabio Estevam

#6 lore raw

PATCH 1/1 clk: mxs: Register USB clocks for mx23

Quoted 10 lines · Fabio Estevam

Shawn,

Quoted 7 lines · Fabio Estevam

Shawn,

Quoted 2 lines · Shawn Guo

Probably, no, as I plan to freeze the addition to clkdev lookup table and replace it with DT clock lookup.

Quoted 8 lines
Quoted 2 lines

Could you please suggest how can I register the USB clocks for mx23? Any example I can refer to implement a "DT clock lookup"?

Ping?

I saw some patches from you that changes the way dt clocks are registered for mx23/mx28, but not sure if these were applied or not.

The v2 patch solving Russell's comment has been acked by Rob. I'm waiting for Mike to apply it, and then I can publish a mxs branch based on that.

Quoted 5 lines

Please let me know how should I proceed regarding mx23 usb clocks registration.

Regards,

Fabio Estevam

Signature · 2 lines
Regards,
Shawn