OMAP4: Use default clock source for mcbsp
Subsystems (3)
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
@@ -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
Hi Jan,
Quoted 3 lines · Jan Weitzel
In
omap4_enable_all_clockswe not only enable the mcbsp clocks, but also change the source fromABE_24M_FCLKto 24M_FCLK. Revert this and default to the reset state.
Can you add a description why this is necessary?
Sascha
Quoted 32 lines
Signed-off-by Jan Weitzel <[email protected]>--- arch/arm/mach-omap/omap4_clock.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)arch/arm/mach-omap/omap4_clock.c +3
-3@@ -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
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_clockswe not only enable the mcbsp clocks, but also change the source fromABE_24M_FCLKto 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
Signed-off-by Jan Weitzel <[email protected]>--- arch/arm/mach-omap/omap4_clock.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)arch/arm/mach-omap/omap4_clock.c +3
-3@@ -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
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_clockswe not only enable the mcbsp clocks, but also change the source fromABE_24M_FCLKto 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
Signed-off-by Jan Weitzel <[email protected]>--- arch/arm/mach-omap/omap4_clock.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)arch/arm/mach-omap/omap4_clock.c +3
-4@@ -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
Sascha Hauer
AppliedQuoted 5 lines · Jan Weitzel
In
omap4_enable_all_clockswe not only enable the mcbsp clocks, but also change the source fromABE_24M_FCLKto 24M_FCLK. Revert this and default to the reset state.Signed-off-by Jan Weitzel <[email protected]>
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@@ -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
Am Samstag, den 08.06.2013, 15:13 +0200 schrieb Sascha Hauer:
Quoted 8 lines · Jan Weitzel
Quoted 5 lines
In
omap4_enable_all_clockswe not only enable the mcbsp clocks, but also change the source fromABE_24M_FCLKto 24M_FCLK. Revert this and default to the reset state.Signed-off-by Jan Weitzel <[email protected]>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@@ -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
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_clockswe not only enable the mcbsp clocks, but also change the source fromABE_24M_FCLKto 24M_FCLK. Revert this and default to the reset state.Signed-off-by Jan Weitzel <[email protected]>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
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_clockswe not only enable the mcbsp clocks, but also change the source fromABE_24M_FCLKto 24M_FCLK. Revert this and default to the reset state.
Quoted 6 lines
Quoted 4 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Jan Weitzel <[email protected]>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