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 #define CONFIG_MXC_UART_BASE UART1_BASE
15 #define CONFIG_EXTRA_ENV_SETTINGS \
16 "epdc_waveform=epdc_splash.bin\0" \
20 "fdt_high=0xffffffff\0" \
21 "initrd_high=0xffffffff\0" \
22 "fdt_file=imx6sll-evk.dtb\0" \
23 "fdt_addr=0x83000000\0" \
26 "mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \
28 "mmcroot=" CONFIG_MMCROOT " rootwait rw\0" \
29 "mmcautodetect=yes\0" \
30 "mmcargs=setenv bootargs console=${console},${baudrate} " \
33 "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
34 "bootscript=echo Running bootscript from mmc ...; " \
36 "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
37 "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
38 "mmcboot=echo Booting from mmc ...; " \
40 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
41 "if run loadfdt; then " \
42 "bootz ${loadaddr} - ${fdt_addr}; " \
44 "if test ${boot_fdt} = try; then " \
47 "echo WARN: Cannot load the DT; " \
53 "netargs=setenv bootargs console=${console},${baudrate} " \
55 "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
56 "netboot=echo Booting from net ...; " \
59 "if test ${ip_dyn} = yes; then " \
60 "setenv get_cmd dhcp; " \
62 "setenv get_cmd tftp; " \
64 "${get_cmd} ${image}; " \
65 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
66 "if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \
67 "bootz ${loadaddr} - ${fdt_addr}; " \
69 "if test ${boot_fdt} = try; then " \
72 "echo WARN: Cannot load the DT; " \
79 #define CONFIG_BOOTCOMMAND \
80 "mmc dev ${mmcdev};" \
81 "mmc dev ${mmcdev}; if mmc rescan; then " \
82 "if run loadbootscript; then " \
85 "if run loadimage; then " \
87 "else run netboot; " \
90 "else run netboot; fi"
92 /* Miscellaneous configurable options */
94 /* Physical Memory Map */
95 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
96 #define PHYS_SDRAM_SIZE SZ_2G
98 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
99 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
100 #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
102 #define CONFIG_SYS_INIT_SP_OFFSET \
103 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
104 #define CONFIG_SYS_INIT_SP_ADDR \
105 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
107 /* Environment organization */
108 #define CONFIG_MMCROOT "/dev/mmcblk0p2" /* USDHC1 */
111 #define CONFIG_SYS_FSL_ESDHC_ADDR USDHC1_BASE_ADDR
112 #define CONFIG_SYS_FSL_USDHC_NUM 3
114 #define CONFIG_IOMUX_LPSR
117 #ifdef CONFIG_CMD_USB
118 #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
121 #include <linux/stringify.h>
122 #endif /* __CONFIG_H */