Skip to contentSkip to conversation

OMAP4: Use default clock source for mcbsp

PATCH Applied Jan Weitzel 3 participants 8 messages May 28, 2013 – Jun 17, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 OMAP4: Use default clock source for mcbsp

In omap4_enable_all_clocks we not only enable the mcbsp clocks, but also change the source from ABE_24M_FCLK to 24M_FCLK. Revert this and default to the reset state.

---
 arch/arm/mach-omap/omap4_clock.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-omap/omap4_clock.c +3 -3
index 0621fd3..889d1f9 100644
@@ -253,9 +253,9 @@ void omap4_enable_all_clocks(void)
 	sr32(CM1_ABE_PDM_CLKCTRL, 0, 32, 0x2);
 	sr32(CM1_ABE_DMIC_CLKCTRL, 0, 32, 0x2);
 	sr32(CM1_ABE_MCASP_CLKCTRL, 0, 32, 0x2);
-	sr32(CM1_ABE_MCBSP1_CLKCTRL, 0, 32, 0x08000002);
-	sr32(CM1_ABE_MCBSP2_CLKCTRL, 0, 32, 0x08000002);
-	sr32(CM1_ABE_MCBSP3_CLKCTRL, 0, 32, 0x08000002);
+	sr32(CM1_ABE_MCBSP1_CLKCTRL, 0, 32, 0x2);
+	sr32(CM1_ABE_MCBSP2_CLKCTRL, 0, 32, 0x2);
+	sr32(CM1_ABE_MCBSP3_CLKCTRL, 0, 32, 0x2);
 	sr32(CM1_ABE_SLIMBUS_CLKCTRL, 0, 32, 0xf02);
 	sr32(CM1_ABE_TIMER5_CLKCTRL, 0, 32, 0x2);
 	sr32(CM1_ABE_TIMER6_CLKCTRL, 0, 32, 0x2);
Signature · 7 lines
1.7.0.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw

Hi Jan,

Quoted 3 lines · Jan Weitzel

In omap4_enable_all_clocks we not only enable the mcbsp clocks, but also change the source from ABE_24M_FCLK to 24M_FCLK. Revert this and default to the reset state.

Can you add a description why this is necessary?

Sascha

Quoted 32 lines
---
 arch/arm/mach-omap/omap4_clock.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-omap/omap4_clock.c +3 -3
index 0621fd3..889d1f9 100644
@@ -253,9 +253,9 @@ void omap4_enable_all_clocks(void)
 	sr32(CM1_ABE_PDM_CLKCTRL, 0, 32, 0x2);
 	sr32(CM1_ABE_DMIC_CLKCTRL, 0, 32, 0x2);
 	sr32(CM1_ABE_MCASP_CLKCTRL, 0, 32, 0x2);
-	sr32(CM1_ABE_MCBSP1_CLKCTRL, 0, 32, 0x08000002);
-	sr32(CM1_ABE_MCBSP2_CLKCTRL, 0, 32, 0x08000002);
-	sr32(CM1_ABE_MCBSP3_CLKCTRL, 0, 32, 0x08000002);
+	sr32(CM1_ABE_MCBSP1_CLKCTRL, 0, 32, 0x2);
+	sr32(CM1_ABE_MCBSP2_CLKCTRL, 0, 32, 0x2);
+	sr32(CM1_ABE_MCBSP3_CLKCTRL, 0, 32, 0x2);
 	sr32(CM1_ABE_SLIMBUS_CLKCTRL, 0, 32, 0xf02);
 	sr32(CM1_ABE_TIMER5_CLKCTRL, 0, 32, 0x2);
 	sr32(CM1_ABE_TIMER6_CLKCTRL, 0, 32, 0x2);
Signature · 7 lines
1.7.0.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw

Am Dienstag, den 04.06.2013, 16:53 +0200 schrieb Sascha Hauer:

Quoted 8 lines

Hi Jan,

Quoted 3 lines · Jan Weitzel

In omap4_enable_all_clocks we not only enable the mcbsp clocks, but also change the source from ABE_24M_FCLK to 24M_FCLK. Revert this and default to the reset state.

Can you add a description why this is necessary?

We had some trouble because the kernel takes the default clock sources from the registers. There seams to be no reason to change them in the boot loader. Is clean up a good enough answer?
Could someone test it on pandaboard and ArchosG9? I didn't have (working) hardware here.

Jan

Quoted 30 lines

Sascha

Quoted 27 lines
---
 arch/arm/mach-omap/omap4_clock.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-omap/omap4_clock.c +3 -3
