2 * arch/ppc/platforms/4xx/virtex-ii_pro.h
4 * Include file that defines the Xilinx Virtex-II Pro processor
6 * Author: MontaVista Software, Inc.
9 * 2002-2004 (c) MontaVista Software, Inc. This file is licensed under the
10 * terms of the GNU General Public License version 2. This program is licensed
11 * "as is" without any warranty of any kind, whether express or implied.
15 #ifndef __ASM_VIRTEXIIPRO_H__
16 #define __ASM_VIRTEXIIPRO_H__
18 #include <linux/config.h>
19 #include <asm/xparameters.h>
23 #define RS_TABLE_SIZE 4 /* change this and add more devices below
24 if you have more then 4 16x50 UARTs */
26 #define BASE_BAUD (XPAR_UARTNS550_0_CLOCK_FREQ_HZ/16)
28 /* The serial ports in the Virtex-II Pro have each I/O byte in the
29 * LSByte of a word. This means that iomem_reg_shift needs to be 2 to
30 * change the byte offsets into word offsets. In addition the base
31 * addresses need to have 3 added to them to get to the LSByte.
33 #define STD_UART_OP(num) \
34 { 0, BASE_BAUD, 0, XPAR_INTC_0_UARTNS550_##num##_VEC_ID, \
35 ASYNC_BOOT_AUTOCONF, \
36 .iomem_base = (u8 *)XPAR_UARTNS550_##num##_BASEADDR + 3, \
37 .iomem_reg_shift = 2, \
38 .io_type = SERIAL_IO_MEM},
40 #if defined(XPAR_INTC_0_UARTNS550_0_VEC_ID)
41 #define ML300_UART0 STD_UART_OP(0)
46 #if defined(XPAR_INTC_0_UARTNS550_1_VEC_ID)
47 #define ML300_UART1 STD_UART_OP(1)
52 #if defined(XPAR_INTC_0_UARTNS550_2_VEC_ID)
53 #define ML300_UART2 STD_UART_OP(2)
58 #if defined(XPAR_INTC_0_UARTNS550_3_VEC_ID)
59 #define ML300_UART3 STD_UART_OP(3)
64 #if defined(XPAR_INTC_0_UARTNS550_4_VEC_ID)
65 #error Edit this file to add more devices.
66 #elif defined(XPAR_INTC_0_UARTNS550_3_VEC_ID)
67 #define NR_SER_PORTS 4
68 #elif defined(XPAR_INTC_0_UARTNS550_2_VEC_ID)
69 #define NR_SER_PORTS 3
70 #elif defined(XPAR_INTC_0_UARTNS550_1_VEC_ID)
71 #define NR_SER_PORTS 2
72 #elif defined(XPAR_INTC_0_UARTNS550_0_VEC_ID)
73 #define NR_SER_PORTS 1
75 #define NR_SER_PORTS 0
78 #if defined(CONFIG_UART0_TTYS0)
79 #define SERIAL_PORT_DFNS \
86 #if defined(CONFIG_UART0_TTYS1)
87 #define SERIAL_PORT_DFNS \
94 #define DCRN_CPMFR_BASE 0
96 #include <asm/ibm405.h>
98 #endif /* __ASM_VIRTEXIIPRO_H__ */
99 #endif /* __KERNEL__ */