1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright 2013-2016 Freescale Semiconductor, Inc.
5 * Configuration settings for the Freescale i.MX6SL EVK board.
11 #include "mx6_common.h"
13 #ifdef CONFIG_SECURE_BOOT
14 #ifndef CONFIG_CSF_SIZE
15 #define CONFIG_CSF_SIZE 0x4000
19 /* Size of malloc() pool */
20 #define CONFIG_SYS_MALLOC_LEN (16 * SZ_1M)
22 #define CONFIG_MXC_UART
23 #define CONFIG_MXC_UART_BASE UART1_BASE
27 #define CONFIG_SYS_I2C_MXC
28 #define CONFIG_SYS_I2C_MXC_I2C1 /* enable I2C bus 1 */
29 #define CONFIG_SYS_I2C_MXC_I2C2 /* enable I2C bus 2 */
30 #define CONFIG_SYS_I2C_MXC_I2C3 /* enable I2C bus 3 */
31 #define CONFIG_SYS_I2C_SPEED 100000
34 #define CONFIG_EXTRA_ENV_SETTINGS \
35 "epdc_waveform=epdc_splash.bin\0" \
39 "fdt_high=0xffffffff\0" \
40 "initrd_high=0xffffffff\0" \
41 "fdt_file=imx6sll-evk.dtb\0" \
42 "fdt_addr=0x83000000\0" \
45 "mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \
47 "mmcroot=" CONFIG_MMCROOT " rootwait rw\0" \
48 "mmcautodetect=yes\0" \
49 "mmcargs=setenv bootargs console=${console},${baudrate} " \
52 "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
53 "bootscript=echo Running bootscript from mmc ...; " \
55 "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
56 "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
57 "mmcboot=echo Booting from mmc ...; " \
59 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
60 "if run loadfdt; then " \
61 "bootz ${loadaddr} - ${fdt_addr}; " \
63 "if test ${boot_fdt} = try; then " \
66 "echo WARN: Cannot load the DT; " \
72 "netargs=setenv bootargs console=${console},${baudrate} " \
74 "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
75 "netboot=echo Booting from net ...; " \
78 "if test ${ip_dyn} = yes; then " \
79 "setenv get_cmd dhcp; " \
81 "setenv get_cmd tftp; " \
83 "${get_cmd} ${image}; " \
84 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
85 "if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \
86 "bootz ${loadaddr} - ${fdt_addr}; " \
88 "if test ${boot_fdt} = try; then " \
91 "echo WARN: Cannot load the DT; " \
98 #define CONFIG_BOOTCOMMAND \
99 "mmc dev ${mmcdev};" \
100 "mmc dev ${mmcdev}; if mmc rescan; then " \
101 "if run loadbootscript; then " \
104 "if run loadimage; then " \
106 "else run netboot; " \
109 "else run netboot; fi"
111 /* Miscellaneous configurable options */
112 #define CONFIG_SYS_MEMTEST_START 0x80000000
113 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + SZ_128M)
115 /* Physical Memory Map */
116 #define CONFIG_NR_DRAM_BANKS 1
117 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
118 #define PHYS_SDRAM_SIZE SZ_2G
120 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
121 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
122 #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
124 #define CONFIG_SYS_INIT_SP_OFFSET \
125 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
126 #define CONFIG_SYS_INIT_SP_ADDR \
127 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
129 /* Environment organization */
130 #define CONFIG_ENV_SIZE SZ_8K
131 #define CONFIG_SYS_MMC_ENV_PART 0 /* user partition */
132 #define CONFIG_MMCROOT "/dev/mmcblk0p2" /* USDHC1 */
134 #define CONFIG_ENV_OFFSET (12 * SZ_64K)
137 #define CONFIG_SYS_FSL_ESDHC_ADDR USDHC1_BASE_ADDR
138 #define CONFIG_SYS_FSL_USDHC_NUM 3
139 #define CONFIG_SYS_MMC_ENV_DEV 0 /* USDHC1 */
141 #define CONFIG_IMX_THERMAL
143 #define CONFIG_IOMUX_LPSR
146 #ifdef CONFIG_CMD_USB
147 #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
150 #endif /* __CONFIG_H */