2 * Copyright (C) 2015 Freescale Semiconductor, Inc.
4 * Configuration settings for the Freescale i.MX7D SABRESD board.
6 * SPDX-License-Identifier: GPL-2.0+
9 #ifndef __MX7D_SABRESD_CONFIG_H
10 #define __MX7D_SABRESD_CONFIG_H
12 #include "mx7_common.h"
14 #define CONFIG_DBG_MONITOR
15 #define PHYS_SDRAM_SIZE SZ_1G
17 /* Uncomment to enable secure boot support */
18 /* #define CONFIG_SECURE_BOOT */
19 #define CONFIG_CSF_SIZE 0x4000
22 #define CONFIG_CMD_MII
23 #define CONFIG_FEC_MXC
25 #define CONFIG_FEC_XCV_TYPE RGMII
26 #define CONFIG_ETHPRIME "FEC"
27 #define CONFIG_FEC_MXC_PHYADDR 0
30 #define CONFIG_PHY_BROADCOM
32 #define IMX_FEC_BASE ENET_IPS_BASE_ADDR
35 #define CONFIG_SYS_FSL_ESDHC_ADDR 0
39 #define CONFIG_POWER_I2C
40 #define CONFIG_POWER_PFUZE3000
41 #define CONFIG_POWER_PFUZE3000_I2C_ADDR 0x08
43 #undef CONFIG_BOOTM_NETBSD
44 #undef CONFIG_BOOTM_PLAN9
45 #undef CONFIG_BOOTM_RTEMS
47 #undef CONFIG_CMD_EXPORTENV
48 #undef CONFIG_CMD_IMPORTENV
51 #define CONFIG_CMD_I2C
52 #define CONFIG_SYS_I2C
53 #define CONFIG_SYS_I2C_MXC
54 #define CONFIG_SYS_I2C_MXC_I2C1 /* enable I2C bus 1 */
55 #define CONFIG_SYS_I2C_SPEED 100000
57 #define CONFIG_SUPPORT_EMMC_BOOT /* eMMC specific */
58 #define CONFIG_SYS_MMC_IMG_LOAD_PART 1
60 #define CONFIG_MFG_ENV_SETTINGS \
61 "mfgtool_args=setenv bootargs console=${console},${baudrate} " \
63 "g_mass_storage.stall=0 g_mass_storage.removable=1 " \
64 "g_mass_storage.idVendor=0x066F g_mass_storage.idProduct=0x37FF "\
65 "g_mass_storage.iSerialNumber=\"\" "\
68 "initrd_addr=0x83800000\0" \
69 "initrd_high=0xffffffff\0" \
70 "bootcmd_mfg=run mfgtool_args;bootz ${loadaddr} ${initrd_addr} ${fdt_addr};\0" \
72 #define CONFIG_DFU_ENV_SETTINGS \
73 "dfu_alt_info=image raw 0 0x800000;"\
74 "u-boot raw 0 0x4000;"\
78 #define CONFIG_EXTRA_ENV_SETTINGS \
79 CONFIG_MFG_ENV_SETTINGS \
80 CONFIG_DFU_ENV_SETTINGS \
84 "fdt_high=0xffffffff\0" \
85 "initrd_high=0xffffffff\0" \
86 "fdt_file=imx7d-sdb.dtb\0" \
87 "fdt_addr=0x83000000\0" \
90 "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" \
91 "mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \
92 "mmcpart=" __stringify(CONFIG_SYS_MMC_IMG_LOAD_PART) "\0" \
93 "mmcroot=" CONFIG_MMCROOT " rootwait rw\0" \
94 "mmcautodetect=yes\0" \
95 "mmcargs=setenv bootargs console=${console},${baudrate} " \
98 "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
99 "bootscript=echo Running bootscript from mmc ...; " \
101 "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
102 "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
103 "mmcboot=echo Booting from mmc ...; " \
105 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
106 "if run loadfdt; then " \
107 "bootz ${loadaddr} - ${fdt_addr}; " \
109 "if test ${boot_fdt} = try; then " \
112 "echo WARN: Cannot load the DT; " \
118 "netargs=setenv bootargs console=${console},${baudrate} " \
120 "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
121 "netboot=echo Booting from net ...; " \
123 "if test ${ip_dyn} = yes; then " \
124 "setenv get_cmd dhcp; " \
126 "setenv get_cmd tftp; " \
128 "${get_cmd} ${image}; " \
129 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
130 "if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \
131 "bootz ${loadaddr} - ${fdt_addr}; " \
133 "if test ${boot_fdt} = try; then " \
136 "echo WARN: Cannot load the DT; " \
143 #define CONFIG_BOOTCOMMAND \
144 "mmc dev ${mmcdev};" \
145 "mmc dev ${mmcdev}; if mmc rescan; then " \
146 "if run loadbootscript; then " \
149 "if run loadimage; then " \
151 "else run netboot; " \
154 "else run netboot; fi"
156 #define CONFIG_CMD_MEMTEST
157 #define CONFIG_SYS_MEMTEST_START 0x80000000
158 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + 0x20000000)
160 #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
161 #define CONFIG_SYS_HZ 1000
163 #define CONFIG_STACKSIZE SZ_128K
165 /* Physical Memory Map */
166 #define CONFIG_NR_DRAM_BANKS 1
167 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
169 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
170 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
171 #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
173 #define CONFIG_SYS_INIT_SP_OFFSET \
174 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
175 #define CONFIG_SYS_INIT_SP_ADDR \
176 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
178 /* FLASH and environment organization */
179 #define CONFIG_SYS_NO_FLASH
180 #define CONFIG_ENV_SIZE SZ_8K
181 #define CONFIG_ENV_IS_IN_MMC
182 #define CONFIG_ENV_OFFSET (8 * SZ_64K)
183 #define CONFIG_SYS_FSL_USDHC_NUM 2
185 #define CONFIG_SYS_MMC_ENV_DEV 0 /* USDHC1 */
186 #define CONFIG_SYS_MMC_ENV_PART 0 /* user area */
187 #define CONFIG_MMCROOT "/dev/mmcblk0p2" /* USDHC1 */
190 #define CONFIG_CMD_USB
191 #define CONFIG_USB_EHCI
192 #define CONFIG_USB_EHCI_MX7
193 #define CONFIG_USB_STORAGE
194 #define CONFIG_EHCI_HCD_INIT_AFTER_RESET
195 #define CONFIG_USB_HOST_ETHER
196 #define CONFIG_USB_ETHER_ASIX
197 #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
198 #define CONFIG_MXC_USB_FLAGS 0
199 #define CONFIG_USB_MAX_CONTROLLER_COUNT 2
201 #define CONFIG_IMX_THERMAL
203 #define CONFIG_CI_UDC
204 #define CONFIG_USBD_HS
205 #define CONFIG_USB_GADGET_DUALSPEED
207 #define CONFIG_USB_GADGET
208 #define CONFIG_CMD_USB_MASS_STORAGE
209 #define CONFIG_USB_FUNCTION_MASS_STORAGE
210 #define CONFIG_USB_GADGET_DOWNLOAD
211 #define CONFIG_USB_GADGET_VBUS_DRAW 2
213 #define CONFIG_G_DNL_VENDOR_NUM 0x0525
214 #define CONFIG_G_DNL_PRODUCT_NUM 0xa4a5
215 #define CONFIG_G_DNL_MANUFACTURER "FSL"
217 /* USB Device Firmware Update support */
218 #define CONFIG_CMD_DFU
219 #define CONFIG_USB_FUNCTION_DFU
220 #define CONFIG_DFU_MMC
221 #define CONFIG_DFU_RAM
225 #define CONFIG_CFB_CONSOLE
226 #define CONFIG_VIDEO_MXS
227 #define CONFIG_VIDEO_LOGO
228 #define CONFIG_VIDEO_SW_CURSOR
229 #define CONFIG_VGA_AS_SINGLE_DEVICE
230 #define CONFIG_SYS_CONSOLE_IS_IN_ENV
231 #define CONFIG_SPLASH_SCREEN
232 #define CONFIG_SPLASH_SCREEN_ALIGN
233 #define CONFIG_CMD_BMP
234 #define CONFIG_BMP_16BPP
235 #define CONFIG_VIDEO_BMP_RLE8
236 #define CONFIG_VIDEO_BMP_LOGO
239 #endif /* __CONFIG_H */