summaryrefslogtreecommitdiffstats
path: root/include/asm-mips/serial.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-mips/serial.h')
-rw-r--r--include/asm-mips/serial.h24
1 files changed, 10 insertions, 14 deletions
diff --git a/include/asm-mips/serial.h b/include/asm-mips/serial.h
index c4ca95b4e..aad63051c 100644
--- a/include/asm-mips/serial.h
+++ b/include/asm-mips/serial.h
@@ -182,25 +182,21 @@
#define MCA_SERIAL_PORT_DFNS
#endif
-#ifdef CONFIG_PMC_CP7000
+#ifdef CONFIG_MOMENCO_OCELOT
/* Ordinary NS16552 duart with a 20MHz crystal. */
-#define CP7000_BASE_BAUD ( 20000000 / 16 )
+#define OCELOT_BASE_BAUD ( 20000000 / 16 )
-#define CP7000_SERIAL1_IRQ 2
-#define CP7000_SERIAL1_BASE 0xbd000020
+#define OCELOT_SERIAL1_IRQ 4
+#define OCELOT_SERIAL1_BASE 0xbd000020
-#define CP7000_SERIAL2_IRQ 9
-#define CP7000_SERIAL2_BASE 0xbd000000
-
-#define _CP7000_SERIAL_INIT(int, base) \
- { baud_base: CP7000_BASE_BAUD, irq: int, flags: STD_COM_FLAGS, \
+#define _OCELOT_SERIAL_INIT(int, base) \
+ { baud_base: OCELOT_BASE_BAUD, irq: int, flags: STD_COM_FLAGS, \
iomem_base: (u8 *) base, iomem_reg_shift: 2, \
io_type: SERIAL_IO_MEM }
-#define CP7000_SERIAL_PORT_DEFNS \
- _CP7000_SERIAL_INIT(CP7000_SERIAL1_IRQ, CP7000_SERIAL1_BASE), \
- _CP7000_SERIAL_INIT(CP7000_SERIAL2_IRQ, CP7000_SERIAL2_BASE),
+#define MOMENCO_OCELOT_SERIAL_PORT_DEFNS \
+ _OCELOT_SERIAL_INIT(OCELOT_SERIAL1_IRQ, OCELOT_SERIAL1_BASE)
#else
-#define CP7000_SERIAL_PORT_DEFNS
+#define MOMENCO_OCELOT_SERIAL_PORT_DEFNS
#endif
#define SERIAL_PORT_DFNS \
@@ -210,4 +206,4 @@
STD_SERIAL_PORT_DEFNS \
EXTRA_SERIAL_PORT_DEFNS \
HUB6_SERIAL_PORT_DFNS \
- CP7000_SERIAL_PORT_DEFNS
+ MOMENCO_OCELOT_SERIAL_PORT_DEFNS