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