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>
14 #include "mx6_common.h"
17 #define CONFIG_DISPLAY_CPUINFO
18 #define CONFIG_DISPLAY_BOARDINFO
20 #define MACH_TYPE_MX6SLEVK 4307
21 #define CONFIG_MACH_TYPE MACH_TYPE_MX6SLEVK
23 #define CONFIG_CMDLINE_TAG
24 #define CONFIG_SETUP_MEMORY_TAGS
25 #define CONFIG_INITRD_TAG
26 #define CONFIG_REVISION_TAG
28 /* Size of malloc() pool */
29 #define CONFIG_SYS_MALLOC_LEN (3 * SZ_1M)
31 #define CONFIG_BOARD_EARLY_INIT_F
32 #define CONFIG_MXC_GPIO
34 #define CONFIG_MXC_UART
35 #define CONFIG_MXC_UART_BASE UART1_IPS_BASE_ADDR
38 #define CONFIG_FSL_ESDHC
39 #define CONFIG_FSL_USDHC
40 #define CONFIG_SYS_FSL_ESDHC_ADDR 0
43 #define CONFIG_CMD_MMC
44 #define CONFIG_GENERIC_MMC
45 #define CONFIG_CMD_FAT
46 #define CONFIG_DOS_PARTITION
48 #define CONFIG_CMD_PING
49 #define CONFIG_CMD_DHCP
50 #define CONFIG_CMD_MII
51 #define CONFIG_CMD_NET
52 #define CONFIG_FEC_MXC
54 #define IMX_FEC_BASE ENET_BASE_ADDR
55 #define CONFIG_FEC_XCV_TYPE RMII
56 #define CONFIG_ETHPRIME "FEC"
57 #define CONFIG_FEC_MXC_PHYADDR 0
60 #define CONFIG_PHY_SMSC
62 /* allow to overwrite serial and ethaddr */
63 #define CONFIG_ENV_OVERWRITE
64 #define CONFIG_CONS_INDEX 1
65 #define CONFIG_BAUDRATE 115200
67 /* Command definition */
68 #include <config_cmd_default.h>
70 #undef CONFIG_CMD_IMLS
72 #define CONFIG_BOOTDELAY 3
74 #define CONFIG_LOADADDR 0x82000000
75 #define CONFIG_SYS_TEXT_BASE 0x87800000
77 #define CONFIG_EXTRA_ENV_SETTINGS \
81 "fdt_high=0xffffffff\0" \
82 "initrd_high=0xffffffff\0" \
83 "fdt_file=imx6sl-evk.dtb\0" \
84 "fdt_addr=0x88000000\0" \
89 "mmcroot=/dev/mmcblk0p2 rootwait rw\0" \
90 "mmcargs=setenv bootargs console=${console},${baudrate} " \
93 "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
94 "bootscript=echo Running bootscript from mmc ...; " \
96 "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
97 "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
98 "mmcboot=echo Booting from mmc ...; " \
100 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
101 "if run loadfdt; then " \
102 "bootz ${loadaddr} - ${fdt_addr}; " \
104 "if test ${boot_fdt} = try; then " \
107 "echo WARN: Cannot load the DT; " \
113 "netargs=setenv bootargs console=${console},${baudrate} " \
115 "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
116 "netboot=echo Booting from net ...; " \
118 "if test ${ip_dyn} = yes; then " \
119 "setenv get_cmd dhcp; " \
121 "setenv get_cmd tftp; " \
123 "${get_cmd} ${image}; " \
124 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
125 "if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \
126 "bootz ${loadaddr} - ${fdt_addr}; " \
128 "if test ${boot_fdt} = try; then " \
131 "echo WARN: Cannot load the DT; " \
138 #define CONFIG_BOOTCOMMAND \
139 "mmc dev ${mmcdev};" \
140 "mmc dev ${mmcdev}; if mmc rescan; then " \
141 "if run loadbootscript; then " \
144 "if run loadimage; then " \
146 "else run netboot; " \
149 "else run netboot; fi"
151 /* Miscellaneous configurable options */
152 #define CONFIG_SYS_LONGHELP
153 #define CONFIG_SYS_HUSH_PARSER
154 #define CONFIG_AUTO_COMPLETE
155 #define CONFIG_SYS_CBSIZE 256
157 /* Print Buffer Size */
158 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
159 #define CONFIG_SYS_MAXARGS 16
160 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
162 #define CONFIG_SYS_MEMTEST_START 0x80000000
163 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + SZ_512M)
165 #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
167 #define CONFIG_CMDLINE_EDITING
168 #define CONFIG_STACKSIZE SZ_128K
170 /* Physical Memory Map */
171 #define CONFIG_NR_DRAM_BANKS 1
172 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
173 #define PHYS_SDRAM_SIZE SZ_1G
175 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
176 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
177 #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
179 #define CONFIG_SYS_INIT_SP_OFFSET \
180 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
181 #define CONFIG_SYS_INIT_SP_ADDR \
182 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
184 /* FLASH and environment organization */
185 #define CONFIG_SYS_NO_FLASH
187 #define CONFIG_ENV_OFFSET (6 * SZ_64K)
188 #define CONFIG_ENV_SIZE SZ_8K
189 #define CONFIG_ENV_IS_IN_MMC
190 #define CONFIG_SYS_MMC_ENV_DEV 0
192 #define CONFIG_OF_LIBFDT
193 #define CONFIG_CMD_BOOTZ
195 #ifndef CONFIG_SYS_DCACHE_OFF
196 #define CONFIG_CMD_CACHE
199 #endif /* __CONFIG_H */