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"
18 #define MACH_TYPE_MX6SLEVK 4307
19 #define CONFIG_MACH_TYPE MACH_TYPE_MX6SLEVK
21 /* Size of malloc() pool */
22 #define CONFIG_SYS_MALLOC_LEN (3 * SZ_1M)
24 #define CONFIG_BOARD_EARLY_INIT_F
26 #define CONFIG_MXC_UART
27 #define CONFIG_MXC_UART_BASE UART1_IPS_BASE_ADDR
30 #define CONFIG_SYS_FSL_ESDHC_ADDR USDHC2_BASE_ADDR
33 #define CONFIG_SYS_I2C
34 #define CONFIG_SYS_I2C_MXC
35 #define CONFIG_SYS_I2C_MXC_I2C1 /* enable I2C bus 1 */
36 #define CONFIG_SYS_I2C_MXC_I2C2 /* enable I2C bus 2 */
37 #define CONFIG_SYS_I2C_MXC_I2C3 /* enable I2C bus 3 */
38 #define CONFIG_SYS_I2C_SPEED 100000
42 #define CONFIG_POWER_I2C
43 #define CONFIG_POWER_PFUZE100
44 #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
46 #define CONFIG_FEC_MXC
48 #define IMX_FEC_BASE ENET_BASE_ADDR
49 #define CONFIG_FEC_XCV_TYPE RMII
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
139 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
140 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
141 #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
143 #define CONFIG_SYS_INIT_SP_OFFSET \
144 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
145 #define CONFIG_SYS_INIT_SP_ADDR \
146 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
148 /* Environment organization */
149 #define CONFIG_ENV_SIZE SZ_8K
151 #if defined CONFIG_SYS_BOOT_SPINOR
152 #define CONFIG_ENV_IS_IN_SPI_FLASH
153 #define CONFIG_ENV_OFFSET (768 * 1024)
154 #define CONFIG_ENV_SECT_SIZE (64 * 1024)
155 #define CONFIG_ENV_SPI_BUS CONFIG_SF_DEFAULT_BUS
156 #define CONFIG_ENV_SPI_CS CONFIG_SF_DEFAULT_CS
157 #define CONFIG_ENV_SPI_MODE CONFIG_SF_DEFAULT_MODE
158 #define CONFIG_ENV_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED
160 #define CONFIG_ENV_OFFSET (8 * SZ_64K)
161 #define CONFIG_ENV_IS_IN_MMC
165 #define CONFIG_MXC_SPI
166 #define CONFIG_SF_DEFAULT_BUS 0
167 #define CONFIG_SF_DEFAULT_CS 0
168 #define CONFIG_SF_DEFAULT_SPEED 20000000
169 #define CONFIG_SF_DEFAULT_MODE SPI_MODE_0
173 #ifdef CONFIG_CMD_USB
174 #define CONFIG_USB_EHCI
175 #define CONFIG_USB_EHCI_MX6
176 #define CONFIG_EHCI_HCD_INIT_AFTER_RESET
177 #define CONFIG_USB_HOST_ETHER
178 #define CONFIG_USB_ETHER_ASIX
179 #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
180 #define CONFIG_MXC_USB_FLAGS 0
181 #define CONFIG_USB_MAX_CONTROLLER_COUNT 2
184 #define CONFIG_SYS_FSL_USDHC_NUM 3
185 #if defined(CONFIG_ENV_IS_IN_MMC)
186 #define CONFIG_SYS_MMC_ENV_DEV 1 /* SDHC2*/
189 #define CONFIG_IMX_THERMAL
191 #endif /* __CONFIG_H */