summaryrefslogtreecommitdiffstats
path: root/drivers/serial_pl010.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-08-02 23:22:59 +0000
committerwdenk <wdenk>2004-08-02 23:22:59 +0000
commit6705d81e90ed4466d6e4f445104826096da0c521 (patch)
tree4ed03c864323dacd8609cb4f84a7a8000cea6792 /drivers/serial_pl010.c
parent68ceb29e7133a0f972f53d3d61fd61207374baec (diff)
downloadblackbird-obmc-uboot-6705d81e90ed4466d6e4f445104826096da0c521.tar.gz
blackbird-obmc-uboot-6705d81e90ed4466d6e4f445104826096da0c521.zip
* Patch by Andreas Engel, 12 Jul 2004:
Replaced hardcoded PL011 clock frequency with config variable. Fixed wrong CONFIG_CMD_DFL doc. * Patch by Thomas Viehweger, 09 Jun 2004: make it possible to remove chpart when there is only one partition
Diffstat (limited to 'drivers/serial_pl010.c')
-rw-r--r--drivers/serial_pl010.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/serial_pl010.c b/drivers/serial_pl010.c
index 7ff4b85c35..417b6aeda6 100644
--- a/drivers/serial_pl010.c
+++ b/drivers/serial_pl010.c
@@ -38,13 +38,10 @@
#define IO_READ(addr) (*(volatile unsigned int *)(addr))
/* Integrator AP has two UARTs, we use the first one, at 38400-8-N-1 */
-#define NUM_PORTS 2
#define CONSOLE_PORT CONFIG_CONS_INDEX
#define baudRate CONFIG_BAUDRATE
-static volatile unsigned char *const port[NUM_PORTS] = {
- (void *) (CFG_SERIAL0),
- (void *) (CFG_SERIAL1)
-};
+static volatile unsigned char *const port[] = CONFIG_PL01x_PORTS;
+#define NUM_PORTS (sizeof(port)/sizeof(port[0]))
static void pl010_putc (int portnum, char c);
OpenPOWER on IntegriCloud