2 * arch/ppc/platforms/4xx/xparameters/xparameters.h
4 * This file includes the correct xparameters.h for the CONFIG'ed board plus
5 * fixups to translate board specific XPAR values to a common set of names
7 * Author: MontaVista Software, Inc.
10 * 2004 (c) MontaVista Software, Inc. This file is licensed under the terms
11 * of the GNU General Public License version 2. This program is licensed
12 * "as is" without any warranty of any kind, whether express or implied.
16 #if defined(CONFIG_XILINX_ML300)
17 #include "xparameters_ml300.h"
18 #elif defined(CONFIG_XILINX_ML403)
19 #include "xparameters_ml403.h"
21 /* Add other board xparameter includes here before the #else */
22 #error No xparameters_*.h file included
25 #ifndef SERIAL_PORT_DFNS
26 /* zImage serial port definitions */
27 #define RS_TABLE_SIZE 1
28 #define SERIAL_PORT_DFNS { \
29 .baud_base = XPAR_UARTNS550_0_CLOCK_FREQ_HZ/16, \
30 .irq = XPAR_INTC_0_UARTNS550_0_VEC_ID, \
31 .flags = ASYNC_BOOT_AUTOCONF, \
32 .iomem_base = (u8 *)XPAR_UARTNS550_0_BASEADDR + 3, \
33 .iomem_reg_shift = 2, \
34 .io_type = SERIAL_IO_MEM, \
39 * A few reasonable defaults for the #defines which could be missing depending
40 * on the IP version or variant (e.g. OPB vs PLB)
43 #ifndef XPAR_EMAC_0_CAM_EXIST
44 #define XPAR_EMAC_0_CAM_EXIST 0
46 #ifndef XPAR_EMAC_0_JUMBO_EXIST
47 #define XPAR_EMAC_0_JUMBO_EXIST 0
49 #ifndef XPAR_EMAC_0_TX_DRE_TYPE
50 #define XPAR_EMAC_0_TX_DRE_TYPE 0
52 #ifndef XPAR_EMAC_0_RX_DRE_TYPE
53 #define XPAR_EMAC_0_RX_DRE_TYPE 0
55 #ifndef XPAR_EMAC_0_TX_INCLUDE_CSUM
56 #define XPAR_EMAC_0_TX_INCLUDE_CSUM 0
58 #ifndef XPAR_EMAC_0_RX_INCLUDE_CSUM
59 #define XPAR_EMAC_0_RX_INCLUDE_CSUM 0
62 #ifndef XPAR_EMAC_1_CAM_EXIST
63 #define XPAR_EMAC_1_CAM_EXIST 0
65 #ifndef XPAR_EMAC_1_JUMBO_EXIST
66 #define XPAR_EMAC_1_JUMBO_EXIST 0
68 #ifndef XPAR_EMAC_1_TX_DRE_TYPE
69 #define XPAR_EMAC_1_TX_DRE_TYPE 0
71 #ifndef XPAR_EMAC_1_RX_DRE_TYPE
72 #define XPAR_EMAC_1_RX_DRE_TYPE 0
74 #ifndef XPAR_EMAC_1_TX_INCLUDE_CSUM
75 #define XPAR_EMAC_1_TX_INCLUDE_CSUM 0
77 #ifndef XPAR_EMAC_1_RX_INCLUDE_CSUM
78 #define XPAR_EMAC_1_RX_INCLUDE_CSUM 0
81 #ifndef XPAR_GPIO_0_IS_DUAL
82 #define XPAR_GPIO_0_IS_DUAL 0
84 #ifndef XPAR_GPIO_1_IS_DUAL
85 #define XPAR_GPIO_1_IS_DUAL 0
87 #ifndef XPAR_GPIO_2_IS_DUAL
88 #define XPAR_GPIO_2_IS_DUAL 0
90 #ifndef XPAR_GPIO_3_IS_DUAL
91 #define XPAR_GPIO_3_IS_DUAL 0
93 #ifndef XPAR_GPIO_4_IS_DUAL
94 #define XPAR_GPIO_4_IS_DUAL 0