Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2017 |
| 4 | * Lukasz Majewski, DENX Software Engineering, lukma@denx.de |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __CONFIG_H |
| 8 | #define __CONFIG_H |
| 9 | |
| 10 | #include "mx6_common.h" |
| 11 | |
| 12 | /* Falcon Mode */ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 13 | |
| 14 | /* Falcon Mode - MMC support */ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 15 | |
| 16 | /* |
| 17 | * display5 SPI-NOR memory layout |
| 18 | * |
| 19 | * The definition can be found in Kconfig's |
| 20 | * CONFIG_MTDIDS_DEFAULT and CONFIG_MTDPARTS_DEFAULT |
| 21 | * |
| 22 | * 0x000000 - 0x020000 : SPI.SPL (128KiB) |
| 23 | * 0x020000 - 0x120000 : SPI.u-boot (1MiB) |
| 24 | * 0x120000 - 0x130000 : SPI.u-boot-env1 (64KiB) |
| 25 | * 0x130000 - 0x140000 : SPI.u-boot-env2 (64KiB) |
Lukasz Majewski | c04b41b | 2020-05-13 17:45:15 +0200 | [diff] [blame] | 26 | * 0x140000 - 0x740000 : SPI.swupdate-kernel-FIT (6MiB) |
| 27 | * 0x740000 - 0x1B40000 : SPI.swupdate-initramfs (20MiB) |
| 28 | * 0x1B40000 - 0x1F00000 : SPI.reserved (3840KiB) |
| 29 | * 0x1F00000 - 0x2000000 : SPI.factory (1MiB) |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 30 | */ |
| 31 | |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 32 | /* Below values are "dummy" - only to avoid build break */ |
| 33 | #define CONFIG_SYS_SPI_KERNEL_OFFS 0x150000 |
| 34 | #define CONFIG_SYS_SPI_ARGS_OFFS 0x140000 |
| 35 | #define CONFIG_SYS_SPI_ARGS_SIZE 0x10000 |
| 36 | |
| 37 | #include "imx6_spl.h" |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 38 | |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 39 | #define CONFIG_MXC_UART_BASE UART5_BASE |
| 40 | |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 41 | /* I2C Configs */ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 42 | #define CONFIG_I2C_MULTI_BUS |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 43 | |
| 44 | /* MMC Configs */ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 45 | #define CONFIG_SYS_FSL_ESDHC_ADDR 0 |
| 46 | #define CONFIG_SYS_FSL_USDHC_NUM 2 |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 47 | |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 48 | #define PARTS_DEFAULT \ |
| 49 | /* Linux partitions */ \ |
| 50 | "partitions=" \ |
| 51 | "uuid_disk=${uuid_gpt_disk};" \ |
| 52 | "name=kernel_raw1,start=128K,size=8M,uuid=${uuid_gpt_kernel_raw1};" \ |
| 53 | "name=rootfs1,size=1528M,uuid=${uuid_gpt_rootfs1};" \ |
| 54 | "name=kernel_raw2,size=8M,uuid=${uuid_gpt_kernel_raw2};" \ |
Lukasz Majewski | 9fea1ca | 2018-05-11 16:51:16 +0200 | [diff] [blame] | 55 | "name=rootfs2,size=512M,uuid=${uuid_gpt_rootfs2};" \ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 56 | "name=data,size=-,uuid=${uuid_gpt_data}\0" |
| 57 | |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 58 | #define SWUPDATE_RECOVERY_PROCEDURE \ |
| 59 | "echo '#######################';" \ |
| 60 | "echo '# RECOVERY SWUupdate #';" \ |
| 61 | "echo '#######################';" \ |
Lukasz Majewski | 0f05512 | 2018-05-11 16:51:18 +0200 | [diff] [blame] | 62 | "echo '#######################';" \ |
| 63 | "echo '# GPT verify #';" \ |
| 64 | "if gpt verify mmc ${mmcdev} ${partitions}; then " \ |
| 65 | "echo '# OK ! #';" \ |
| 66 | "else " \ |
| 67 | "echo '# FAILED ! #';" \ |
| 68 | "echo '# GPT RESTORATION #';" \ |
| 69 | "gpt write mmc ${mmcdev} ${partitions};" \ |
| 70 | "fi;" \ |
| 71 | "echo '#######################';" \ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 72 | "setenv loadaddr_swu_initramfs 0x14000000;" \ |
| 73 | "setenv bootargs console=${console} " \ |
| 74 | "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \ |
| 75 | ":${hostname}::off root=/dev/ram rw;" \ |
| 76 | "sf probe;" \ |
| 77 | "sf read ${loadaddr} swu-kernel;" \ |
| 78 | "sf read ${loadaddr_swu_initramfs} swu-initramfs;" \ |
Lukasz Majewski | 1bcbf48 | 2018-05-11 16:51:04 +0200 | [diff] [blame] | 79 | "bootm ${loadaddr} ${loadaddr_swu_initramfs};reset;" |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 80 | |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 81 | #define SETUP_BOOTARGS \ |
| 82 | "run set_rootfs_part;" \ |
| 83 | "setenv bootargs ${bootargs} console=${console} " \ |
| 84 | "root=/dev/mmcblk${mmcdev}p${rootfs_part} " \ |
| 85 | "rootwait rootfstype=ext4 rw; " \ |
| 86 | "run set_kernel_part;" \ |
| 87 | "part start mmc ${mmcdev} ${kernel_part} lba_start; " \ |
Lukasz Majewski | f008e26 | 2018-08-18 22:22:07 +0200 | [diff] [blame] | 88 | "mmc read ${loadaddr} ${lba_start} ${fitImg_fw_sz}; " \ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 89 | "setenv fdt_conf imx6q-${board}-${display}.dtb; " |
| 90 | |
| 91 | /* All the numbers are in LBAs */ |
| 92 | #define __TFTP_UPDATE_KERNEL \ |
| 93 | "tftp_mmc_fitImg=" \ |
| 94 | "if test ! -n ${kernel_part}; then " \ |
| 95 | "setenv kernel_part ${kernel_part_active};" \ |
| 96 | "fi;" \ |
| 97 | "if tftp ${loadaddr} ${kernel_file}; then " \ |
| 98 | "setexpr fw_sz ${filesize} / 0x200; " \ |
| 99 | "setexpr fw_sz ${fw_sz} + 1; " \ |
| 100 | "part start mmc ${mmcdev} ${kernel_part} lba_start; " \ |
| 101 | "mmc write ${loadaddr} ${lba_start} ${fw_sz}; " \ |
| 102 | "; fi\0" \ |
| 103 | |
| 104 | #define TFTP_UPDATE_KERNEL \ |
| 105 | "setenv kernel_part ${kernel_part_active};" \ |
| 106 | "run tftp_mmc_fitImg;" \ |
| 107 | "setenv kernel_part ${kernel_part_backup};" \ |
| 108 | "run tftp_mmc_fitImg;" \ |
| 109 | |
| 110 | #define __TFTP_UPDATE_ROOTFS \ |
| 111 | "tftp_mmc_rootfs=" \ |
| 112 | "if test ! -n ${rootfs_part}; then " \ |
| 113 | "setenv rootfs_part ${rootfs_part_active};" \ |
| 114 | "fi;" \ |
| 115 | "if tftp ${loadaddr} ${rootfs_file}; then " \ |
| 116 | "setexpr fw_sz ${filesize} / 0x200; " \ |
| 117 | "setexpr fw_sz ${fw_sz} + 1; " \ |
| 118 | "part start mmc ${mmcdev} ${rootfs_part} lba_start; " \ |
| 119 | "mmc write ${loadaddr} ${lba_start} ${fw_sz}; " \ |
| 120 | "; fi\0" \ |
| 121 | |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 122 | #define TFTP_UPDATE_ROOTFS \ |
| 123 | "setenv rootfs_part ${rootfs_part_active};" \ |
| 124 | "run tftp_mmc_rootfs;" \ |
Lukasz Majewski | 18ccca5 | 2018-05-11 16:51:11 +0200 | [diff] [blame] | 125 | "run tftp_mmc_rootfs_bkp;" \ |
| 126 | |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 127 | |
| 128 | #define TFTP_UPDATE_RECOVERY_SWU_KERNEL \ |
| 129 | "tftp_sf_fitImg_SWU=" \ |
| 130 | "if tftp ${loadaddr} ${kernel_file}; then " \ |
| 131 | "sf probe;" \ |
| 132 | "sf erase swu-kernel +${filesize};" \ |
| 133 | "sf write ${loadaddr} swu-kernel ${filesize};" \ |
| 134 | "; fi\0" \ |
| 135 | |
| 136 | #define TFTP_UPDATE_RECOVERY_SWU_INITRAMFS \ |
Lukasz Majewski | b5f4543 | 2018-05-11 16:51:12 +0200 | [diff] [blame] | 137 | "swu_initramfs_file=swupdate-image-display5.ext4.gz.u-boot\0" \ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 138 | "tftp_sf_initramfs_SWU=" \ |
| 139 | "if tftp ${loadaddr} ${swu_initramfs_file}; then " \ |
| 140 | "sf probe;" \ |
| 141 | "sf erase swu-initramfs +${filesize};" \ |
| 142 | "sf write ${loadaddr} swu-initramfs ${filesize};" \ |
| 143 | "; fi\0" \ |
| 144 | |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 145 | #define TFTP_UPDATE_BOOTLOADER \ |
| 146 | "ubootfile=u-boot.img\0" \ |
| 147 | "ubootfileSPL=SPL\0" \ |
| 148 | "tftp_sf_uboot=" \ |
| 149 | "if tftp ${loadaddr} ${ubootfile}; then " \ |
| 150 | "sf probe;" \ |
| 151 | "sf erase u-boot +${filesize};" \ |
| 152 | "sf write ${loadaddr} u-boot ${filesize}" \ |
| 153 | "; fi\0" \ |
| 154 | "tftp_sf_SPL=" \ |
| 155 | "if tftp ${loadaddr} ${ubootfileSPL}; then " \ |
| 156 | "sf probe;" \ |
| 157 | "setexpr uboot_SPL_size ${filesize} + 0x400;" \ |
| 158 | "sf erase 0x0 +${uboot_SPL_size};" \ |
| 159 | "sf write ${loadaddr} 0x400 ${filesize};" \ |
| 160 | "fi\0" \ |
| 161 | |
Lukasz Majewski | 2f4372a | 2018-05-11 16:51:02 +0200 | [diff] [blame] | 162 | #define TFTP_UPDATE_SPINOR \ |
| 163 | "spinorfile=core-image-lwn-display5.spinor\0" \ |
| 164 | "spinorsize=0x2000000\0" \ |
| 165 | "tftp_sf_img=" \ |
| 166 | "if tftp ${loadaddr} ${spinorfile}; then " \ |
| 167 | "sf probe;" \ |
| 168 | "sf erase 0x0 ${spinorsize};" \ |
| 169 | "sf write ${loadaddr} 0x0 ${filesize};" \ |
| 170 | "fi\0" \ |
| 171 | |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 172 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 173 | PARTS_DEFAULT \ |
Lukasz Majewski | 27aede2 | 2018-05-11 16:51:08 +0200 | [diff] [blame] | 174 | "gpio_recovery=93\0" \ |
| 175 | "check_em_pad=gpio input ${gpio_recovery};test $? -eq 0;\0" \ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 176 | "display=tianma-tm070-800x480\0" \ |
| 177 | "board=display5\0" \ |
| 178 | "mmcdev=0\0" \ |
| 179 | "altbootcmd=run recovery\0" \ |
| 180 | "bootdelay=1\0" \ |
| 181 | "baudrate=115200\0" \ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 182 | "ethact=FEC\0" \ |
| 183 | "netdev=eth0\0" \ |
| 184 | "boot_os=y\0" \ |
| 185 | "hostname=display5\0" \ |
| 186 | "loadaddr=0x12000000\0" \ |
| 187 | "fdtaddr=0x12800000\0" \ |
Lukasz Majewski | 5d92540 | 2018-05-11 16:51:15 +0200 | [diff] [blame] | 188 | "console=ttymxc4,115200 quiet cma=256M\0" \ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 189 | "fdtfile=imx6q-display5.dtb\0" \ |
| 190 | "fdt_high=0xffffffff\0" \ |
| 191 | "initrd_high=0xffffffff\0" \ |
| 192 | "kernel_file=fitImage\0" \ |
Lukasz Majewski | f008e26 | 2018-08-18 22:22:07 +0200 | [diff] [blame] | 193 | "fitImg_fw_sz=0x2200\0" \ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 194 | "up=run tftp_sf_SPL; run tftp_sf_uboot\0" \ |
| 195 | "download_kernel=" \ |
| 196 | "tftpboot ${loadaddr} ${kernel_file};\0" \ |
Lukasz Majewski | 13e012f | 2018-05-11 16:50:59 +0200 | [diff] [blame] | 197 | "factory_nfs=" \ |
Lukasz Majewski | 4864ba7 | 2018-05-11 16:51:00 +0200 | [diff] [blame] | 198 | "setenv ipaddr 192.168.1.102;" \ |
| 199 | "setenv gatewayip 192.168.1.1;" \ |
| 200 | "setenv netmask 255.255.255.0;" \ |
| 201 | "setenv serverip 192.168.1.2;" \ |
Lukasz Majewski | 13e012f | 2018-05-11 16:50:59 +0200 | [diff] [blame] | 202 | "echo BOOT: FACTORY (LEG);" \ |
| 203 | "run boot_nfs\0" \ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 204 | "boot_swu_recovery=" SWUPDATE_RECOVERY_PROCEDURE "\0" \ |
| 205 | "recovery=" \ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 206 | "echo BOOT: RECOVERY: SWU;" \ |
Lukasz Majewski | b78e9c4 | 2018-05-11 16:51:05 +0200 | [diff] [blame] | 207 | "run boot_swu_recovery\0" \ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 208 | "boot_tftp=" \ |
| 209 | "if run download_kernel; then " \ |
| 210 | "setenv bootargs console=${console} " \ |
| 211 | "root=/dev/mmcblk0p2 rootwait;" \ |
Lukasz Majewski | 1bcbf48 | 2018-05-11 16:51:04 +0200 | [diff] [blame] | 212 | "bootm ${loadaddr} - ${fdtaddr};reset;" \ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 213 | "fi\0" \ |
| 214 | "addip=setenv bootargs ${bootargs} " \ |
| 215 | "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:" \ |
| 216 | "${hostname}:eth0:on" \ |
| 217 | "\0" \ |
| 218 | "nfsargs=setenv bootargs " \ |
| 219 | "root=/dev/nfs rw " \ |
| 220 | "nfsroot=${serverip}:${rootpath},nolock,nfsvers=3" \ |
| 221 | "\0" \ |
| 222 | "rootpath=/srv/tftp/DISP5/rootfs\0" \ |
| 223 | "boot_nfs=" \ |
| 224 | "if run download_kernel; then " \ |
| 225 | "run nfsargs;" \ |
| 226 | "run addip;" \ |
| 227 | "setenv bootargs ${bootargs} console=${console};" \ |
| 228 | "setenv fdt_conf imx6q-${board}-${display}.dtb; " \ |
Lukasz Majewski | 1bcbf48 | 2018-05-11 16:51:04 +0200 | [diff] [blame] | 229 | "bootm ${loadaddr}#conf@${fdt_conf};reset;" \ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 230 | "fi\0" \ |
| 231 | "falcon_setup=" \ |
| 232 | "if mmc dev ${mmcdev}; then " \ |
| 233 | SETUP_BOOTARGS \ |
| 234 | "spl export fdt ${loadaddr}#conf@${fdt_conf};" \ |
| 235 | "setexpr fw_sz ${fdtargslen} / 0x200; " \ |
| 236 | "setexpr fw_sz ${fw_sz} + 1; " \ |
| 237 | "mmc write ${fdtargsaddr} " \ |
| 238 | __stringify(CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR)" ${fw_sz}; " \ |
| 239 | "fi\0" \ |
| 240 | "boot_mmc=" \ |
| 241 | "if mmc dev ${mmcdev}; then " \ |
| 242 | SETUP_BOOTARGS \ |
Lukasz Majewski | 1bcbf48 | 2018-05-11 16:51:04 +0200 | [diff] [blame] | 243 | "bootm ${loadaddr}#conf@${fdt_conf};reset;" \ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 244 | "fi\0" \ |
| 245 | "set_kernel_part=" \ |
| 246 | "if test ${BOOT_FROM} = ACTIVE; then " \ |
| 247 | "setenv kernel_part ${kernel_part_active};" \ |
| 248 | "echo BOOT: ACTIVE;" \ |
| 249 | "else if test ${BOOT_FROM} = BACKUP; then " \ |
| 250 | "setenv kernel_part ${kernel_part_backup};" \ |
| 251 | "echo BOOT: BACKUP;" \ |
| 252 | "else " \ |
| 253 | "run recovery;" \ |
| 254 | "fi;fi\0" \ |
| 255 | "set_rootfs_part=" \ |
| 256 | "if test ${BOOT_FROM} = ACTIVE; then " \ |
| 257 | "setenv rootfs_part ${rootfs_part_active};" \ |
| 258 | "else if test ${BOOT_FROM} = BACKUP; then " \ |
| 259 | "setenv rootfs_part ${rootfs_part_backup};" \ |
| 260 | "else " \ |
| 261 | "run recovery;" \ |
| 262 | "fi;fi\0" \ |
| 263 | "BOOT_FROM=ACTIVE\0" \ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 264 | TFTP_UPDATE_BOOTLOADER \ |
Lukasz Majewski | 2f4372a | 2018-05-11 16:51:02 +0200 | [diff] [blame] | 265 | TFTP_UPDATE_SPINOR \ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 266 | "kernel_part_active=1\0" \ |
| 267 | "kernel_part_backup=3\0" \ |
| 268 | __TFTP_UPDATE_KERNEL \ |
| 269 | "rootfs_part_active=2\0" \ |
| 270 | "rootfs_part_backup=4\0" \ |
| 271 | "rootfs_file=core-image-lwn-display5.ext4\0" \ |
Lukasz Majewski | dd4ed88 | 2018-05-11 16:51:10 +0200 | [diff] [blame] | 272 | "rootfs_file_backup=core-image-lwn-backup-display5.ext4\0" \ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 273 | __TFTP_UPDATE_ROOTFS \ |
Lukasz Majewski | dd4ed88 | 2018-05-11 16:51:10 +0200 | [diff] [blame] | 274 | "tftp_mmc_rootfs_bkp=" \ |
| 275 | "setenv rootfs_part ${rootfs_part_backup};" \ |
| 276 | "setenv rootfs_file ${rootfs_file_backup};" \ |
| 277 | "run tftp_mmc_rootfs\0" \ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 278 | TFTP_UPDATE_RECOVERY_SWU_KERNEL \ |
| 279 | TFTP_UPDATE_RECOVERY_SWU_INITRAMFS \ |
| 280 | "\0" \ |
| 281 | |
| 282 | /* Miscellaneous configurable options */ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 283 | |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 284 | #define CONFIG_STANDALONE_LOAD_ADDR 0x10001000 |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 285 | |
| 286 | /* Physical Memory Map */ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 287 | #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR |
| 288 | #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM |
| 289 | |
| 290 | #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR |
| 291 | #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE |
| 292 | |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 293 | /* ENV config */ |
| 294 | #ifdef CONFIG_ENV_IS_IN_SPI_FLASH |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 295 | /* The 0x120000 value corresponds to above SPI-NOR memory MAP */ |
Lukasz Majewski | a3eec24 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 296 | #endif |
| 297 | |
| 298 | #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) |
| 299 | #endif /* __CONFIG_H */ |