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 "mx6_common.h"
14 #define MACH_TYPE_MX6SLEVK 4307
15 #define CONFIG_MACH_TYPE MACH_TYPE_MX6SLEVK
17 /* Size of malloc() pool */
18 #define CONFIG_SYS_MALLOC_LEN (3 * SZ_1M)
20 #define CONFIG_BOARD_EARLY_INIT_F
22 #define CONFIG_MXC_UART
23 #define CONFIG_MXC_UART_BASE UART1_IPS_BASE_ADDR
26 #define CONFIG_SYS_FSL_ESDHC_ADDR USDHC2_BASE_ADDR
29 #define CONFIG_CMD_I2C
30 #define CONFIG_SYS_I2C
31 #define CONFIG_SYS_I2C_MXC
32 #define CONFIG_SYS_I2C_MXC_I2C3 /* enable I2C bus 3 */
33 #define CONFIG_SYS_I2C_SPEED 100000
37 #define CONFIG_POWER_I2C
38 #define CONFIG_POWER_PFUZE100
39 #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
41 #define CONFIG_CMD_PING
42 #define CONFIG_CMD_DHCP
43 #define CONFIG_CMD_MII
44 #define CONFIG_CMD_NET
45 #define CONFIG_FEC_MXC
47 #define IMX_FEC_BASE ENET_BASE_ADDR
48 #define CONFIG_FEC_XCV_TYPE RMII
49 #define CONFIG_ETHPRIME "FEC"
50 #define CONFIG_FEC_MXC_PHYADDR 0
53 #define CONFIG_PHY_SMSC
55 #define CONFIG_EXTRA_ENV_SETTINGS \
59 "fdt_high=0xffffffff\0" \
60 "initrd_high=0xffffffff\0" \
61 "fdt_file=imx6sl-evk.dtb\0" \
62 "fdt_addr=0x88000000\0" \
67 "mmcroot=/dev/mmcblk0p2 rootwait rw\0" \
68 "mmcargs=setenv bootargs console=${console},${baudrate} " \
71 "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
72 "bootscript=echo Running bootscript from mmc ...; " \
74 "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
75 "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
76 "mmcboot=echo Booting from mmc ...; " \
78 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
79 "if run loadfdt; then " \
80 "bootz ${loadaddr} - ${fdt_addr}; " \
82 "if test ${boot_fdt} = try; then " \
85 "echo WARN: Cannot load the DT; " \
91 "netargs=setenv bootargs console=${console},${baudrate} " \
93 "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
94 "netboot=echo Booting from net ...; " \
96 "if test ${ip_dyn} = yes; then " \
97 "setenv get_cmd dhcp; " \
99 "setenv get_cmd tftp; " \
101 "${get_cmd} ${image}; " \
102 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
103 "if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \
104 "bootz ${loadaddr} - ${fdt_addr}; " \
106 "if test ${boot_fdt} = try; then " \
109 "echo WARN: Cannot load the DT; " \
116 #define CONFIG_BOOTCOMMAND \
117 "mmc dev ${mmcdev};" \
118 "mmc dev ${mmcdev}; if mmc rescan; then " \
119 "if run loadbootscript; then " \
122 "if run loadimage; then " \
124 "else run netboot; " \
127 "else run netboot; fi"
129 /* Miscellaneous configurable options */
130 #define CONFIG_SYS_MEMTEST_START 0x80000000
131 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + SZ_512M)
133 #define CONFIG_STACKSIZE SZ_128K
135 /* Physical Memory Map */
136 #define CONFIG_NR_DRAM_BANKS 1
137 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
138 #define PHYS_SDRAM_SIZE SZ_1G
140 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
141 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
142 #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
144 #define CONFIG_SYS_INIT_SP_OFFSET \
145 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
146 #define CONFIG_SYS_INIT_SP_ADDR \
147 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
149 /* Environment organization */
150 #define CONFIG_ENV_SIZE SZ_8K
152 #if defined CONFIG_SYS_BOOT_SPINOR
153 #define CONFIG_ENV_IS_IN_SPI_FLASH
154 #define CONFIG_ENV_OFFSET (768 * 1024)
155 #define CONFIG_ENV_SECT_SIZE (64 * 1024)
156 #define CONFIG_ENV_SPI_BUS CONFIG_SF_DEFAULT_BUS
157 #define CONFIG_ENV_SPI_CS CONFIG_SF_DEFAULT_CS
158 #define CONFIG_ENV_SPI_MODE CONFIG_SF_DEFAULT_MODE
159 #define CONFIG_ENV_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED
161 #define CONFIG_ENV_OFFSET (8 * SZ_64K)
162 #define CONFIG_ENV_IS_IN_MMC
165 #define CONFIG_CMD_SF
167 #define CONFIG_SPI_FLASH
168 #define CONFIG_SPI_FLASH_STMICRO
169 #define CONFIG_MXC_SPI
170 #define CONFIG_SF_DEFAULT_BUS 0
171 #define CONFIG_SF_DEFAULT_CS 0
172 #define CONFIG_SF_DEFAULT_SPEED 20000000
173 #define CONFIG_SF_DEFAULT_MODE SPI_MODE_0
177 #define CONFIG_CMD_USB
178 #ifdef CONFIG_CMD_USB
179 #define CONFIG_USB_EHCI
180 #define CONFIG_USB_EHCI_MX6
181 #define CONFIG_USB_STORAGE
182 #define CONFIG_EHCI_HCD_INIT_AFTER_RESET
183 #define CONFIG_USB_HOST_ETHER
184 #define CONFIG_USB_ETHER_ASIX
185 #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
186 #define CONFIG_MXC_USB_FLAGS 0
187 #define CONFIG_USB_MAX_CONTROLLER_COUNT 2
190 #define CONFIG_SYS_FSL_USDHC_NUM 3
191 #if defined(CONFIG_ENV_IS_IN_MMC)
192 #define CONFIG_SYS_MMC_ENV_DEV 1 /* SDHC2*/
195 #define CONFIG_IMX6_THERMAL
197 #define CONFIG_CMD_FUSE
198 #if defined(CONFIG_CMD_FUSE) || defined(CONFIG_IMX6_THERMAL)
199 #define CONFIG_MXC_OCOTP
202 #endif /* __CONFIG_H */