aboutsummaryrefslogtreecommitdiff
path: root/common/serial.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2005-01-09 22:28:56 +0000
committerwdenk <wdenk>2005-01-09 22:28:56 +0000
commitff36fd8591776405eeb3a086ba1136bf1ece2ffb (patch)
tree699daa2141b56019375455c976c17cdf096f4431 /common/serial.c
parent6310eb9da74b1cf33194ae88275cc63b76e7a764 (diff)
downloadu-boot-ff36fd8591776405eeb3a086ba1136bf1ece2ffb.zip
u-boot-ff36fd8591776405eeb3a086ba1136bf1ece2ffb.tar.gz
u-boot-ff36fd8591776405eeb3a086ba1136bf1ece2ffb.tar.bz2
* Patch by Leif Lindholm, 23 Sep 2004:
add support for the AMD db1550 board * Patch by Travis Sawyer, 15 Sep 2004: Add CONFIG_SERIAL_MULTI support for ppc4xx, update README.serial_multi
Diffstat (limited to 'common/serial.c')
-rw-r--r--common/serial.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/serial.c b/common/serial.c
index 4f50911..22d8fd0 100644
--- a/common/serial.c
+++ b/common/serial.c
@@ -38,6 +38,9 @@ struct serial_device *default_serial_console (void)
#elif defined(CONFIG_8xx_CONS_SCC1) || defined(CONFIG_8xx_CONS_SCC2) \
|| 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)
+ return &serial0_device;
#else
#error No default console
#endif
@@ -71,6 +74,12 @@ void serial_initialize (void)
serial_register (&serial_scc_device);
#endif
+#if defined(CONFIG_405GP) || defined(CONFIG_405CR) || defined(CONFIG_440) \
+ || defined(CONFIG_405EP)
+ serial_register(&serial0_device);
+ serial_register(&serial1_device);
+#endif
+
serial_assign (default_serial_console ()->name);
}