2 * Copyright (C) 2010 Freescale Semiconductor, Inc.
4 * Configuration settings for the MX50-ARM2 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/mx50.h>
27 /* High Level Configuration Options */
31 #define CONFIG_MX50_ARM2
32 #define CONFIG_FLASH_HEADER
33 #define CONFIG_FLASH_HEADER_OFFSET 0x400
35 #define CONFIG_SKIP_RELOCATE_UBOOT
37 #define CONFIG_ARCH_CPU_INIT
38 #define CONFIG_ARCH_MMU
40 #define CONFIG_MX50_HCLK_FREQ 24000000
41 #define CONFIG_SYS_PLL2_FREQ 400
42 #define CONFIG_SYS_AHB_PODF 2
43 #define CONFIG_SYS_AXIA_PODF 0
44 #define CONFIG_SYS_AXIB_PODF 1
46 #define CONFIG_DISPLAY_CPUINFO
47 #define CONFIG_DISPLAY_BOARDINFO
49 #define CONFIG_SYS_64BIT_VSPRINTF
51 #define BOARD_LATE_INIT
53 * Disabled for now due to build problems under Debian and a significant
54 * increase in the final file size: 144260 vs. 109536 Bytes.
57 #define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */
58 #define CONFIG_REVISION_TAG 1
59 #define CONFIG_SETUP_MEMORY_TAGS 1
60 #define CONFIG_INITRD_TAG 1
63 * Size of malloc() pool
65 #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 2 * 1024 * 1024)
66 /* size in bytes reserved for initial data */
67 #define CONFIG_SYS_GBL_DATA_SIZE 128
72 #define CONFIG_MX50_UART 1
73 #define CONFIG_MX50_UART1 1
75 /* allow to overwrite serial and ethaddr */
76 #define CONFIG_ENV_OVERWRITE
77 #define CONFIG_CONS_INDEX 1
78 #define CONFIG_BAUDRATE 115200
79 #define CONFIG_SYS_BAUDRATE_TABLE {9600, 19200, 38400, 57600, 115200}
81 /***********************************************************
83 ***********************************************************/
85 #include <config_cmd_default.h>
87 #define CONFIG_CMD_PING
88 #define CONFIG_CMD_DHCP
89 #define CONFIG_CMD_MII
90 #define CONFIG_CMD_NET
91 #define CONFIG_NET_RETRY_COUNT 100
92 #define CONFIG_NET_MULTI 1
93 #define CONFIG_BOOTP_SUBNETMASK
94 #define CONFIG_BOOTP_GATEWAY
95 #define CONFIG_BOOTP_DNS
97 /* #define CONFIG_CMD_MMC */
98 /* #define CONFIG_CMD_ENV */
100 /*#define CONFIG_CMD */
101 #define CONFIG_REF_CLK_FREQ CONFIG_MX50_HCLK_FREQ
103 #undef CONFIG_CMD_IMLS
105 #define CONFIG_BOOTDELAY 0
107 #define CONFIG_PRIME "FEC0"
109 #define CONFIG_LOADADDR 0x70800000 /* loadaddr env var */
110 #define CONFIG_RD_LOADADDR (CONFIG_LOADADDR + 0x300000)
112 #define CONFIG_BOOTARGS "console=ttymxc0,115200 "\
114 #define CONFIG_BOOTCOMMAND "bootm 0x70800000 0x70B00000"
115 #define CONFIG_ENV_IS_EMBEDDED
116 #define CONFIG_EXTRA_ENV_SETTINGS \
119 "uboot=u-boot.bin\0" \
121 "nfsroot=/opt/eldk/arm\0" \
122 "bootargs_base=setenv bootargs console=ttymxc0,115200\0"\
123 "bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs "\
124 "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0"\
125 "bootcmd_net=run bootargs_base bootargs_nfs; " \
126 "tftpboot ${loadaddr} ${kernel}; bootm\0" \
127 "bootargs_mmc=setenv bootargs ${bootargs} ip=dhcp " \
128 "root=/dev/mmcblk0p2 rootwait\0" \
129 "bootcmd_mmc=run bootargs_base bootargs_mmc; bootm\0" \
130 "bootcmd=run bootcmd_net\0" \
133 #define CONFIG_ARP_TIMEOUT 200UL
136 * Miscellaneous configurable options
138 #define CONFIG_SYS_LONGHELP /* undef to save memory */
139 #define CONFIG_SYS_PROMPT "ARM2 MFG U-Boot > "
140 #define CONFIG_AUTO_COMPLETE
141 #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
142 /* Print Buffer Size */
143 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
144 #define CONFIG_SYS_MAXARGS 16 /* max number of command args */
145 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */
147 #define CONFIG_SYS_MEMTEST_START 0 /* memtest works on */
148 #define CONFIG_SYS_MEMTEST_END 0x10000
150 #undef CONFIG_SYS_CLKS_IN_HZ /* everything, incl board info, in Hz */
152 #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
154 #define CONFIG_SYS_HZ 1000
156 #define CONFIG_CMDLINE_EDITING 1
158 #define CONFIG_FEC0_IOBASE FEC_BASE_ADDR
159 #define CONFIG_FEC0_PINMUX -1
160 #define CONFIG_FEC0_PHY_ADDR -1
161 #define CONFIG_FEC0_MIIBASE -1
163 #define CONFIG_MXC_FEC
165 #define CONFIG_MII_GASKET
166 #define CONFIG_DISCOVER_PHY
171 #define CONFIG_CMD_I2C 1
172 #define CONFIG_HARD_I2C 1
173 #define CONFIG_I2C_MXC 1
174 #define CONFIG_SYS_I2C_PORT I2C2_BASE_ADDR
175 #define CONFIG_SYS_I2C_SPEED 100000
176 #define CONFIG_SYS_I2C_SLAVE 0xfe
182 #define CONFIG_FSL_SF 1
183 #define CONFIG_CMD_SPI
184 #define CONFIG_CMD_SF
185 #define CONFIG_SPI_FLASH_IMX_ATMEL 1
186 #define CONFIG_SPI_FLASH_CS 1
187 #define CONFIG_IMX_CSPI
188 #define IMX_CSPI_VER_0_7 1
189 #define MAX_SPI_BYTES (8 * 4)
190 #define CONFIG_IMX_SPI_PMIC
191 #define CONFIG_IMX_SPI_PMIC_CS 0
196 #ifdef CONFIG_CMD_MMC
198 #define CONFIG_GENERIC_MMC
199 #define CONFIG_IMX_MMC
200 #define CONFIG_SYS_FSL_ESDHC_NUM 3
201 #define CONFIG_SYS_FSL_ESDHC_ADDR 0
202 #define CONFIG_SYS_MMC_ENV_DEV 0
203 #define CONFIG_DOS_PARTITION 1
204 #define CONFIG_CMD_FAT 1
205 #define CONFIG_CMD_EXT2 1
207 /* detect whether ESDHC1 or ESDHC3 is boot device */
208 #define CONFIG_DYNAMIC_MMC_DEVNO
210 #define CONFIG_BOOT_PARTITION_ACCESS
213 /*-----------------------------------------------------------------------
216 * The stack sizes are set up in start.S using the settings below
218 #define CONFIG_STACKSIZE (128 * 1024) /* regular stack */
220 /*-----------------------------------------------------------------------
221 * Physical Memory Map
223 #define CONFIG_NR_DRAM_BANKS 1
224 #define PHYS_SDRAM_1 CSD0_BASE_ADDR
225 #define PHYS_SDRAM_1_SIZE (128 * 1024 * 1024)
226 #define iomem_valid_addr(addr, size) \
227 (addr >= PHYS_SDRAM_1 && addr <= (PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE))
229 /*-----------------------------------------------------------------------
230 * FLASH and environment organization
232 #define CONFIG_SYS_NO_FLASH
234 /* Monitor at beginning of flash */
235 /* #define CONFIG_FSL_ENV_IN_MMC */
237 #define CONFIG_ENV_SECT_SIZE (128 * 1024)
238 #define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE
240 #if defined(CONFIG_FSL_ENV_IN_NAND)
241 #define CONFIG_ENV_IS_IN_NAND 1
242 #define CONFIG_ENV_OFFSET 0x100000
243 #elif defined(CONFIG_FSL_ENV_IN_MMC)
244 #define CONFIG_ENV_IS_IN_MMC 1
245 #define CONFIG_ENV_OFFSET (768 * 1024)
246 #elif defined(CONFIG_FSL_ENV_IN_SF)
247 #define CONFIG_ENV_IS_IN_SPI_FLASH 1
248 #define CONFIG_ENV_SPI_CS 1
249 #define CONFIG_ENV_OFFSET (768 * 1024)
251 #define CONFIG_ENV_IS_NOWHERE 1
253 #endif /* __CONFIG_H */