2 * Copyright 2013 Freescale Semiconductor, Inc.
4 * Configuration settings for the Freescale i.MX6SL EVK board.
6 * SPDX-License-Identifier: GPL-2.0+
12 #include <asm/arch/imx-regs.h>
13 #include <asm/sizes.h>
16 #define CONFIG_DISPLAY_CPUINFO
17 #define CONFIG_DISPLAY_BOARDINFO
19 #define MACH_TYPE_MX6SLEVK 4307
20 #define CONFIG_MACH_TYPE MACH_TYPE_MX6SLEVK
22 #define CONFIG_CMDLINE_TAG
23 #define CONFIG_SETUP_MEMORY_TAGS
24 #define CONFIG_INITRD_TAG
25 #define CONFIG_REVISION_TAG
27 /* Size of malloc() pool */
28 #define CONFIG_SYS_MALLOC_LEN (3 * SZ_1M)
30 #define CONFIG_BOARD_EARLY_INIT_F
31 #define CONFIG_MXC_GPIO
33 #define CONFIG_MXC_UART
34 #define CONFIG_MXC_UART_BASE UART1_IPS_BASE_ADDR
37 #define CONFIG_FSL_ESDHC
38 #define CONFIG_FSL_USDHC
39 #define CONFIG_SYS_FSL_ESDHC_ADDR 0
42 #define CONFIG_CMD_MMC
43 #define CONFIG_GENERIC_MMC
44 #define CONFIG_CMD_FAT
45 #define CONFIG_DOS_PARTITION
47 #define CONFIG_CMD_PING
48 #define CONFIG_CMD_DHCP
49 #define CONFIG_CMD_MII
50 #define CONFIG_CMD_NET
51 #define CONFIG_FEC_MXC
53 #define IMX_FEC_BASE ENET_BASE_ADDR
54 #define CONFIG_FEC_XCV_TYPE RMII
55 #define CONFIG_ETHPRIME "FEC"
56 #define CONFIG_FEC_MXC_PHYADDR 0
59 #define CONFIG_PHY_SMSC
61 /* allow to overwrite serial and ethaddr */
62 #define CONFIG_ENV_OVERWRITE
63 #define CONFIG_CONS_INDEX 1
64 #define CONFIG_BAUDRATE 115200
66 /* Command definition */
67 #include <config_cmd_default.h>
69 #undef CONFIG_CMD_IMLS
71 #define CONFIG_BOOTDELAY 3
73 #define CONFIG_LOADADDR 0x82000000
74 #define CONFIG_SYS_TEXT_BASE 0x87800000
76 #define CONFIG_EXTRA_ENV_SETTINGS \
80 "fdt_high=0xffffffff\0" \
81 "initrd_high=0xffffffff\0" \
82 "fdt_file=imx6sl-evk.dtb\0" \
83 "fdt_addr=0x81000000\0" \
88 "mmcroot=/dev/mmcblk0p2 rootwait rw\0" \
89 "mmcargs=setenv bootargs console=${console},${baudrate} " \
92 "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
93 "bootscript=echo Running bootscript from mmc ...; " \
95 "loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \
96 "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
97 "mmcboot=echo Booting from mmc ...; " \
99 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
100 "if run loadfdt; then " \
101 "bootm ${loadaddr} - ${fdt_addr}; " \
103 "if test ${boot_fdt} = try; then " \
106 "echo WARN: Cannot load the DT; " \
112 "netargs=setenv bootargs console=${console},${baudrate} " \
114 "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
115 "netboot=echo Booting from net ...; " \
117 "if test ${ip_dyn} = yes; then " \
118 "setenv get_cmd dhcp; " \
120 "setenv get_cmd tftp; " \
122 "${get_cmd} ${uimage}; " \
123 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
124 "if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \
125 "bootm ${loadaddr} - ${fdt_addr}; " \
127 "if test ${boot_fdt} = try; then " \
130 "echo WARN: Cannot load the DT; " \
137 #define CONFIG_BOOTCOMMAND \
138 "mmc dev ${mmcdev};" \
139 "mmc dev ${mmcdev}; if mmc rescan; then " \
140 "if run loadbootscript; then " \
143 "if run loaduimage; then " \
145 "else run netboot; " \
148 "else run netboot; fi"
150 /* Miscellaneous configurable options */
151 #define CONFIG_SYS_LONGHELP
152 #define CONFIG_SYS_HUSH_PARSER
153 #define CONFIG_AUTO_COMPLETE
154 #define CONFIG_SYS_CBSIZE 256
156 /* Print Buffer Size */
157 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
158 #define CONFIG_SYS_MAXARGS 16
159 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
161 #define CONFIG_SYS_MEMTEST_START 0x80000000
162 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + SZ_512M)
164 #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
166 #define CONFIG_CMDLINE_EDITING
167 #define CONFIG_STACKSIZE SZ_128K
169 /* Physical Memory Map */
170 #define CONFIG_NR_DRAM_BANKS 1
171 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
172 #define PHYS_SDRAM_SIZE SZ_1G
174 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
175 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
176 #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
178 #define CONFIG_SYS_INIT_SP_OFFSET \
179 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
180 #define CONFIG_SYS_INIT_SP_ADDR \
181 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
183 /* FLASH and environment organization */
184 #define CONFIG_SYS_NO_FLASH
186 #define CONFIG_ENV_OFFSET (6 * SZ_64K)
187 #define CONFIG_ENV_SIZE SZ_8K
188 #define CONFIG_ENV_IS_IN_MMC
189 #define CONFIG_SYS_MMC_ENV_DEV 0
191 #define CONFIG_OF_LIBFDT
192 #define CONFIG_CMD_BOOTZ
194 #ifndef CONFIG_SYS_DCACHE_OFF
195 #define CONFIG_CMD_CACHE
198 #endif /* __CONFIG_H */