<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2011-09-26)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>sh</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-09-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
* mpc83xx/include/mpc83xx.h, mpc83xx/network/tsec.c: Update due to API
changes.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/ChangeLog.diff?r1=text&tr1=1.396&r2=text&tr2=1.397&diff_format=h">M</a></td><td width='1%'>1.397</td><td width='100%'>c/src/lib/libcpu/powerpc/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/mpc83xx/include/mpc83xx.h.diff?r1=text&tr1=1.10&r2=text&tr2=1.11&diff_format=h">M</a></td><td width='1%'>1.11</td><td width='100%'>c/src/lib/libcpu/powerpc/mpc83xx/include/mpc83xx.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c.diff?r1=text&tr1=1.12&r2=text&tr2=1.13&diff_format=h">M</a></td><td width='1%'>1.13</td><td width='100%'>c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/ChangeLog:1.396 rtems/c/src/lib/libcpu/powerpc/ChangeLog:1.397
--- rtems/c/src/lib/libcpu/powerpc/ChangeLog:1.396 Thu Sep 1 03:18:56 2011
+++ rtems/c/src/lib/libcpu/powerpc/ChangeLog Mon Sep 26 05:03:29 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-09-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
+
+ * mpc83xx/include/mpc83xx.h, mpc83xx/network/tsec.c: Update due to API
+ changes.
+
</font> 2011-09-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
* mpc55xx/include/fsl-mpc567x.h: Added FLASH as an alias to FLASH_A.
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/mpc83xx/include/mpc83xx.h:1.10 rtems/c/src/lib/libcpu/powerpc/mpc83xx/include/mpc83xx.h:1.11
--- rtems/c/src/lib/libcpu/powerpc/mpc83xx/include/mpc83xx.h:1.10 Thu Dec 30 07:09:47 2010
+++ rtems/c/src/lib/libcpu/powerpc/mpc83xx/include/mpc83xx.h Mon Sep 26 05:03:29 2011
</font><font color='#997700'>@@ -7,23 +7,21 @@
</font>
#include <bspopts.h>
<font color='#880000'>-#if defined(MPC8343)
</font><font color='#000088'>+#if MPC83XX_CHIP_TYPE == 8343
</font> #define M83xx_HAS_PCI TRUE
#define M83xx_HAS_USB1 TRUE
<font color='#880000'>-#elif defined(MPC8347)
</font><font color='#000088'>+#elif MPC83XX_CHIP_TYPE == 8347
</font> #define M83xx_HAS_PCI TRUE
#define M83xx_HAS_USB1 TRUE
#define M83xx_HAS_USB2 TRUE
<font color='#880000'>-#elif defined(MPC8349)
</font><font color='#000088'>+#elif MPC83XX_CHIP_TYPE == 8349
</font> #define M83xx_HAS_PCI TRUE
#define M83xx_HAS_WIDE_PCI TRUE
#define M83xx_HAS_USB1 TRUE
#define M83xx_HAS_USB2 TRUE
<font color='#880000'>-#elif defined(MPC8360)
</font><font color='#000088'>+#elif MPC83XX_CHIP_TYPE == 8360
</font> #define M83xx_HAS_PCI TRUE
#define M83xx_HAS_QE TRUE
<font color='#880000'>-#else
-#error "add feature list in mpc83xx_regs.h"
</font> #endif
#if !defined(ASM)
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c:1.12 rtems/c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c:1.13
--- rtems/c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c:1.12 Fri Feb 25 07:34:41 2011
+++ rtems/c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c Mon Sep 26 05:03:30 2011
</font><font color='#997700'>@@ -1507,7 +1507,7 @@
</font> sc->reg_ptr->rctrl &= ~TSEC_RCTRL_PROM;
}
<font color='#880000'>-#if defined(HSC_CM01)
</font><font color='#000088'>+#if defined(MPC83XX_BOARD_HSC_CM01)
</font> /*
* for HSC CM01: we need to configure the PHY to use maximum skew adjust
*/
</pre>
<p> </p>
<a name='cs2'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>sh</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-09-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
* make/custom/mpc8309som.cfg, startup/linkcmds.mpc8309som: New file.
* Makefile.am, preinstall.am: Reflect changes above.
* configure.ac, console/console-config.c, include/bsp.h,
include/hwreg_vals.h, include/irq.h, network/network.c,
spi/spi_init.c, startup/cpuinit.c: Renamed various BSP options.
* make/custom/gen83xx.inc, make/custom/hsc_cm01.cfg,
make/custom/mpc8313erdb.cfg, make/custom/mpc8349eamds.cfg: Avoid
special linkcmds.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog.diff?r1=text&tr1=1.106&r2=text&tr2=1.107&diff_format=h">M</a></td><td width='1%'>1.107</td><td width='100%'>c/src/lib/libbsp/powerpc/gen83xx/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am.diff?r1=text&tr1=1.33&r2=text&tr2=1.34&diff_format=h">M</a></td><td width='1%'>1.34</td><td width='100%'>c/src/lib/libbsp/powerpc/gen83xx/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/gen83xx/configure.ac.diff?r1=text&tr1=1.18&r2=text&tr2=1.19&diff_format=h">M</a></td><td width='1%'>1.19</td><td width='100%'>c/src/lib/libbsp/powerpc/gen83xx/configure.ac</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/gen83xx/console/console-config.c.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>c/src/lib/libbsp/powerpc/gen83xx/console/console-config.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/gen83xx/include/bsp.h.diff?r1=text&tr1=1.22&r2=text&tr2=1.23&diff_format=h">M</a></td><td width='1%'>1.23</td><td width='100%'>c/src/lib/libbsp/powerpc/gen83xx/include/bsp.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/gen83xx/include/hwreg_vals.h.diff?r1=text&tr1=1.7&r2=text&tr2=1.8&diff_format=h">M</a></td><td width='1%'>1.8</td><td width='100%'>c/src/lib/libbsp/powerpc/gen83xx/include/hwreg_vals.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/gen83xx/include/irq.h.diff?r1=text&tr1=1.4&r2=text&tr2=1.5&diff_format=h">M</a></td><td width='1%'>1.5</td><td width='100%'>c/src/lib/libbsp/powerpc/gen83xx/include/irq.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/gen83xx/make/custom/gen83xx.inc.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>c/src/lib/libbsp/powerpc/gen83xx/make/custom/gen83xx.inc</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/gen83xx/make/custom/hsc_cm01.cfg.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>c/src/lib/libbsp/powerpc/gen83xx/make/custom/hsc_cm01.cfg</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/gen83xx/make/custom/mpc8309som.cfg?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">c/src/lib/libbsp/powerpc/gen83xx/make/custom/mpc8309som.cfg</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/gen83xx/make/custom/mpc8313erdb.cfg.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>c/src/lib/libbsp/powerpc/gen83xx/make/custom/mpc8313erdb.cfg</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/gen83xx/make/custom/mpc8349eamds.cfg.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>c/src/lib/libbsp/powerpc/gen83xx/make/custom/mpc8349eamds.cfg</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/gen83xx/network/network.c.diff?r1=text&tr1=1.19&r2=text&tr2=1.20&diff_format=h">M</a></td><td width='1%'>1.20</td><td width='100%'>c/src/lib/libbsp/powerpc/gen83xx/network/network.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/gen83xx/preinstall.am.diff?r1=text&tr1=1.12&r2=text&tr2=1.13&diff_format=h">M</a></td><td width='1%'>1.13</td><td width='100%'>c/src/lib/libbsp/powerpc/gen83xx/preinstall.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/gen83xx/spi/spi_init.c.diff?r1=text&tr1=1.8&r2=text&tr2=1.9&diff_format=h">M</a></td><td width='1%'>1.9</td><td width='100%'>c/src/lib/libbsp/powerpc/gen83xx/spi/spi_init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/gen83xx/startup/cpuinit.c.diff?r1=text&tr1=1.13&r2=text&tr2=1.14&diff_format=h">M</a></td><td width='1%'>1.14</td><td width='100%'>c/src/lib/libbsp/powerpc/gen83xx/startup/cpuinit.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/gen83xx/startup/linkcmds.mpc8309som?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">c/src/lib/libbsp/powerpc/gen83xx/startup/linkcmds.mpc8309som</font></td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog:1.106 rtems/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog:1.107
--- rtems/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog:1.106 Wed Aug 24 04:50:15 2011
+++ rtems/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog Mon Sep 26 05:08:29 2011
</font><font color='#997700'>@@ -1,3 +1,14 @@
</font><font color='#000088'>+2011-09-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
+
+ * make/custom/mpc8309som.cfg, startup/linkcmds.mpc8309som: New file.
+ * Makefile.am, preinstall.am: Reflect changes above.
+ * configure.ac, console/console-config.c, include/bsp.h,
+ include/hwreg_vals.h, include/irq.h, network/network.c,
+ spi/spi_init.c, startup/cpuinit.c: Renamed various BSP options.
+ * make/custom/gen83xx.inc, make/custom/hsc_cm01.cfg,
+ make/custom/mpc8313erdb.cfg, make/custom/mpc8349eamds.cfg: Avoid
+ special linkcmds.
+
</font> 2011-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
* network/network.c: Update due to API changes.
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am:1.33 rtems/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am:1.34
--- rtems/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am:1.33 Sat Jun 18 02:29:48 2011
+++ rtems/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am Mon Sep 26 05:08:29 2011
</font><font color='#997700'>@@ -32,6 +32,7 @@
</font>
dist_project_lib_DATA += startup/linkcmds \
startup/linkcmds.base \
<font color='#000088'>+ startup/linkcmds.mpc8309som \
</font> startup/linkcmds.mpc8313erdb \
startup/linkcmds.mpc8349eamds \
startup/linkcmds.hsc_cm01
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/powerpc/gen83xx/configure.ac:1.18 rtems/c/src/lib/libbsp/powerpc/gen83xx/configure.ac:1.19
--- rtems/c/src/lib/libbsp/powerpc/gen83xx/configure.ac:1.18 Tue Jun 7 08:34:30 2011
+++ rtems/c/src/lib/libbsp/powerpc/gen83xx/configure.ac Mon Sep 26 05:08:29 2011
</font><font color='#997700'>@@ -21,38 +21,44 @@
</font> RTEMS_BSPOPTS_SET_INSTRUCTION_CACHE_ENABLED([*],[1])
RTEMS_BSPOPTS_HELP_INSTRUCTION_CACHE_ENABLED
<font color='#880000'>-RTEMS_BSPOPTS_SET([MPC8313ERDB],[mpc8313erdb],[1])
-RTEMS_BSPOPTS_HELP([MPC8313ERDB],
-[If defined, use custom settings for the mpc8313erdb BSP.])
-
-RTEMS_BSPOPTS_SET([MPC8349EAMDS],[mpc8349eamds],[1])
-RTEMS_BSPOPTS_HELP([MPC8349EAMDS],
-[If defined, use custom settings for the mpc8349eamds BSP.])
-
-RTEMS_BSPOPTS_SET([HSC_CM01],[hsc_cm01],[1])
-RTEMS_BSPOPTS_HELP([HSC_CM01],
-[If defined, use custom settings for the hsc_cm01 BSP.])
-
-RTEMS_BSPOPTS_SET([MPC8349],[mpc8313erdb],[1])
-RTEMS_BSPOPTS_SET([MPC8349],[mpc8349eamds],[1])
-RTEMS_BSPOPTS_SET([MPC8349],[hsc_cm01],[1])
-RTEMS_BSPOPTS_HELP([MPC8349],
-[If defined, use custom settings for the MPC8349 libcpu family.])
-
-RTEMS_BSPOPTS_SET([BSP_CONSOLE_BAUD],[mpc8313erdb],[115200])
-RTEMS_BSPOPTS_SET([BSP_CONSOLE_BAUD],[*],[9600])
-RTEMS_BSPOPTS_HELP([BSP_CONSOLE_BAUD],[Default baud for console and other serial devices.])
-
-RTEMS_BSPOPTS_SET([BSP_USE_UART_INTERRUPTS],[mpc8313erdb],[1])
</font><font color='#000088'>+RTEMS_BSPOPTS_SET([MPC83XX_BOARD_MPC8313ERDB],[mpc8313erdb],[1])
+RTEMS_BSPOPTS_HELP([MPC83XX_BOARD_MPC8313ERDB],
+[if defined, then use settings for the MPC8313ERDB board])
+
+RTEMS_BSPOPTS_SET([MPC83XX_BOARD_MPC8349EAMDS],[mpc8349eamds],[1])
+RTEMS_BSPOPTS_HELP([MPC83XX_BOARD_MPC8349EAMDS],
+[if defined, then use settings for the MPC8349EAMDS board])
+
+RTEMS_BSPOPTS_SET([MPC83XX_BOARD_HSC_CM01],[hsc_cm01],[1])
+RTEMS_BSPOPTS_HELP([MPC83XX_BOARD_HSC_CM01],
+[if defined, then use settings for the HSC_CM01 board])
+
+RTEMS_BSPOPTS_SET([MPC83XX_BOARD_MPC8309SOM],[mpc8309som],[1])
+RTEMS_BSPOPTS_HELP([MPC83XX_BOARD_MPC8309SOM],
+[if defined, then use settings for the MPC8309SOM board])
+
+RTEMS_BSPOPTS_SET([MPC83XX_CHIP_TYPE],[mpc8309som],[8309])
+RTEMS_BSPOPTS_SET([MPC83XX_CHIP_TYPE],[mpc8349eamds],[8349])
+RTEMS_BSPOPTS_SET([MPC83XX_CHIP_TYPE],[hsc_cm01],[8349])
+RTEMS_BSPOPTS_SET([MPC83XX_CHIP_TYPE],[*],[8313])
+RTEMS_BSPOPTS_HELP([MPC83XX_CHIP_TYPE],[chip type of the MPC83XX family])
+
+RTEMS_BSPOPTS_SET([BSP_CONSOLE_BAUD],[mpc8349eamds],[9600])
+RTEMS_BSPOPTS_SET([BSP_CONSOLE_BAUD],[hsc_cm01],[9600])
+RTEMS_BSPOPTS_SET([BSP_CONSOLE_BAUD],[*],[115200])
+RTEMS_BSPOPTS_HELP([BSP_CONSOLE_BAUD],[default baud for console and other serial devices])
+
+RTEMS_BSPOPTS_SET([BSP_USE_UART_INTERRUPTS],[mpc8349eamds],[])
+RTEMS_BSPOPTS_SET([BSP_USE_UART_INTERRUPTS],[hsc_cm01],[])
+RTEMS_BSPOPTS_SET([BSP_USE_UART_INTERRUPTS],[*],[1])
</font> RTEMS_BSPOPTS_HELP([BSP_USE_UART_INTERRUPTS],[enable usage of interrupts for the UART modules])
<font color='#880000'>-RTEMS_BSPOPTS_SET([BSP_USE_UART2],[mpc8313erdb],[1])
-RTEMS_BSPOPTS_SET([BSP_USE_UART2],[mpc8349eamds],[1])
-RTEMS_BSPOPTS_SET([BSP_USE_UART2],[hsc_cm01],[1])
-RTEMS_BSPOPTS_HELP([BSP_USE_UART2],[If defined, enables UART2.])
</font><font color='#000088'>+RTEMS_BSPOPTS_SET([BSP_USE_UART2],[*],[1])
+RTEMS_BSPOPTS_HELP([BSP_USE_UART2],[if defined, enables UART2])
</font>
<font color='#000088'>+RTEMS_BSPOPTS_SET([HAS_UBOOT],[mpc8309som],[1])
</font> RTEMS_BSPOPTS_SET([HAS_UBOOT],[mpc8313erdb],[1])
<font color='#880000'>-RTEMS_BSPOPTS_HELP([HAS_UBOOT],[If defined, enables U-Boot support.])
</font><font color='#000088'>+RTEMS_BSPOPTS_HELP([HAS_UBOOT],[if defined, enables U-Boot support])
</font>
RTEMS_BSPOPTS_SET([GEN83XX_ENABLE_INTERRUPT_NESTING],[*],[1])
RTEMS_BSPOPTS_HELP([GEN83XX_ENABLE_INTERRUPT_NESTING],[enable interrupt nesting])
<font color='#997700'>@@ -65,6 +71,7 @@
</font>
RTEMS_BSP_BOOTCARD_OPTIONS
RTEMS_BSP_CLEANUP_OPTIONS(0, 0)
<font color='#000088'>+RTEMS_BSP_LINKCMDS
</font>
RTEMS_PPC_EXCEPTIONS
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/powerpc/gen83xx/console/console-config.c:1.2 rtems/c/src/lib/libbsp/powerpc/gen83xx/console/console-config.c:1.3
--- rtems/c/src/lib/libbsp/powerpc/gen83xx/console/console-config.c:1.2 Mon Jan 24 09:32:03 2011
+++ rtems/c/src/lib/libbsp/powerpc/gen83xx/console/console-config.c Mon Sep 26 05:08:29 2011
</font><font color='#997700'>@@ -80,7 +80,11 @@
</font> .getData = NULL,
.setData = NULL,
.ulClock = 0,
<font color='#000088'>+#if MPC83XX_CHIP_TYPE / 10 == 830
+ .ulIntVector = BSP_IPIC_IRQ_UART
+#else
</font> .ulIntVector = BSP_IPIC_IRQ_UART1
<font color='#000088'>+#endif
</font> }
#ifdef BSP_USE_UART2
, {
<font color='#997700'>@@ -100,7 +104,11 @@
</font> .getData = NULL,
.setData = NULL,
.ulClock = 0,
<font color='#000088'>+#if MPC83XX_CHIP_TYPE / 10 == 830
+ .ulIntVector = BSP_IPIC_IRQ_UART
+#else
</font> .ulIntVector = BSP_IPIC_IRQ_UART2
<font color='#000088'>+#endif
</font> }
#endif
};
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/powerpc/gen83xx/include/bsp.h:1.22 rtems/c/src/lib/libbsp/powerpc/gen83xx/include/bsp.h:1.23
--- rtems/c/src/lib/libbsp/powerpc/gen83xx/include/bsp.h:1.22 Mon Jan 24 09:32:03 2011
+++ rtems/c/src/lib/libbsp/powerpc/gen83xx/include/bsp.h Mon Sep 26 05:08:29 2011
</font><font color='#997700'>@@ -96,7 +96,7 @@
</font> extern int BSP_tsec_attach(struct rtems_bsdnet_ifconfig *config,int attaching);
#define RTEMS_BSP_NETWORK_DRIVER_ATTACH BSP_tsec_attach
<font color='#880000'>-#ifdef MPC8313ERDB
</font><font color='#000088'>+#ifdef MPC83XX_BOARD_MPC8313ERDB
</font> #define RTEMS_BSP_NETWORK_DRIVER_NAME "tsec2"
#define RTEMS_BSP_NETWORK_DRIVER_NAME2 "tsec1"
#else
<font color='#997700'>@@ -104,7 +104,7 @@
</font> #define RTEMS_BSP_NETWORK_DRIVER_NAME2 "tsec2"
#endif
<font color='#880000'>-#if defined(MPC8349EAMDS)
</font><font color='#000088'>+#if defined(MPC83XX_BOARD_MPC8349EAMDS)
</font> /*
* i2c EEPROM device name
*/
<font color='#997700'>@@ -116,9 +116,9 @@
</font> */
#define RTEMS_BSP_SPI_FLASH_DEVICE_NAME "flash"
#define RTEMS_BSP_SPI_FLASH_DEVICE_PATH "/dev/spi.flash"
<font color='#880000'>-#endif /* defined(MPC8349EAMDS) */
</font><font color='#000088'>+#endif /* defined(MPC83XX_BOARD_MPC8349EAMDS) */
</font>
<font color='#880000'>-#if defined(HSC_CM01)
</font><font color='#000088'>+#if defined(MPC83XX_BOARD_HSC_CM01)
</font> /*
* i2c EEPROM device name
*/
<font color='#997700'>@@ -130,7 +130,7 @@
</font> */
#define RTEMS_BSP_SPI_FRAM_DEVICE_NAME "fram"
#define RTEMS_BSP_SPI_FRAM_DEVICE_PATH "/dev/spi.fram"
<font color='#880000'>-#endif /* defined(HSC_CM01) */
</font><font color='#000088'>+#endif /* defined(MPC83XX_BOARD_HSC_CM01) */
</font>
extern unsigned int BSP_bus_frequency;
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/powerpc/gen83xx/include/hwreg_vals.h:1.7 rtems/c/src/lib/libbsp/powerpc/gen83xx/include/hwreg_vals.h:1.8
--- rtems/c/src/lib/libbsp/powerpc/gen83xx/include/hwreg_vals.h:1.7 Mon Jan 24 09:32:03 2011
+++ rtems/c/src/lib/libbsp/powerpc/gen83xx/include/hwreg_vals.h Mon Sep 26 05:08:29 2011
</font><font color='#997700'>@@ -29,7 +29,7 @@
</font> /*
* distinguish board characteristics
*/
<font color='#880000'>-#if defined(MPC8349EAMDS)
</font><font color='#000088'>+#if defined(MPC83XX_BOARD_MPC8349EAMDS)
</font> /*
* for Freescale MPC8349 EAMDS
*/
<font color='#997700'>@@ -69,7 +69,7 @@
</font> RCWHR_ENDIAN_BIG | \
RCWHR_LALE_NORM | \
RCWHR_LDP_PAR)
<font color='#880000'>-#elif defined(HSC_CM01)
</font><font color='#000088'>+#elif defined(MPC83XX_BOARD_HSC_CM01)
</font> /*
* for JPK HSC_CM01
*/
<font color='#997700'>@@ -119,9 +119,9 @@
</font>
#endif
<font color='#880000'>-#if defined(MPC8349EAMDS)
</font><font color='#000088'>+#if defined(MPC83XX_BOARD_MPC8349EAMDS)
</font> /**************************
<font color='#880000'>- * for Freescale MPC8349EAMDS
</font><font color='#000088'>+ * for Freescale MPC83XX_BOARD_MPC8349EAMDS
</font> */
/*
<font color='#997700'>@@ -174,7 +174,7 @@
</font> #define DDR_SDRAM_INTTVL_VAL 0x045B0100
#define DDR_SDRAM_CLK_CNTL_VAL 0x00000000
<font color='#880000'>-#elif defined(HSC_CM01)
</font><font color='#000088'>+#elif defined(MPC83XX_BOARD_HSC_CM01)
</font> /**************************
* for JPK HSC_CM01
*/
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/powerpc/gen83xx/include/irq.h:1.4 rtems/c/src/lib/libbsp/powerpc/gen83xx/include/irq.h:1.5
--- rtems/c/src/lib/libbsp/powerpc/gen83xx/include/irq.h:1.4 Mon Jan 24 09:32:03 2011
+++ rtems/c/src/lib/libbsp/powerpc/gen83xx/include/irq.h Mon Sep 26 05:08:29 2011
</font><font color='#997700'>@@ -24,12 +24,12 @@
</font> #ifndef GEN83xx_IRQ_IRQ_H
#define GEN83xx_IRQ_IRQ_H
<font color='#880000'>-#include <stdbool.h>
-
</font> #include <rtems.h>
#include <rtems/irq.h>
#include <rtems/irq-extension.h>
<font color='#000088'>+#include <bspopts.h>
+
</font> /*
* the following definitions specify the indices used
* to interface the interrupt handler API
<font color='#997700'>@@ -77,59 +77,90 @@
</font> * index table for the module specific handlers, a few entries are only placeholders
*/
typedef enum {
<font color='#880000'>- BSP_IPIC_IRQ_FIRST = BSP_IPIC_IRQ_LOWEST_OFFSET,
- BSP_IPIC_IRQ_ERROR = BSP_IPIC_IRQ_LOWEST_OFFSET + 0,
- /* reserved irqs 1- 8 */
- BSP_IPIC_IRQ_UART1 = BSP_IPIC_IRQ_LOWEST_OFFSET + 9,
- BSP_IPIC_IRQ_UART2<span style="background-color: #FF0000"> </span> = BSP_IPIC_IRQ_LOWEST_OFFSET + 10,
- BSP_IPIC_IRQ_SEC<span style="background-color: #FF0000"> </span> = BSP_IPIC_IRQ_LOWEST_OFFSET + 11,
- /* reserved irqs 12-13 */
</font><font color='#000088'>+ BSP_IPIC_IRQ_FIRST = BSP_IPIC_IRQ_LOWEST_OFFSET,
+ BSP_IPIC_IRQ_ERROR = BSP_IPIC_IRQ_LOWEST_OFFSET + 0,
+#if MPC83XX_CHIP_TYPE / 10 == 830
+ BSP_IPIC_IRQ_DMA1 = BSP_IPIC_IRQ_LOWEST_OFFSET + 3,
+ BSP_IPIC_IRQ_UART = BSP_IPIC_IRQ_LOWEST_OFFSET + 9,
+ BSP_IPIC_IRQ_FLEXCAN = BSP_IPIC_IRQ_LOWEST_OFFSET + 10,
+#else
+ BSP_IPIC_IRQ_UART1 = BSP_IPIC_IRQ_LOWEST_OFFSET + 9,
+ BSP_IPIC_IRQ_UART2 = BSP_IPIC_IRQ_LOWEST_OFFSET + 10,
+ BSP_IPIC_IRQ_SEC = BSP_IPIC_IRQ_LOWEST_OFFSET + 11,
+#endif
</font> BSP_IPIC_IRQ_I2C1 = BSP_IPIC_IRQ_LOWEST_OFFSET + 14,
BSP_IPIC_IRQ_I2C2 = BSP_IPIC_IRQ_LOWEST_OFFSET + 15,
BSP_IPIC_IRQ_SPI = BSP_IPIC_IRQ_LOWEST_OFFSET + 16,
BSP_IPIC_IRQ_IRQ1 = BSP_IPIC_IRQ_LOWEST_OFFSET + 17,
BSP_IPIC_IRQ_IRQ2 = BSP_IPIC_IRQ_LOWEST_OFFSET + 18,
BSP_IPIC_IRQ_IRQ3 = BSP_IPIC_IRQ_LOWEST_OFFSET + 19,
<font color='#000088'>+#if MPC83XX_CHIP_TYPE / 10 == 830
+ BSP_IPIC_IRQ_QUICC_HI = BSP_IPIC_IRQ_LOWEST_OFFSET + 32,
+ BSP_IPIC_IRQ_QUICC_LO = BSP_IPIC_IRQ_LOWEST_OFFSET + 33,
+#else
</font> BSP_IPIC_IRQ_IRQ4 = BSP_IPIC_IRQ_LOWEST_OFFSET + 20,
BSP_IPIC_IRQ_IRQ5 = BSP_IPIC_IRQ_LOWEST_OFFSET + 21,
BSP_IPIC_IRQ_IRQ6 = BSP_IPIC_IRQ_LOWEST_OFFSET + 22,
BSP_IPIC_IRQ_IRQ7 = BSP_IPIC_IRQ_LOWEST_OFFSET + 23,
<font color='#880000'>- /* reserved irqs 24-31 */
</font> BSP_IPIC_IRQ_TSEC1_TX = BSP_IPIC_IRQ_LOWEST_OFFSET + 32,
BSP_IPIC_IRQ_TSEC1_RX = BSP_IPIC_IRQ_LOWEST_OFFSET + 33,
BSP_IPIC_IRQ_TSEC1_ERR = BSP_IPIC_IRQ_LOWEST_OFFSET + 34,
BSP_IPIC_IRQ_TSEC2_TX = BSP_IPIC_IRQ_LOWEST_OFFSET + 35,
BSP_IPIC_IRQ_TSEC2_RX = BSP_IPIC_IRQ_LOWEST_OFFSET + 36,
BSP_IPIC_IRQ_TSEC2_ERR = BSP_IPIC_IRQ_LOWEST_OFFSET + 37,
<font color='#000088'>+#endif
</font> BSP_IPIC_IRQ_USB_DR = BSP_IPIC_IRQ_LOWEST_OFFSET + 38,
<font color='#000088'>+#if MPC83XX_CHIP_TYPE / 10 == 830
+ BSP_IPIC_IRQ_ESDHC = BSP_IPIC_IRQ_LOWEST_OFFSET + 42,
+#else
</font> BSP_IPIC_IRQ_USB_MPH = BSP_IPIC_IRQ_LOWEST_OFFSET + 39,
<font color='#880000'>- /* reserved irqs 40-47 */
</font><font color='#000088'>+#endif
</font> BSP_IPIC_IRQ_IRQ0 = BSP_IPIC_IRQ_LOWEST_OFFSET + 48,
<font color='#880000'>- /* reserved irqs 49-63 */
</font> BSP_IPIC_IRQ_RTC_SEC = BSP_IPIC_IRQ_LOWEST_OFFSET + 64,
BSP_IPIC_IRQ_PIT = BSP_IPIC_IRQ_LOWEST_OFFSET + 65,
BSP_IPIC_IRQ_PCI1 = BSP_IPIC_IRQ_LOWEST_OFFSET + 66,
<font color='#000088'>+#if MPC83XX_CHIP_TYPE / 10 == 830
+ BSP_IPIC_IRQ_MSIR1 = BSP_IPIC_IRQ_LOWEST_OFFSET + 67,
+#else
</font> BSP_IPIC_IRQ_PCI2 = BSP_IPIC_IRQ_LOWEST_OFFSET + 67,
<font color='#000088'>+#endif
</font> BSP_IPIC_IRQ_RTC_ALR = BSP_IPIC_IRQ_LOWEST_OFFSET + 68,
BSP_IPIC_IRQ_MU = BSP_IPIC_IRQ_LOWEST_OFFSET + 69,
BSP_IPIC_IRQ_SBA = BSP_IPIC_IRQ_LOWEST_OFFSET + 70,
BSP_IPIC_IRQ_DMA = BSP_IPIC_IRQ_LOWEST_OFFSET + 71,
BSP_IPIC_IRQ_GTM4 = BSP_IPIC_IRQ_LOWEST_OFFSET + 72,
BSP_IPIC_IRQ_GTM8 = BSP_IPIC_IRQ_LOWEST_OFFSET + 73,
<font color='#000088'>+#if MPC83XX_CHIP_TYPE / 10 == 830
+ BSP_IPIC_IRQ_QUICC_PORTS = BSP_IPIC_IRQ_LOWEST_OFFSET + 74,
+ BSP_IPIC_IRQ_GPIO = BSP_IPIC_IRQ_LOWEST_OFFSET + 75,
+#else
</font> BSP_IPIC_IRQ_GPIO1 = BSP_IPIC_IRQ_LOWEST_OFFSET + 74,
BSP_IPIC_IRQ_GPIO2 = BSP_IPIC_IRQ_LOWEST_OFFSET + 75,
<font color='#000088'>+#endif
</font> BSP_IPIC_IRQ_DDR = BSP_IPIC_IRQ_LOWEST_OFFSET + 76,
BSP_IPIC_IRQ_LBC = BSP_IPIC_IRQ_LOWEST_OFFSET + 77,
BSP_IPIC_IRQ_GTM2 = BSP_IPIC_IRQ_LOWEST_OFFSET + 78,
BSP_IPIC_IRQ_GTM6 = BSP_IPIC_IRQ_LOWEST_OFFSET + 79,
BSP_IPIC_IRQ_PMC = BSP_IPIC_IRQ_LOWEST_OFFSET + 80,
<font color='#880000'>- /* reserved irqs 81-83 */
</font><font color='#000088'>+#if MPC83XX_CHIP_TYPE / 10 == 830
+ BSP_IPIC_IRQ_MSIR2 = BSP_IPIC_IRQ_LOWEST_OFFSET + 81,
+ BSP_IPIC_IRQ_MSIR3 = BSP_IPIC_IRQ_LOWEST_OFFSET + 82,
+#else
</font> BSP_IPIC_IRQ_GTM3 = BSP_IPIC_IRQ_LOWEST_OFFSET + 84,
BSP_IPIC_IRQ_GTM7 = BSP_IPIC_IRQ_LOWEST_OFFSET + 85,
<font color='#880000'>- /* reserved irqs 86-89 */
</font><font color='#000088'>+#endif
+#if MPC83XX_CHIP_TYPE / 10 == 830
+ BSP_IPIC_IRQ_MSIR4 = BSP_IPIC_IRQ_LOWEST_OFFSET + 86,
+ BSP_IPIC_IRQ_MSIR5 = BSP_IPIC_IRQ_LOWEST_OFFSET + 87,
+ BSP_IPIC_IRQ_MSIR6 = BSP_IPIC_IRQ_LOWEST_OFFSET + 88,
+ BSP_IPIC_IRQ_MSIR7 = BSP_IPIC_IRQ_LOWEST_OFFSET + 89,
+#endif
</font> BSP_IPIC_IRQ_GTM1 = BSP_IPIC_IRQ_LOWEST_OFFSET + 90,
BSP_IPIC_IRQ_GTM5 = BSP_IPIC_IRQ_LOWEST_OFFSET + 91,
<font color='#880000'>- /* reserved irqs 92-127 */
</font><font color='#000088'>+#if MPC83XX_CHIP_TYPE / 10 == 830
+ BSP_IPIC_IRQ_DMA1_ERR = BSP_IPIC_IRQ_LOWEST_OFFSET + 94,
+ BSP_IPIC_IRQ_DPTC = BSP_IPIC_IRQ_LOWEST_OFFSET + 95,
+#endif
</font>
BSP_IPIC_IRQ_LAST = BSP_IPIC_IRQ_MAX_OFFSET,
} rtems_irq_symbolic_name;
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/powerpc/gen83xx/make/custom/gen83xx.inc:1.3 rtems/c/src/lib/libbsp/powerpc/gen83xx/make/custom/gen83xx.inc:1.4
--- rtems/c/src/lib/libbsp/powerpc/gen83xx/make/custom/gen83xx.inc:1.3 Thu Feb 10 06:56:55 2011
+++ rtems/c/src/lib/libbsp/powerpc/gen83xx/make/custom/gen83xx.inc Mon Sep 26 05:08:29 2011
</font><font color='#997700'>@@ -20,5 +20,3 @@
</font>
# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions
<font color='#880000'>-
-LDFLAGS += -qnolinkcmds -T $(RTEMS_LINKCMDS)
</font>
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/powerpc/gen83xx/make/custom/hsc_cm01.cfg:1.2 rtems/c/src/lib/libbsp/powerpc/gen83xx/make/custom/hsc_cm01.cfg:1.3
--- rtems/c/src/lib/libbsp/powerpc/gen83xx/make/custom/hsc_cm01.cfg:1.2 Sat Oct 17 10:31:27 2009
+++ rtems/c/src/lib/libbsp/powerpc/gen83xx/make/custom/hsc_cm01.cfg Mon Sep 26 05:08:29 2011
</font><font color='#997700'>@@ -9,6 +9,4 @@
</font> # parameters differ.
#<span style="background-color: #FF0000"> </span>
<font color='#880000'>-RTEMS_LINKCMDS=linkcmds.hsc_cm01
-
</font> include $(RTEMS_ROOT)/make/custom/gen83xx.inc
<font color='#006600'>diff -u /dev/null rtems/c/src/lib/libbsp/powerpc/gen83xx/make/custom/mpc8309som.cfg:1.1
--- /dev/null Mon Sep 26 05:10:35 2011
+++ rtems/c/src/lib/libbsp/powerpc/gen83xx/make/custom/mpc8309som.cfg Mon Sep 26 05:08:29 2011
</font><font color='#997700'>@@ -0,0 +1,10 @@
</font><font color='#000088'>+##
+#
+# @file
+#
+# @ingroup mpc83xx_config
+#
+# @brief Configuration file for the MPC8309 System on Module.
+#
+
+include $(RTEMS_ROOT)/make/custom/gen83xx.inc
</font>
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/powerpc/gen83xx/make/custom/mpc8313erdb.cfg:1.2 rtems/c/src/lib/libbsp/powerpc/gen83xx/make/custom/mpc8313erdb.cfg:1.3
--- rtems/c/src/lib/libbsp/powerpc/gen83xx/make/custom/mpc8313erdb.cfg:1.2 Sat Oct 17 10:31:27 2009
+++ rtems/c/src/lib/libbsp/powerpc/gen83xx/make/custom/mpc8313erdb.cfg Mon Sep 26 05:08:29 2011
</font><font color='#997700'>@@ -7,6 +7,4 @@
</font> # @brief Configuration file for the MPC8313E Reference Design Board.
#
<font color='#880000'>-RTEMS_LINKCMDS=linkcmds.mpc8313erdb
-
</font> include $(RTEMS_ROOT)/make/custom/gen83xx.inc
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/powerpc/gen83xx/make/custom/mpc8349eamds.cfg:1.2 rtems/c/src/lib/libbsp/powerpc/gen83xx/make/custom/mpc8349eamds.cfg:1.3
--- rtems/c/src/lib/libbsp/powerpc/gen83xx/make/custom/mpc8349eamds.cfg:1.2 Sat Oct 17 10:31:27 2009
+++ rtems/c/src/lib/libbsp/powerpc/gen83xx/make/custom/mpc8349eamds.cfg Mon Sep 26 05:08:29 2011
</font><font color='#997700'>@@ -9,6 +9,4 @@
</font> # parameters differ.
#<span style="background-color: #FF0000"> </span>
<font color='#880000'>-RTEMS_LINKCMDS=linkcmds.mpc8349eamds
-
</font> include $(RTEMS_ROOT)/make/custom/gen83xx.inc
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/powerpc/gen83xx/network/network.c:1.19 rtems/c/src/lib/libbsp/powerpc/gen83xx/network/network.c:1.20
--- rtems/c/src/lib/libbsp/powerpc/gen83xx/network/network.c:1.19 Wed Aug 24 04:50:15 2011
+++ rtems/c/src/lib/libbsp/powerpc/gen83xx/network/network.c Mon Sep 26 05:08:29 2011
</font><font color='#997700'>@@ -32,18 +32,20 @@
</font> #include <string.h>
#include <libcpu/spr.h>
<font color='#000088'>+#if MPC83XX_CHIP_TYPE / 10 != 830
+
</font> #define TSEC_IFMODE_RGMII 0
#define TSEC_IFMODE_GMII 1
<font color='#880000'>-#if defined( MPC8313ERDB)
</font><font color='#000088'>+#if defined( MPC83XX_BOARD_MPC8313ERDB)
</font>
#define TSEC_IFMODE TSEC_IFMODE_RGMII
<font color='#880000'>-#elif defined( MPC8349EAMDS)
</font><font color='#000088'>+#elif defined( MPC83XX_BOARD_MPC8349EAMDS)
</font>
#define TSEC_IFMODE TSEC_IFMODE_GMII
<font color='#880000'>-#elif defined( HSC_CM01)
</font><font color='#000088'>+#elif defined( MPC83XX_BOARD_HSC_CM01)
</font>
#define TSEC_IFMODE TSEC_IFMODE_RGMII
<font color='#997700'>@@ -100,7 +102,7 @@
</font>
if (attaching) {
#if (TSEC_IFMODE==TSEC_IFMODE_GMII)
<font color='#880000'>-#if !defined(HSC_CM01)
</font><font color='#000088'>+#if !defined(MPC83XX_BOARD_HSC_CM01)
</font>
/*
* do not change system I/O configuration registers on HSC board
<font color='#997700'>@@ -132,7 +134,7 @@
</font> mpc83xx.gpio[0].gpdir = ((mpc83xx.gpio[0].gpdir & ~0x000FFFFF)
| 0x00087881);
}
<font color='#880000'>-#endif /* !defined(HSC_CM01) */
</font><font color='#000088'>+#endif /* !defined(MPC83XX_BOARD_HSC_CM01) */
</font> #endif
#if (TSEC_IFMODE==TSEC_IFMODE_RGMII)
<font color='#997700'>@@ -232,16 +234,16 @@
</font> * XXX: Although most hardware builders will assign the PHY addresses
* like this, this should be more configurable
*/
<font color='#880000'>-#ifdef MPC8313ERDB
</font><font color='#000088'>+#ifdef MPC83XX_BOARD_MPC8313ERDB
</font> if (unitNumber == 2) {
tsec_cfg.phy_default = 4;
} else {
/* TODO */
return 0;
}
<font color='#880000'>-#else /* MPC8313ERDB */
</font><font color='#000088'>+#else /* MPC83XX_BOARD_MPC8313ERDB */
</font> tsec_cfg.phy_default = unitNumber-1;
<font color='#880000'>-#endif /* MPC8313ERDB */
</font><font color='#000088'>+#endif /* MPC83XX_BOARD_MPC8313ERDB */
</font>
tsec_cfg.unit_number = unitNumber;
tsec_cfg.unit_name = unitName;
<font color='#997700'>@@ -251,3 +253,5 @@
</font> */
return tsec_driver_attach_detach(config, attaching);
}
<font color='#000088'>+
+#endif /* MPC83XX_CHIP_TYPE / 10 != 830 */
</font>
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/powerpc/gen83xx/preinstall.am:1.12 rtems/c/src/lib/libbsp/powerpc/gen83xx/preinstall.am:1.13
--- rtems/c/src/lib/libbsp/powerpc/gen83xx/preinstall.am:1.12 Thu Dec 30 07:16:41 2010
+++ rtems/c/src/lib/libbsp/powerpc/gen83xx/preinstall.am Mon Sep 26 05:08:29 2011
</font><font color='#997700'>@@ -77,6 +77,10 @@
</font> $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.base
PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.base
<font color='#000088'>+$(PROJECT_LIB)/linkcmds.mpc8309som: startup/linkcmds.mpc8309som $(PROJECT_LIB)/$(dirstamp)
+ $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.mpc8309som
+PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.mpc8309som
+
</font> $(PROJECT_LIB)/linkcmds.mpc8313erdb: startup/linkcmds.mpc8313erdb $(PROJECT_LIB)/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.mpc8313erdb
PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.mpc8313erdb
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/powerpc/gen83xx/spi/spi_init.c:1.8 rtems/c/src/lib/libbsp/powerpc/gen83xx/spi/spi_init.c:1.9
--- rtems/c/src/lib/libbsp/powerpc/gen83xx/spi/spi_init.c:1.8 Mon Jan 24 09:32:04 2011
+++ rtems/c/src/lib/libbsp/powerpc/gen83xx/spi/spi_init.c Mon Sep 26 05:08:29 2011
</font><font color='#997700'>@@ -26,15 +26,15 @@
</font> #include <bsp/irq.h>
#include <bsp.h>
<font color='#880000'>-#if defined( MPC8313ERDB)
</font><font color='#000088'>+#if defined( MPC83XX_BOARD_MPC8313ERDB)
</font>
#include <libchip/spi-sd-card.h>
<font color='#880000'>-#elif defined( MPC8349EAMDS)
</font><font color='#000088'>+#elif defined( MPC83XX_BOARD_MPC8349EAMDS)
</font>
#include <libchip/spi-flash-m25p40.h>
<font color='#880000'>-#elif defined( HSC_CM01)
</font><font color='#000088'>+#elif defined( MPC83XX_BOARD_HSC_CM01)
</font>
#include <libchip/spi-fram-fm25l256.h>
<font color='#997700'>@@ -69,7 +69,7 @@
</font> \*=========================================================================*/
{
<font color='#880000'>-#if defined( MPC8313ERDB)
</font><font color='#000088'>+#if defined( MPC83XX_BOARD_MPC8313ERDB)
</font>
/* Check address */
if (addr > 0) {
<font color='#997700'>@@ -79,7 +79,7 @@
</font> /* SCS (active low) */
mpc83xx.gpio [0].gpdat &= ~0x20000000;
<font color='#880000'>-#elif defined( MPC8349EAMDS)
</font><font color='#000088'>+#elif defined( MPC83XX_BOARD_MPC8349EAMDS)
</font>
/*
* check device address for valid range
<font color='#997700'>@@ -94,7 +94,7 @@
</font> */
mpc83xx.gpio[0].gpdat &= ~(1 << (31- 0));
<font color='#880000'>-#elif defined( HSC_CM01)
</font><font color='#000088'>+#elif defined( MPC83XX_BOARD_HSC_CM01)
</font>
/*
* check device address for valid range
<font color='#997700'>@@ -143,12 +143,12 @@
</font> \*=========================================================================*/
{
<font color='#880000'>-#if defined( MPC8313ERDB)
</font><font color='#000088'>+#if defined( MPC83XX_BOARD_MPC8313ERDB)
</font>
/* SCS (inactive high) */
mpc83xx.gpio [0].gpdat |= 0x20000000;
<font color='#880000'>-#elif defined( MPC8349EAMDS)
</font><font color='#000088'>+#elif defined( MPC83XX_BOARD_MPC8349EAMDS)
</font>
/*
* GPIO1[0] is nSEL_SPI for M25P40
<font color='#997700'>@@ -156,7 +156,7 @@
</font> */
mpc83xx.gpio[0].gpdat |= (1 << (31- 0));
<font color='#880000'>-#elif defined( HSC_CM01)
</font><font color='#000088'>+#elif defined( MPC83XX_BOARD_HSC_CM01)
</font>
/*
* GPIO1[27] is high-active strobe
<font color='#997700'>@@ -191,12 +191,12 @@
</font> printk("bsp_spi_send_stop called... ");
#endif
<font color='#880000'>-#if defined( MPC8313ERDB)
</font><font color='#000088'>+#if defined( MPC83XX_BOARD_MPC8313ERDB)
</font>
/* SCS (inactive high) */
mpc83xx.gpio [0].gpdat |= 0x20000000;
<font color='#880000'>-#elif defined( MPC8349EAMDS)
</font><font color='#000088'>+#elif defined( MPC83XX_BOARD_MPC8349EAMDS)
</font>
/*
* deselect given device
<font color='#997700'>@@ -205,7 +205,7 @@
</font> */
mpc83xx.gpio[0].gpdat |= (1 << (31- 0));
<font color='#880000'>-#elif defined( HSC_CM01)
</font><font color='#000088'>+#elif defined( MPC83XX_BOARD_HSC_CM01)
</font>
/*
* deselect device
<font color='#997700'>@@ -248,7 +248,7 @@
</font> }
};
<font color='#880000'>-#ifdef MPC8313ERDB
</font><font color='#000088'>+#ifdef MPC83XX_BOARD_MPC8313ERDB
</font>
#include <libchip/spi-sd-card.h>
<font color='#997700'>@@ -274,7 +274,7 @@
</font> }
};
<font color='#880000'>-#endif /* MPC8313ERDB */
</font><font color='#000088'>+#endif /* MPC83XX_BOARD_MPC8313ERDB */
</font>
/*=========================================================================*\
<font color='#997700'>@@ -312,7 +312,7 @@
</font> * init port pins used to address/select SPI devices
*/
<font color='#880000'>-#if defined( MPC8313ERDB)
</font><font color='#000088'>+#if defined( MPC83XX_BOARD_MPC8313ERDB)
</font>
/*
* Configured as master (direct connection to SD card)
<font color='#997700'>@@ -336,7 +336,7 @@
</font> /* Open Drain */
/* mpc83xx.gpio [0].gpdr |= 0x0000000f; */
<font color='#880000'>-#elif defined( MPC8349EAMDS)
</font><font color='#000088'>+#elif defined( MPC83XX_BOARD_MPC8349EAMDS)
</font>
/*
* GPIO1[0] is nSEL_SPI for M25P40
<font color='#997700'>@@ -346,7 +346,7 @@
</font> mpc83xx.gpio[0].gpdir |= (1 << (31- 0));
mpc83xx.gpio[0].gpdr &= ~(1 << (31- 0));
<font color='#880000'>-#elif defined( HSC_CM01)
</font><font color='#000088'>+#elif defined( MPC83XX_BOARD_HSC_CM01)
</font>
/*
* GPIO1[24] is SPI_A0
<font color='#997700'>@@ -376,7 +376,7 @@
</font> }
spi_busno = (unsigned) ret_code;
<font color='#880000'>-#if defined( MPC8313ERDB)
</font><font color='#000088'>+#if defined( MPC83XX_BOARD_MPC8313ERDB)
</font>
/* Register SD Card driver */
sd_card_driver_table [0].bus = spi_busno;
<font color='#997700'>@@ -385,7 +385,7 @@
</font> return sc;
}
<font color='#880000'>-#elif defined( MPC8349EAMDS)
</font><font color='#000088'>+#elif defined( MPC83XX_BOARD_MPC8349EAMDS)
</font>
/*
* register M25P40 Flash
<font color='#997700'>@@ -393,7 +393,7 @@
</font> ret_code = rtems_libi2c_register_drv(RTEMS_BSP_SPI_FLASH_DEVICE_NAME,
spi_flash_m25p40_rw_driver_descriptor,
spi_busno,0x00);
<font color='#880000'>-#elif defined(HSC_CM01)
</font><font color='#000088'>+#elif defined(MPC83XX_BOARD_HSC_CM01)
</font>
/*
* register FM25L256 FRAM
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/powerpc/gen83xx/startup/cpuinit.c:1.13 rtems/c/src/lib/libbsp/powerpc/gen83xx/startup/cpuinit.c:1.14
--- rtems/c/src/lib/libbsp/powerpc/gen83xx/startup/cpuinit.c:1.13 Fri Feb 11 06:46:31 2011
+++ rtems/c/src/lib/libbsp/powerpc/gen83xx/startup/cpuinit.c Mon Sep 26 05:08:29 2011
</font><font color='#997700'>@@ -260,7 +260,7 @@
</font> );
SET_DBAT( 2, dbat.batu, dbat.batl);
<font color='#880000'>-#if defined(HSC_CM01)
</font><font color='#000088'>+#if defined(MPC83XX_BOARD_HSC_CM01)
</font> calc_dbat_regvals(
&dbat,
FPGA_START,
<font color='#997700'>@@ -274,7 +274,7 @@
</font> SET_DBAT(3,dbat.batu,dbat.batl);
#endif
<font color='#880000'>-#ifdef MPC8313ERDB
</font><font color='#000088'>+#ifdef MPC83XX_BOARD_MPC8313ERDB
</font> /* Enhanced Local Bus Controller (eLBC) */
calc_dbat_regvals(
&dbat,
<font color='#997700'>@@ -287,7 +287,7 @@
</font> BPP_RW
);
SET_DBAT( 3, dbat.batu, dbat.batl);
<font color='#880000'>-#endif /* MPC8313ERDB */
</font><font color='#000088'>+#endif /* MPC83XX_BOARD_MPC8313ERDB */
</font>
/* Read MSR */
msr = ppc_machine_state_register();
<font color='#006600'>diff -u /dev/null rtems/c/src/lib/libbsp/powerpc/gen83xx/startup/linkcmds.mpc8309som:1.1
--- /dev/null Mon Sep 26 05:10:36 2011
+++ rtems/c/src/lib/libbsp/powerpc/gen83xx/startup/linkcmds.mpc8309som Mon Sep 26 05:08:29 2011
</font><font color='#997700'>@@ -0,0 +1,14 @@
</font><font color='#000088'>+/**
+ * @file
+ *
+ * MPC8309 System on Module.
+ */
+
+MEMORY {
+ RAM : ORIGIN = 0x0, LENGTH = 256M
+ ROM : ORIGIN = 0xfe000000, LENGTH = 8M
+ MPC83XX_REGS : ORIGIN = 0xe0000000, LENGTH = 256k
+ NIRVANA : ORIGIN = 0x0, LENGTH = 0
+}
+
+INCLUDE linkcmds.base
</font></pre>
<p> </p>
<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>