index 0621fd3..889d1f9 100644
@@ -253,9 +253,9 @@ void omap4_enable_all_clocks(void)
 	sr32(CM1_ABE_PDM_CLKCTRL, 0, 32, 0x2);
 	sr32(CM1_ABE_DMIC_CLKCTRL, 0, 32, 0x2);
 	sr32(CM1_ABE_MCASP_CLKCTRL, 0, 32, 0x2);
-	sr32(CM1_ABE_MCBSP1_CLKCTRL, 0, 32, 0x08000002);
-	sr32(CM1_ABE_MCBSP2_CLKCTRL, 0, 32, 0x08000002);
-	sr32(CM1_ABE_MCBSP3_CLKCTRL, 0, 32, 0x08000002);
+	sr32(CM1_ABE_MCBSP1_CLKCTRL, 0, 32, 0x2);
+	sr32(CM1_ABE_MCBSP2_CLKCTRL, 0, 32, 0x2);
+	sr32(CM1_ABE_MCBSP3_CLKCTRL, 0, 32, 0x2);
 	sr32(CM1_ABE_SLIMBUS_CLKCTRL, 0, 32, 0xf02);
 	sr32(CM1_ABE_TIMER5_CLKCTRL, 0, 32, 0x2);
 	sr32(CM1_ABE_TIMER6_CLKCTRL, 0, 32, 0x2);
Signature · 1 line
1.7.0.4
Quoted 6 lines
Quoted 5 lines

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#3 lore raw
Quoted 8 lines · Jan Weitzel

Am Dienstag, den 04.06.2013, 16:53 +0200 schrieb Sascha Hauer:

Quoted 7 lines

Hi Jan,

Quoted 3 lines · Jan Weitzel

In omap4_enable_all_clocks we not only enable the mcbsp clocks, but also change the source from ABE_24M_FCLK to 24M_FCLK. Revert this and default to the reset state.

Quoted 7 lines
Quoted 1 line

Can you add a description why this is necessary?

We had some trouble because the kernel takes the default clock sources from the registers. There seams to be no reason to change them in the boot loader. Is clean up a good enough answer?
Could someone test it on pandaboard and ArchosG9? I didn't have (working) hardware here.

I've seen no regressions on ArchosG9.
Regards,
Vicente.

Quoted 39 lines

Jan

Quoted 36 lines

Sascha

Quoted 32 lines
---
 arch/arm/mach-omap/omap4_clock.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-omap/omap4_clock.c +3 -4
index 0621fd3..889d1f9 100644
@@ -253,9 +253,9 @@ void omap4_enable_all_clocks(void)
    sr32(CM1_ABE_PDM_CLKCTRL, 0, 32, 0x2);
    sr32(CM1_ABE_DMIC_CLKCTRL, 0, 32, 0x2);
    sr32(CM1_ABE_MCASP_CLKCTRL, 0, 32, 0x2);
-   sr32(CM1_ABE_MCBSP1_CLKCTRL, 0, 32, 0x08000002);
-   sr32(CM1_ABE_MCBSP2_CLKCTRL, 0, 32, 0x08000002);
-   sr32(CM1_ABE_MCBSP3_CLKCTRL, 0, 32, 0x08000002);
+   sr32(CM1_ABE_MCBSP1_CLKCTRL, 0, 32, 0x2);
+   sr32(CM1_ABE_MCBSP2_CLKCTRL, 0, 32, 0x2);
+   sr32(CM1_ABE_MCBSP3_CLKCTRL, 0, 32, 0x2);
    sr32(CM1_ABE_SLIMBUS_CLKCTRL, 0, 32, 0xf02);
    sr32(CM1_ABE_TIMER5_CLKCTRL, 0, 32, 0x2);
    sr32(CM1_ABE_TIMER6_CLKCTRL, 0, 32, 0x2);
--

1.7.0.4

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Applied
#4 lore raw
In reply to Jan Weitzel
Quoted 5 lines · Jan Weitzel

In omap4_enable_all_clocks we not only enable the mcbsp clocks, but also change the source from ABE_24M_FCLK to 24M_FCLK. Revert this and default to the reset state.

Applied, thanks

Sascha

Quoted 30 lines
---
 arch/arm/mach-omap/omap4_clock.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-omap/omap4_clock.c +3 -3
index 0621fd3..889d1f9 100644
@@ -253,9 +253,9 @@ void omap4_enable_all_clocks(void)
 	sr32(CM1_ABE_PDM_CLKCTRL, 0, 32, 0x2);
 	sr32(CM1_ABE_DMIC_CLKCTRL, 0, 32, 0x2);
 	sr32(CM1_ABE_MCASP_CLKCTRL, 0, 32, 0x2);
