Discussion:
[uClinux-dev] [PATCH] enable Timer on coldfire 532x
Christian Gieseler
2013-04-16 08:57:41 UTC
Permalink
This patch enables the initial Timer on coldfire 532x systems.
Without this, the scheduler will not be triggered and the system hangs,
after all sequential code is executed. It should also apply on later kernel
versions.
Please be patient if the patch is not matching the needed pattern as this is
my first patch. I am open for advice :-)

Regards,
Christian

Signed-off-by: Christian Gieseler <christiangieseler at yahoo.de>

--- linux-3.6.11/arch/m68k/platform/coldfire/m532x.c.orig 2013-04-16
10:38:16.604838828 +0200
+++ linux-3.6.11/arch/m68k/platform/coldfire/m532x.c 2013-04-16
10:39:08.354700290 +0200
@@ -119,7 +119,8 @@ static struct clk * const enable_clks[]
&__clk_0_24, /* mcfuart.0 */
&__clk_0_25, /* mcfuart.1 */
&__clk_0_26, /* mcfuart.2 */
-
+ &__clk_0_28, /* mcftmr.0 */
+ &__clk_0_29, /* mcftmr.1 */
&__clk_0_32, /* mcfpit.0 */
&__clk_0_33, /* mcfpit.1 */
&__clk_0_37, /* mcfeport.0 */
@@ -135,8 +136,6 @@ static struct clk * const disable_clks[]
&__clk_0_17, /* edma */
&__clk_0_22, /* mcfi2c.0 */
&__clk_0_23, /* mcfqspi.0 */
- &__clk_0_28, /* mcftmr.0 */
- &__clk_0_29, /* mcftmr.1 */
&__clk_0_30, /* mcftmr.2 */
&__clk_0_31, /* mcftmr.3 */
&__clk_0_34, /* mcfpit.2 */
Greg Ungerer
2013-04-16 14:22:16 UTC
Permalink
Hi Christian,
Post by Christian Gieseler
This patch enables the initial Timer on coldfire 532x systems.
Without this, the scheduler will not be triggered and the system hangs,
after all sequential code is executed. It should also apply on later kernel
versions.
Please be patient if the patch is not matching the needed pattern as this is
my first patch. I am open for advice :-)
This one looks ok to me. I have applied it to the m68knommu git tree.

Regards
Greg
Post by Christian Gieseler
Regards,
Christian
Signed-off-by: Christian Gieseler <christiangieseler at yahoo.de>
--- linux-3.6.11/arch/m68k/platform/coldfire/m532x.c.orig 2013-04-16
10:38:16.604838828 +0200
+++ linux-3.6.11/arch/m68k/platform/coldfire/m532x.c 2013-04-16
10:39:08.354700290 +0200
@@ -119,7 +119,8 @@ static struct clk * const enable_clks[]
&__clk_0_24, /* mcfuart.0 */
&__clk_0_25, /* mcfuart.1 */
&__clk_0_26, /* mcfuart.2 */
-
+ &__clk_0_28, /* mcftmr.0 */
+ &__clk_0_29, /* mcftmr.1 */
&__clk_0_32, /* mcfpit.0 */
&__clk_0_33, /* mcfpit.1 */
&__clk_0_37, /* mcfeport.0 */
@@ -135,8 +136,6 @@ static struct clk * const disable_clks[]
&__clk_0_17, /* edma */
&__clk_0_22, /* mcfi2c.0 */
&__clk_0_23, /* mcfqspi.0 */
- &__clk_0_28, /* mcftmr.0 */
- &__clk_0_29, /* mcftmr.1 */
&__clk_0_30, /* mcftmr.2 */
&__clk_0_31, /* mcftmr.3 */
&__clk_0_34, /* mcfpit.2 */
_______________________________________________
uClinux-dev mailing list
uClinux-dev at uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev at uclinux.org
http://mailman.uclinux.org/mailman/options/uclinux-dev
Loading...