Changes to CSB336 BSP for its adaption for the PiMX1 (ARM 9328 MX1 based) board.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Mon, 31 Oct 2005 10:53:57 +0000 (11:53 +0100)
committerPavel Pisa <pi@thor.(none)>
Sat, 28 Nov 2009 23:29:46 +0000 (00:29 +0100)
The board documentation and schematic can be found on appropriate PiKRON
company page
  http://www.pikron.com/en/main_frame_pimx1.html

darcs-hash:20051031105357-ff715-8197a6dc5a91f6dac79837de0c2db4429534fa2a.gz

rtems-patches/rtems-m9328-pimx1-baud-19200.patch [new file with mode: 0644]
rtems-patches/rtems-m9328-pimx1-mapping-change.patch [new file with mode: 0644]
rtems-patches/series

diff --git a/rtems-patches/rtems-m9328-pimx1-baud-19200.patch b/rtems-patches/rtems-m9328-pimx1-baud-19200.patch
new file mode 100644 (file)
index 0000000..03648f6
--- /dev/null
@@ -0,0 +1,26 @@
+Index: rtems-051009/c/src/lib/libbsp/arm/csb336/console/uart.c
+===================================================================
+--- rtems.orig/c/src/lib/libbsp/arm/csb336/console/uart.c
++++ rtems/c/src/lib/libbsp/arm/csb336/console/uart.c
+@@ -237,7 +237,7 @@ static void imx_uart_init(int minor)
+         MC9328MXL_UART_FCR_RFDIV_1 |
+         MC9328MXL_UART_FCR_RXTL(1));
+-    imx_uart_set_baud(minor, 38400);
++    imx_uart_set_baud(minor, 19200);
+ }
+Index: rtems-051009/cpukit/libcsupport/src/termios.c
+===================================================================
+--- rtems.orig/cpukit/libcsupport/src/termios.c
++++ rtems/cpukit/libcsupport/src/termios.c
+@@ -271,7 +271,7 @@ rtems_termios_open (
+                */
+               tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;
+               tty->termios.c_oflag = OPOST | ONLCR | XTABS;
+-              tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;
++              tty->termios.c_cflag = B19200 | CS8 | CREAD | CLOCAL;
+               tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;
+               tty->termios.c_cc[VINTR] = '\003';
diff --git a/rtems-patches/rtems-m9328-pimx1-mapping-change.patch b/rtems-patches/rtems-m9328-pimx1-mapping-change.patch
new file mode 100644 (file)
index 0000000..393b5e2
--- /dev/null
@@ -0,0 +1,18 @@
+Index: rtems/c/src/lib/libbsp/arm/csb336/startup/memmap.c
+===================================================================
+--- rtems.orig/c/src/lib/libbsp/arm/csb336/startup/memmap.c
++++ rtems/c/src/lib/libbsp/arm/csb336/startup/memmap.c
+@@ -21,8 +21,12 @@ mmu_sect_map_t mem_map[] = {
+ /*  <phys addr>  <virt addr> <size> <flags> */
+     {0x08200000, 0x00000000,   1,    MMU_CACHE_NONE},     /* Mirror of SDRAM */
+     {0x00100000, 0x00100000,   1,    MMU_CACHE_NONE},     /* Bootstrap ROM */
+-    {0x00200000, 0x00200000,   1,    MMU_CACHE_NONE},     /* Internal Regs */
++    {0x00200000, 0x00200000,   2,    MMU_CACHE_NONE},     /* Internal Regs + eSRAM */
++  #if 1
++    {0x08000000, 0x08000000,  32,    MMU_CACHE_WBACK},    /* SDRAM */
++  #else
+     {0x08000000, 0x08000000,  32,    MMU_CACHE_WTHROUGH}, /* SDRAM */
++  #endif
+     {0x10000000, 0x10000000,   8,    MMU_CACHE_NONE},     /* CS0 - Flash */
+     {0x12000000, 0x12000000,   1,    MMU_CACHE_NONE},     /* CS1 - enet */
+     {0x13000000, 0x13000000,   1,    MMU_CACHE_NONE},     /* CS2 - */
index 5807553..86d2bf2 100644 (file)
@@ -1,6 +1,7 @@
-rtems-csb336-20051008-asyncmclk.patch
 rtems-csb336-20051008-other.patch
 rtems-csb336-20051008-uart.patch
+rtems-m9328-pimx1-mapping-change.patch
+rtems-m9328-pimx1-baud-19200.patch
 rtems-dosfs-fix1.patch
 rtems-inttypes-wcs-disable-fix.patch
 rtems-clone-mrm332-to-mo376.patch