-	sr32(CM1_ABE_MCBSP1_CLKCTRL, 0, 32, 0x08000002);
-	sr32(CM1_ABE_MCBSP2_CLKCTRL, 0, 32, 0x08000002);
-	sr32(CM1_ABE_MCBSP3_CLKCTRL, 0, 32, 0x08000002);
+	sr32(CM1_ABE_MCBSP1_CLKCTRL, 0, 32, 0x2);
+	sr32(CM1_ABE_MCBSP2_CLKCTRL, 0, 32, 0x2);
+	sr32(CM1_ABE_MCBSP3_CLKCTRL, 0, 32, 0x2);
 	sr32(CM1_ABE_SLIMBUS_CLKCTRL, 0, 32, 0xf02);
 	sr32(CM1_ABE_TIMER5_CLKCTRL, 0, 32, 0x2);
 	sr32(CM1_ABE_TIMER6_CLKCTRL, 0, 32, 0x2);
Signature · 7 lines
1.7.0.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#5 lore raw

Am Samstag, den 08.06.2013, 15:13 +0200 schrieb Sascha Hauer:

Quoted 8 lines · Jan Weitzel
Quoted 5 lines

In omap4_enable_all_clocks we not only enable the mcbsp clocks, but also change the source from ABE_24M_FCLK to 24M_FCLK. Revert this and default to the reset state.

Applied, thanks

Didn't find it on next or master branch. Is rework needed?

Jan

Quoted 27 lines

Sascha

Quoted 25 lines
---
 arch/arm/mach-omap/omap4_clock.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-omap/omap4_clock.c +3 -3
index 0621fd3..889d1f9 100644
@@ -253,9 +253,9 @@ void omap4_enable_all_clocks(void)
 	sr32(CM1_ABE_PDM_CLKCTRL, 0, 32, 0x2);
 	sr32(CM1_ABE_DMIC_CLKCTRL, 0, 32, 0x2);
 	sr32(CM1_ABE_MCASP_CLKCTRL, 0, 32, 0x2);
-	sr32(CM1_ABE_MCBSP1_CLKCTRL, 0, 32, 0x08000002);
-	sr32(CM1_ABE_MCBSP2_CLKCTRL, 0, 32, 0x08000002);
-	sr32(CM1_ABE_MCBSP3_CLKCTRL, 0, 32, 0x08000002);
+	sr32(CM1_ABE_MCBSP1_CLKCTRL, 0, 32, 0x2);
+	sr32(CM1_ABE_MCBSP2_CLKCTRL, 0, 32, 0x2);
+	sr32(CM1_ABE_MCBSP3_CLKCTRL, 0, 32, 0x2);
 	sr32(CM1_ABE_SLIMBUS_CLKCTRL, 0, 32, 0xf02);
 	sr32(CM1_ABE_TIMER5_CLKCTRL, 0, 32, 0x2);
 	sr32(CM1_ABE_TIMER6_CLKCTRL, 0, 32, 0x2);
Signature · 1 line
1.7.0.4
Quoted 6 lines
Quoted 5 lines

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#6 lore raw
Quoted 10 lines · Jan Weitzel

Am Samstag, den 08.06.2013, 15:13 +0200 schrieb Sascha Hauer:

Quoted 8 lines · Jan Weitzel
Quoted 5 lines

In omap4_enable_all_clocks we not only enable the mcbsp clocks, but also change the source from ABE_24M_FCLK to 24M_FCLK. Revert this and default to the reset state.

Applied, thanks

Didn't find it on next or master branch. Is rework needed?

Look again, it should be there now.

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#7 lore raw

Am Montag, den 17.06.2013, 09:14 +0200 schrieb Sascha Hauer:

Quoted 7 lines · Jan Weitzel
Quoted 6 lines

Am Samstag, den 08.06.2013, 15:13 +0200 schrieb Sascha Hauer:

Quoted 5 lines · Jan Weitzel
Quoted 4 lines

In omap4_enable_all_clocks we not only enable the mcbsp clocks, but also change the source from ABE_24M_FCLK to 24M_FCLK. Revert this and default to the reset state.

Quoted 6 lines
Quoted 4 lines
Quoted 3 lines
Quoted 1 line

Applied, thanks

Didn't find it on next or master branch. Is rework needed?

Look again, it should be there now.

Thanks :)
Jan

Quoted 3 lines

Sascha

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox