summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorWolfgang Denk <wd@fifi.denx.de>2006-06-16 17:04:45 +0200
committerWolfgang Denk <wd@fifi.denx.de>2006-06-16 17:04:45 +0200
commitc12cffc543df621c162ba26e012c7f4ab0af496e (patch)
treea95bf59985f73d892802ad1df0f6227fa68275c3 /common
parent30a43cc2aeb84dfd96a411fb2da2ff4ab10dcd5a (diff)
downloadu-boot-imx-c12cffc543df621c162ba26e012c7f4ab0af496e.zip
u-boot-imx-c12cffc543df621c162ba26e012c7f4ab0af496e.tar.gz
u-boot-imx-c12cffc543df621c162ba26e012c7f4ab0af496e.tar.bz2
Add support for CONFIG_SERIAL_MULTI on MPC5xxx
Patch by Martin Krause, 8 Jun 2006 This patch supports two serial consoles on boards with a MPC5xxx CPU. The console can be switched at runtime by setting stdin, stdout and stderr to the desired serial interface (serial0 or serial1). The PSCs to be used as console port are definded by CONFIG_PSC_CONSOLE and CONFIG_PSC_CONSOLE2. See README.serial_multi for details.
Diffstat (limited to 'common')
-rw-r--r--common/serial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/serial.c b/common/serial.c
index 2acbd08..7b29951 100644
--- a/common/serial.c
+++ b/common/serial.c
@@ -41,7 +41,7 @@ struct serial_device *default_serial_console (void)
|| defined(CONFIG_8xx_CONS_SCC3) || defined(CONFIG_8xx_CONS_SCC4)
return &serial_scc_device;
#elif defined(CONFIG_405GP) || defined(CONFIG_405CR) || defined(CONFIG_440) \
- || defined(CONFIG_405EP)
+ || defined(CONFIG_405EP) || defined(CONFIG_MPC5xxx)
return &serial0_device;
#else
#error No default console
@@ -75,7 +75,7 @@ void serial_initialize (void)
#endif
#if defined(CONFIG_405GP) || defined(CONFIG_405CR) || defined(CONFIG_440) \
- || defined(CONFIG_405EP)
+ || defined(CONFIG_405EP) || defined(CONFIG_MPC5xxx)
serial_register(&serial0_device);
serial_register(&serial1_device);
#endif