2 * Copyright (C) 2010 Freescale Semiconductor, Inc.
4 * Configuration settings for the MX53-EVK Freescale board.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of
9 * the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25 #include <asm/arch/mx53.h>
27 /* High Level Configuration Options */
29 #define CONFIG_ARMV7 /* This is armv7 Cortex-A8 CPU core */
32 #define CONFIG_MX53_EVK
33 #define CONFIG_FLASH_HEADER
34 #define CONFIG_FLASH_HEADER_OFFSET 0x400
36 #define CONFIG_SKIP_RELOCATE_UBOOT
38 #define CONFIG_ARCH_CPU_INIT
39 #define CONFIG_ARCH_MMU
41 #define CONFIG_MX53_HCLK_FREQ 24000000
42 #define CONFIG_SYS_PLL2_FREQ 600
43 #define CONFIG_SYS_AHB_PODF 4
44 #define CONFIG_SYS_AXIA_PODF 1
45 #define CONFIG_SYS_AXIB_PODF 2
47 #define CONFIG_DISPLAY_CPUINFO
48 #define CONFIG_DISPLAY_BOARDINFO
50 #define CONFIG_SYS_64BIT_VSPRINTF
52 #define BOARD_LATE_INIT
54 * Disabled for now due to build problems under Debian and a significant
55 * increase in the final file size: 144260 vs. 109536 Bytes.
58 #define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */
59 #define CONFIG_REVISION_TAG 1
60 #define CONFIG_SETUP_MEMORY_TAGS 1
61 #define CONFIG_INITRD_TAG 1
64 * Size of malloc() pool
66 #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 2 * 1024 * 1024)
67 /* size in bytes reserved for initial data */
68 #define CONFIG_SYS_GBL_DATA_SIZE 128
73 #define CONFIG_MX53_UART 1
74 #define CONFIG_MX53_UART1 1
76 /* allow to overwrite serial and ethaddr */
77 #define CONFIG_ENV_OVERWRITE
78 #define CONFIG_CONS_INDEX 1
79 #define CONFIG_BAUDRATE 115200
80 #define CONFIG_SYS_BAUDRATE_TABLE {9600, 19200, 38400, 57600, 115200}
82 /***********************************************************
84 ***********************************************************/
86 #include <config_cmd_default.h>
88 #define CONFIG_CMD_PING
89 #define CONFIG_CMD_DHCP
90 #define CONFIG_CMD_MII
91 #define CONFIG_CMD_NET
92 #define CONFIG_NET_RETRY_COUNT 100
93 #define CONFIG_NET_MULTI 1
94 #define CONFIG_BOOTP_SUBNETMASK
95 #define CONFIG_BOOTP_GATEWAY
96 #define CONFIG_BOOTP_DNS
98 #define CONFIG_CMD_MMC
99 #define CONFIG_CMD_ENV
101 #define CONFIG_CMD_CLOCK
102 #define CONFIG_REF_CLK_FREQ CONFIG_MX53_HCLK_FREQ
104 #undef CONFIG_CMD_IMLS
106 #define CONFIG_BOOTDELAY 0
108 #define CONFIG_PRIME "FEC0"
110 #define CONFIG_LOADADDR 0x70800000 /* loadaddr env var */
111 #define CONFIG_RD_LOADADDR (CONFIG_LOADADDR + 0x300000)
113 #define CONFIG_BOOTARGS "console=ttymxc0,115200 "\
115 #define CONFIG_BOOTCOMMAND "bootm 0x70800000 0x70B00000"
116 #define CONFIG_ENV_IS_EMBEDDED
118 #define CONFIG_ARP_TIMEOUT 200UL
121 * Miscellaneous configurable options
123 #define CONFIG_SYS_LONGHELP /* undef to save memory */
124 #define CONFIG_SYS_PROMPT "EVK MFG U-Boot > "
125 #define CONFIG_AUTO_COMPLETE
126 #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
127 /* Print Buffer Size */
128 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
129 #define CONFIG_SYS_MAXARGS 16 /* max number of command args */
130 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */
132 #define CONFIG_SYS_MEMTEST_START 0 /* memtest works on */
133 #define CONFIG_SYS_MEMTEST_END 0x10000
135 #undef CONFIG_SYS_CLKS_IN_HZ /* everything, incl board info, in Hz */
137 #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
139 #define CONFIG_SYS_HZ 1000
141 #define CONFIG_CMDLINE_EDITING 1
143 #define CONFIG_FEC0_IOBASE FEC_BASE_ADDR
144 #define CONFIG_FEC0_PINMUX -1
145 #define CONFIG_FEC0_PHY_ADDR -1
146 #define CONFIG_FEC0_MIIBASE -1
148 #define CONFIG_MXC_FEC
150 #define CONFIG_MII_GASKET
151 #define CONFIG_DISCOVER_PHY
156 #define CONFIG_CMD_I2C 1
157 #define CONFIG_HARD_I2C 1
158 #define CONFIG_I2C_MXC 1
159 #define CONFIG_SYS_I2C_PORT I2C2_BASE_ADDR
160 #define CONFIG_SYS_I2C_SPEED 100000
161 #define CONFIG_SYS_I2C_SLAVE 0xfe
167 #define CONFIG_FSL_SF 1
168 #define CONFIG_CMD_SPI
169 #define CONFIG_CMD_SF
170 #define CONFIG_SPI_FLASH_IMX_ATMEL 1
171 #define CONFIG_SPI_FLASH_CS 1
172 #define CONFIG_IMX_ECSPI
173 #define IMX_CSPI_VER_2_3 1
174 #define MAX_SPI_BYTES (64 * 4)
179 #ifdef CONFIG_CMD_MMC
181 #define CONFIG_GENERIC_MMC
182 #define CONFIG_IMX_MMC
183 #define CONFIG_SYS_FSL_ESDHC_NUM 2
184 #define CONFIG_SYS_FSL_ESDHC_ADDR 0
185 #define CONFIG_SYS_MMC_ENV_DEV 0
186 #define CONFIG_DOS_PARTITION 1
187 #define CONFIG_CMD_FAT 1
188 #define CONFIG_CMD_EXT2 1
190 /*-----------------------------------------------------------------------
193 * The stack sizes are set up in start.S using the settings below
195 #define CONFIG_STACKSIZE (128 * 1024) /* regular stack */
197 /*-----------------------------------------------------------------------
198 * Physical Memory Map
200 #define CONFIG_NR_DRAM_BANKS 1
201 #define PHYS_SDRAM_1 CSD0_BASE_ADDR
202 #define PHYS_SDRAM_1_SIZE (1024 * 1024 * 1024)
203 #define iomem_valid_addr(addr, size) \
204 (addr >= PHYS_SDRAM_1 && addr <= (PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE))
206 /*-----------------------------------------------------------------------
207 * FLASH and environment organization
209 #define CONFIG_SYS_NO_FLASH
212 #define CONFIG_ENV_SECT_SIZE (128 * 1024)
213 #define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE
215 #define CONFIG_ENV_IS_NOWHERE
217 #endif /* __CONFIG_H */