patch-2.4.25 linux-2.4.25/include/asm-mips64/serial.h
Next file: linux-2.4.25/include/asm-mips64/sgi/ioc.h
Previous file: linux-2.4.25/include/asm-mips64/semaphore.h
Back to the patch index
Back to the overall index
- Lines: 71
- Date:
2004-02-18 05:36:32.000000000 -0800
- Orig file:
linux-2.4.24/include/asm-mips64/serial.h
- Orig date:
2003-08-25 04:44:44.000000000 -0700
diff -urN linux-2.4.24/include/asm-mips64/serial.h linux-2.4.25/include/asm-mips64/serial.h
@@ -57,13 +57,13 @@
#define OCELOT_C_BASE_BAUD ( 20000000 / 16 )
#define OCELOT_C_SERIAL1_IRQ 80
-#define OCELOT_C_SERIAL1_BASE 0xfd000020
+#define OCELOT_C_SERIAL1_BASE 0xfffffffffd000020
#define OCELOT_C_SERIAL2_IRQ 81
-#define OCELOT_C_SERIAL2_BASE 0xfd000000
+#define OCELOT_C_SERIAL2_BASE 0xfffffffffd000000
#define _OCELOT_C_SERIAL_INIT(int, base) \
- { baud_base: OCELOT_C_BASE_BAUD, irq: int, flags: STD_COM_FLAGS,\
+ { baud_base: OCELOT_C_BASE_BAUD, irq: int, flags: (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST),\
iomem_base: (u8 *) base, iomem_reg_shift: 2, \
io_type: SERIAL_IO_MEM }
#define MOMENCO_OCELOT_C_SERIAL_PORT_DEFNS \
@@ -73,6 +73,41 @@
#define MOMENCO_OCELOT_C_SERIAL_PORT_DEFNS
#endif
+#ifdef CONFIG_MOMENCO_JAGUAR_ATX
+/* Ordinary NS16552 duart with a 20MHz crystal. */
+#define JAGUAR_ATX_BASE_BAUD ( 20000000 / 16 )
+
+#define JAGUAR_ATX_SERIAL1_IRQ 7
+#define JAGUAR_ATX_SERIAL1_BASE 0xfffffffffd000020
+
+#define _JAGUAR_ATX_SERIAL_INIT(int, base) \
+ { baud_base: JAGUAR_ATX_BASE_BAUD, irq: int, flags: (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST),\
+ iomem_base: (u8 *) base, iomem_reg_shift: 2, \
+ io_type: SERIAL_IO_MEM }
+#define MOMENCO_JAGUAR_ATX_SERIAL_PORT_DEFNS \
+ _JAGUAR_ATX_SERIAL_INIT(JAGUAR_ATX_SERIAL1_IRQ, JAGUAR_ATX_SERIAL1_BASE)
+#else
+#define MOMENCO_JAGUAR_ATX_SERIAL_PORT_DEFNS
+#endif
+
+#ifdef CONFIG_TITAN_SERIAL
+/* 16552 20 MHz crystal */
+#define TITAN_SERIAL_BASE_BAUD ( 20000000 / 16 )
+#define TITAN_SERIAL_IRQ XXX
+#define TITAN_SERIAL_BASE 0xffffffff
+
+#define _TITAN_SERIAL_INIT(int, base) \
+ { baud_base: TITAN_SERIAL_BASE_BAUD, irq: int, \
+ flags: STD_COM_FLAGS, iomem_base: (u8 *) base, \
+ iomem_reg_shift: 2, io_type: SERIAL_IO_MEM \
+ }
+
+#define TITAN_SERIAL_PORT_DEFNS \
+ _TITAN_SERIAL_INIT(TITAN_SERIAL_IRQ, TITAN_SERIAL_BASE)
+#else
+#define TITAN_SERIAL_PORT_DEFNS
+#endif
+
#ifdef CONFIG_SGI_IP27
/*
@@ -114,8 +149,10 @@
#define SERIAL_PORT_DFNS \
IP27_SERIAL_PORT_DEFNS \
MOMENCO_OCELOT_C_SERIAL_PORT_DEFNS \
+ MOMENCO_JAGUAR_ATX_SERIAL_PORT_DEFNS \
SEAD_SERIAL_PORT_DEFNS \
- STD_SERIAL_PORT_DEFNS
+ STD_SERIAL_PORT_DEFNS \
+ TITAN_SERIAL_PORT_DEFNS
#define RS_TABLE_SIZE 64
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)