summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPoonam Aggrwal <poonam.aggrwal@freescale.com>2009-10-07 15:47:43 -0400
committerJustin Waters <justin.waters@timesys.com>2009-10-07 15:47:43 -0400
commit92d15623408cb34cfdbdfb8567b22391a9ed1502 (patch)
tree66b533f3f0a29c9cf18d16c063cf1086892d22cb
parentc59d3ede8b3d03a2c046d99b2ac66515e2e9af3d (diff)
u-boot-2009.03-p2020rdb-Second-UART-for-mpc85xx
Adds the support of second UART port for MPC85xx based platforms. Defining the next two configs allows to switch the serial port from the console using the setenv stdin and stdout Signed-off-by: Poonam Aggrwal <poonam.aggrwal@freescale.com>
-rw-r--r--common/serial.c3
-rw-r--r--include/serial.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/common/serial.c b/common/serial.c
index 09385d017d..1d0a7f32f6 100644
--- a/common/serial.c
+++ b/common/serial.c
@@ -40,7 +40,8 @@ struct serial_device *__default_serial_console (void)
return &serial_scc_device;
#elif defined(CONFIG_405GP) || defined(CONFIG_405CR) || defined(CONFIG_440) \
|| defined(CONFIG_405EP) || defined(CONFIG_405EZ) || defined(CONFIG_405EX) \
- || defined(CONFIG_MPC5xxx)
+ || defined(CONFIG_MPC5xxx) || defined(CONFIG_MPC83xx) \
+ || defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)
#if defined(CONFIG_CONS_INDEX) && defined(CONFIG_SYS_NS16550_SERIAL)
#if (CONFIG_CONS_INDEX==1)
return &eserial1_device;
diff --git a/include/serial.h b/include/serial.h
index e3d8b3679b..059230800b 100644
--- a/include/serial.h
+++ b/include/serial.h
@@ -24,7 +24,8 @@ extern struct serial_device * default_serial_console (void);
#if defined(CONFIG_405GP) || defined(CONFIG_405CR) || defined(CONFIG_440) || \
defined(CONFIG_405EP) || defined(CONFIG_405EZ) || defined(CONFIG_405EX) || \
- defined(CONFIG_MPC5xxx)
+ defined(CONFIG_MPC5xxx) || defined(CONFIG_MPC83xx) || \
+ defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)
extern struct serial_device serial0_device;
extern struct serial_device serial1_device;
#if defined(CONFIG_SYS_NS16550_SERIAL)