2 * include/asm-arm/arch-iop3xx/serial.h
4 #include <linux/config.h>
7 * This assumes you have a 1.8432 MHz clock for your UART.
9 * It'd be nice if someone built a serial card with a 24.576 MHz
10 * clock, since the 16550A is capable of handling a top speed of 1.5
11 * megabits/second; but this requires the faster clock.
13 #define BASE_BAUD ( 1843200 / 16 )
15 /* Standard COM flags */
16 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)
18 #ifdef CONFIG_ARCH_IQ80321
20 #define IRQ_UART1 IRQ_IQ80321_UART
22 #define RS_TABLE_SIZE 1
24 #define STD_SERIAL_PORT_DEFNS \
25 /* UART CLK PORT IRQ FLAGS */ \
26 { 0, BASE_BAUD, 0xfe800000, IRQ_UART1, STD_COM_FLAGS }, /* ttyS0 */
27 #endif // CONFIG_ARCH_IQ80321
29 #ifdef CONFIG_ARCH_IQ31244
31 #define IRQ_UART1 IRQ_IQ31244_UART
33 #define RS_TABLE_SIZE 1
35 #define STD_SERIAL_PORT_DEFNS \
36 /* UART CLK PORT IRQ FLAGS */ \
37 { 0, BASE_BAUD, 0xfe800000, IRQ_UART1, STD_COM_FLAGS }, /* ttyS0 */
38 #endif // CONFIG_ARCH_IQ31244
40 #ifdef CONFIG_ARCH_IQ80331
44 #define BASE_BAUD ( 33334000 / 16 )
46 #define IRQ_UART0 IRQ_IQ80331_UART0
47 #define IRQ_UART1 IRQ_IQ80331_UART1
49 #define RS_TABLE_SIZE 2
51 #define STD_SERIAL_PORT_DEFNS \
53 /*type: PORT_XSCALE,*/ \
54 /*xmit_fifo_size: 32,*/ \
55 baud_base: BASE_BAUD, \
57 flags: STD_COM_FLAGS, \
58 iomem_base: IQ80331_UART0_VIRT, \
59 io_type: SERIAL_IO_MEM, \
63 /*type: PORT_XSCALE,*/ \
64 /*xmit_fifo_size: 32,*/ \
65 baud_base: BASE_BAUD, \
67 flags: STD_COM_FLAGS, \
68 iomem_base: IQ80331_UART1_VIRT, \
69 io_type: SERIAL_IO_MEM, \
72 #endif // CONFIG_ARCH_IQ80331
75 #define EXTRA_SERIAL_PORT_DEFNS