The special patch to keep CSB336/PiMX1 on system clock
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Tue, 14 Aug 2007 14:06:16 +0000 (16:06 +0200)
committerPavel Pisa <pi@thor.(none)>
Sat, 28 Nov 2009 23:29:47 +0000 (00:29 +0100)
darcs-hash:20070814140616-ff715-8d69eef22eaebdd4bedf58875036caa2520d5d09.gz

rtems-patches/rtems-m9328-pimx1-syncmclk.patch [new file with mode: 0644]

diff --git a/rtems-patches/rtems-m9328-pimx1-syncmclk.patch b/rtems-patches/rtems-m9328-pimx1-syncmclk.patch
new file mode 100644 (file)
index 0000000..90cf04f
--- /dev/null
@@ -0,0 +1,20 @@
+Index: rtems/c/src/lib/libbsp/arm/csb336/startup/bspstart.c
+===================================================================
+--- rtems/c/src/lib/libbsp/arm/csb336/startup/bspstart.c
++++ rtems/c/src/lib/libbsp/arm/csb336/startup/bspstart.c
+@@ -89,6 +89,7 @@ void bsp_pretasking_hook(void)
+ void mmu_set_cpu_async_mode(void);
+ void bsp_start_default( void )
+ {
++#ifdef CONFIG_MC9328MX_ASYNCMCLK
+     int i;
+     /* Set the MCU prescaler to divide by 1 */
+@@ -104,6 +105,7 @@ void bsp_start_default( void )
+     /* Set the CPU to asynchrous clock mode, so it uses its fastest clock */
+     mmu_set_cpu_async_mode();
++#endif /*CONFIG_MC9328MX_ASYNCMCLK*/
+     /* disable interrupts */
+     MC9328MXL_AITC_INTENABLEL = 0;