]> git.sur5r.net Git - u-boot/blobdiff - drivers/serial_pl010.c
[PATCH] Clean up Katmai (440SPe) linker script
[u-boot] / drivers / serial_pl010.c
index 7ff4b85c35ad917a943c0f46f0f99b09749f76a9..417b6aeda646afbf95fce370eba7ed3c198f52f4 100644 (file)
 #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);