1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2016 Freescale Semiconductor, Inc.
5 * Configuration settings for the Freescale i.MX6UL 14x14 EVK board.
7 #ifndef __MX6ULLEVK_CONFIG_H
8 #define __MX6ULLEVK_CONFIG_H
11 #include <asm/arch/imx-regs.h>
12 #include <linux/sizes.h>
13 #include <linux/stringify.h>
14 #include "mx6_common.h"
15 #include <asm/mach-imx/gpio.h>
17 #define PHYS_SDRAM_SIZE SZ_512M
19 #define CONFIG_MXC_UART_BASE UART1_BASE
22 #ifdef CONFIG_FSL_USDHC
23 #define CONFIG_SYS_FSL_ESDHC_ADDR USDHC2_BASE_ADDR
25 /* NAND pin conflicts with usdhc2 */
26 #ifdef CONFIG_SYS_USE_NAND
27 #define CONFIG_SYS_FSL_USDHC_NUM 1
29 #define CONFIG_SYS_FSL_USDHC_NUM 2
33 #define CONFIG_EXTRA_ENV_SETTINGS \
37 "fdt_high=0xffffffff\0" \
38 "initrd_high=0xffffffff\0" \
39 "fdt_file=undefined\0" \
40 "fdt_addr=0x83000000\0" \
43 "videomode=video=ctfb:x:480,y:272,depth:24,pclk:108695,le:8,ri:4,up:2,lo:4,hs:41,vs:10,sync:0,vmode:0\0" \
44 "mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \
46 "mmcroot=/dev/mmcblk1p2 rootwait rw\0" \
47 "mmcautodetect=yes\0" \
48 "mmcargs=setenv bootargs console=${console},${baudrate} " \
51 "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
52 "bootscript=echo Running bootscript from mmc ...; " \
54 "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
55 "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
56 "mmcboot=echo Booting from mmc ...; " \
58 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
59 "if run loadfdt; then " \
60 "bootz ${loadaddr} - ${fdt_addr}; " \
62 "if test ${boot_fdt} = try; then " \
65 "echo WARN: Cannot load the DT; " \
72 "if test $fdt_file = undefined; then " \
73 "if test $board_name = ULZ-EVK && test $board_rev = 14X14; then " \
74 "setenv fdt_file imx6ulz-14x14-evk.dtb; fi; " \
75 "if test $board_name = EVK && test $board_rev = 14X14; then " \
76 "setenv fdt_file imx6ull-14x14-evk.dtb; fi; " \
77 "if test $fdt_file = undefined; then " \
78 "echo WARNING: Could not determine dtb to use; " \
81 "netargs=setenv bootargs console=${console},${baudrate} " \
83 "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
84 "netboot=echo Booting from net ...; " \
86 "if test ${ip_dyn} = yes; then " \
87 "setenv get_cmd dhcp; " \
89 "setenv get_cmd tftp; " \
91 "${get_cmd} ${image}; " \
92 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
93 "if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \
94 "bootz ${loadaddr} - ${fdt_addr}; " \
96 "if test ${boot_fdt} = try; then " \
99 "echo WARN: Cannot load the DT; " \
106 /* Miscellaneous configurable options */
108 /* Physical Memory Map */
109 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
111 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
112 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
113 #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
115 #define CONFIG_SYS_INIT_SP_OFFSET \
116 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
117 #define CONFIG_SYS_INIT_SP_ADDR \
118 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
120 /* environment organization */
122 #define CONFIG_IOMUX_LPSR
124 #ifdef CONFIG_CMD_NET
125 #define CONFIG_FEC_ENET_DEV 1