2 * Copyright (C) 2013 Freescale Semiconductor, Inc.
4 * Configuration settings for the Wandboard.
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.
15 #include <asm/arch/imx-regs.h>
16 #include <asm/imx-common/gpio.h>
17 #include <asm/sizes.h>
20 #define CONFIG_DISPLAY_CPUINFO
21 #define CONFIG_DISPLAY_BOARDINFO
23 #define MACH_TYPE_WANDBOARD 4412
24 #define CONFIG_MACH_TYPE MACH_TYPE_WANDBOARD
26 #define CONFIG_CMDLINE_TAG
27 #define CONFIG_SETUP_MEMORY_TAGS
28 #define CONFIG_INITRD_TAG
29 #define CONFIG_REVISION_TAG
31 /* Size of malloc() pool */
32 #define CONFIG_SYS_MALLOC_LEN (10 * SZ_1M)
34 #define CONFIG_BOARD_EARLY_INIT_F
35 #define CONFIG_BOARD_LATE_INIT
36 #define CONFIG_MXC_GPIO
38 #define CONFIG_MXC_UART
39 #define CONFIG_MXC_UART_BASE UART1_BASE
41 /* allow to overwrite serial and ethaddr */
42 #define CONFIG_ENV_OVERWRITE
43 #define CONFIG_CONS_INDEX 1
44 #define CONFIG_BAUDRATE 115200
46 /* Command definition */
47 #include <config_cmd_default.h>
49 #undef CONFIG_CMD_IMLS
51 #define CONFIG_CMD_BMODE
52 #define CONFIG_CMD_SETEXPR
54 #define CONFIG_BOOTDELAY 5
56 #define CONFIG_SYS_MEMTEST_START 0x10000000
57 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + 500 * SZ_1M)
58 #define CONFIG_LOADADDR 0x12000000
59 #define CONFIG_SYS_TEXT_BASE 0x17800000
61 /* MMC Configuration */
62 #define CONFIG_FSL_ESDHC
63 #define CONFIG_FSL_USDHC
64 #define CONFIG_SYS_FSL_USDHC_NUM 2
65 #define CONFIG_SYS_FSL_ESDHC_ADDR 0
68 #define CONFIG_CMD_MMC
69 #define CONFIG_GENERIC_MMC
70 #define CONFIG_BOUNCE_BUFFER
71 #define CONFIG_CMD_EXT2
72 #define CONFIG_CMD_FAT
73 #define CONFIG_DOS_PARTITION
75 /* Ethernet Configuration */
76 #define CONFIG_CMD_PING
77 #define CONFIG_CMD_DHCP
78 #define CONFIG_CMD_MII
79 #define CONFIG_CMD_NET
80 #define CONFIG_FEC_MXC
82 #define IMX_FEC_BASE ENET_BASE_ADDR
83 #define CONFIG_FEC_XCV_TYPE RGMII
84 #define CONFIG_ETHPRIME "FEC"
85 #define CONFIG_FEC_MXC_PHYADDR 1
87 #define CONFIG_PHY_ATHEROS
91 #define CONFIG_VIDEO_IPUV3
92 #define CONFIG_CFB_CONSOLE
93 #define CONFIG_VGA_AS_SINGLE_DEVICE
94 #define CONFIG_SYS_CONSOLE_IS_IN_ENV
95 #define CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
96 #define CONFIG_VIDEO_BMP_RLE8
97 #define CONFIG_SPLASH_SCREEN
98 #define CONFIG_SPLASH_SCREEN_ALIGN
99 #define CONFIG_BMP_16BPP
100 #define CONFIG_VIDEO_LOGO
101 #define CONFIG_VIDEO_BMP_LOGO
102 #define CONFIG_IPUV3_CLK 260000000
104 #if defined(CONFIG_MX6DL)
105 #define CONFIG_DEFAULT_FDT_FILE "imx6dl-wandboard.dtb"
106 #elif defined(CONFIG_MX6S)
107 #define CONFIG_DEFAULT_FDT_FILE "imx6s-wandboard.dtb"
110 #define CONFIG_EXTRA_ENV_SETTINGS \
111 "script=boot.scr\0" \
113 "console=ttymxc0\0" \
114 "fdt_high=0xffffffff\0" \
115 "initrd_high=0xffffffff\0" \
116 "fdt_file=" CONFIG_DEFAULT_FDT_FILE "\0" \
117 "fdt_addr=0x11000000\0" \
120 "mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \
122 "mmcroot=/dev/mmcblk0p3 rootwait rw\0" \
123 "update_sd_firmware_filename=u-boot.imx\0" \
124 "update_sd_firmware=" \
125 "if test ${ip_dyn} = yes; then " \
126 "setenv get_cmd dhcp; " \
128 "setenv get_cmd tftp; " \
130 "if mmc dev ${mmcdev}; then " \
131 "if ${get_cmd} ${update_sd_firmware_filename}; then " \
132 "setexpr fw_sz ${filesize} / 0x200; " \
133 "setexpr fw_sz ${fw_sz} + 1; " \
134 "mmc write ${loadaddr} 0x2 ${fw_sz}; " \
137 "mmcargs=setenv bootargs console=${console},${baudrate} " \
138 "root=${mmcroot}\0" \
140 "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
141 "bootscript=echo Running bootscript from mmc ...; " \
143 "loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \
144 "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
145 "mmcboot=echo Booting from mmc ...; " \
147 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
148 "if run loadfdt; then " \
149 "bootm ${loadaddr} - ${fdt_addr}; " \
151 "if test ${boot_fdt} = try; then " \
154 "echo WARN: Cannot load the DT; " \
160 "netargs=setenv bootargs console=${console},${baudrate} " \
162 "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
163 "netboot=echo Booting from net ...; " \
165 "if test ${ip_dyn} = yes; then " \
166 "setenv get_cmd dhcp; " \
168 "setenv get_cmd tftp; " \
170 "${get_cmd} ${uimage}; " \
171 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
172 "if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \
173 "bootm ${loadaddr} - ${fdt_addr}; " \
175 "if test ${boot_fdt} = try; then " \
178 "echo WARN: Cannot load the DT; " \
185 #define CONFIG_BOOTCOMMAND \
186 "mmc dev ${mmcdev}; if mmc rescan; then " \
187 "if run loadbootscript; then " \
190 "if run loaduimage; then " \
192 "else run netboot; " \
195 "else run netboot; fi"
197 /* Miscellaneous configurable options */
198 #define CONFIG_SYS_LONGHELP
199 #define CONFIG_SYS_HUSH_PARSER
200 #define CONFIG_SYS_PROMPT "=> "
201 #define CONFIG_AUTO_COMPLETE
202 #define CONFIG_SYS_CBSIZE 256
204 /* Print Buffer Size */
205 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
206 #define CONFIG_SYS_MAXARGS 16
207 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
209 #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
210 #define CONFIG_SYS_HZ 1000
212 #define CONFIG_CMDLINE_EDITING
214 /* Physical Memory Map */
215 #define CONFIG_NR_DRAM_BANKS 1
216 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
218 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
219 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
220 #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
222 #define CONFIG_SYS_INIT_SP_OFFSET \
223 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
224 #define CONFIG_SYS_INIT_SP_ADDR \
225 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
227 /* FLASH and environment organization */
228 #define CONFIG_SYS_NO_FLASH
230 #define CONFIG_ENV_SIZE (8 * 1024)
232 #define CONFIG_ENV_IS_IN_MMC
233 #define CONFIG_ENV_OFFSET (6 * 64 * 1024)
234 #define CONFIG_SYS_MMC_ENV_DEV 0
236 #define CONFIG_OF_LIBFDT
237 #define CONFIG_CMD_BOOTZ
239 #ifndef CONFIG_SYS_DCACHE_OFF
240 #define CONFIG_CMD_CACHE
243 #endif /* __CONFIG_H * */