[rtems commit] bsp/mpc55xx: Add MPC55XX_CONSOLE_MINOR

Sebastian Huber sebh at rtems.org
Wed Jul 25 11:49:12 UTC 2012


Module:    rtems
Branch:    master
Commit:    b0753c33a03e193e6225ebb4b9dc3f789fe1b89a
Changeset: http://git.rtems.org/rtems/commit/?id=b0753c33a03e193e6225ebb4b9dc3f789fe1b89a

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Jul 19 09:18:17 2012 +0200

bsp/mpc55xx: Add MPC55XX_CONSOLE_MINOR

Remove MPC55XX_ESCI_CONSOLE_MINOR.

---

 c/src/lib/libbsp/powerpc/mpc55xxevb/configure.ac   |    8 ++++----
 .../powerpc/mpc55xxevb/console/console-config.c    |    3 ++-
 .../libbsp/powerpc/mpc55xxevb/include/bspopts.h.in |    6 +++---
 3 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/configure.ac b/c/src/lib/libbsp/powerpc/mpc55xxevb/configure.ac
index 63d516f..1cd019f 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/configure.ac
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/configure.ac
@@ -39,10 +39,10 @@ RTEMS_BSPOPTS_SET([BSP_INTERRUPT_HANDLER_TABLE_SIZE],[*],[63])
 RTEMS_BSPOPTS_HELP([BSP_INTERRUPT_HANDLER_TABLE_SIZE],
 [defines the maximum number of interrupt handlers])
 
-RTEMS_BSPOPTS_SET([MPC55XX_ESCI_CONSOLE_MINOR],[mpc5674f_ecu508*],[2])
-RTEMS_BSPOPTS_SET([MPC55XX_ESCI_CONSOLE_MINOR],[*],[0])
-RTEMS_BSPOPTS_HELP([MPC55XX_ESCI_CONSOLE_MINOR],
-[determines which eSCI device will be registered as /dev/console])
+RTEMS_BSPOPTS_SET([MPC55XX_CONSOLE_MINOR],[mpc5674f_ecu508*],[2])
+RTEMS_BSPOPTS_SET([MPC55XX_CONSOLE_MINOR],[*],[0])
+RTEMS_BSPOPTS_HELP([MPC55XX_CONSOLE_MINOR],
+[determines which serial device will be registered as /dev/console])
 
 RTEMS_BSPOPTS_SET([MPC55XX_ESCI_USE_INTERRUPTS],[*],[1])
 RTEMS_BSPOPTS_HELP([MPC55XX_ESCI_USE_INTERRUPTS],
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-config.c b/c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-config.c
index 4f74b38..9557699 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-config.c
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-config.c
@@ -12,6 +12,7 @@
  * http://www.rtems.com/license/LICENSE.
  */
 
+#include <bsp.h>
 #include <bsp/console-generic.h>
 #include <bsp/console-esci.h>
 #include <bsp/console-linflex.h>
@@ -37,4 +38,4 @@ CONSOLE_GENERIC_INFO_TABLE = {
 
 CONSOLE_GENERIC_INFO_COUNT;
 
-CONSOLE_GENERIC_MINOR(0);
+CONSOLE_GENERIC_MINOR(MPC55XX_CONSOLE_MINOR);
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bspopts.h.in b/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bspopts.h.in
index a653415..46c7dc8 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bspopts.h.in
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bspopts.h.in
@@ -54,15 +54,15 @@
    channel) */
 #undef MPC55XX_CLOCK_PIT_CHANNEL
 
+/* determines which serial device will be registered as /dev/console */
+#undef MPC55XX_CONSOLE_MINOR
+
 /* size of the early initialization stack in bytes */
 #undef MPC55XX_EARLY_STACK_SIZE
 
 /* Must be defined to set the EMIOS prescaler */
 #undef MPC55XX_EMIOS_PRESCALER
 
-/* determines which eSCI device will be registered as /dev/console */
-#undef MPC55XX_ESCI_CONSOLE_MINOR
-
 /* define to zero or one to disable or enable interrupts for the eSCI devices
    */
 #undef MPC55XX_ESCI_USE_INTERRUPTS




More information about the vc mailing list