Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 2 | /* |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 3 | * Copyright 2016-2018 Toradex AG |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 4 | * |
| 5 | * Configuration settings for the Colibri iMX7 module. |
| 6 | * |
| 7 | * based on mx7dsabresd.h: |
| 8 | * Copyright (C) 2015 Freescale Semiconductor, Inc. |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | #ifndef __COLIBRI_IMX7_CONFIG_H |
| 12 | #define __COLIBRI_IMX7_CONFIG_H |
| 13 | |
| 14 | #include "mx7_common.h" |
| 15 | |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 16 | /* Size of malloc() pool */ |
| 17 | #define CONFIG_SYS_MALLOC_LEN (32 * SZ_1M) |
| 18 | |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 19 | /* Network */ |
| 20 | #define CONFIG_FEC_MXC |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 21 | #define CONFIG_FEC_XCV_TYPE RMII |
| 22 | #define CONFIG_ETHPRIME "FEC" |
| 23 | #define CONFIG_FEC_MXC_PHYADDR 0 |
| 24 | |
Marcel Ziswiler | 36124b9 | 2016-09-15 00:54:00 +0200 | [diff] [blame] | 25 | #define CONFIG_TFTP_TSIZE |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 26 | |
| 27 | /* ENET1 */ |
| 28 | #define IMX_FEC_BASE ENET_IPS_BASE_ADDR |
| 29 | |
| 30 | /* MMC Config*/ |
| 31 | #define CONFIG_SYS_FSL_ESDHC_ADDR 0 |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 32 | #ifdef CONFIG_TARGET_COLIBRI_IMX7_NAND |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 33 | #define CONFIG_SYS_FSL_USDHC_NUM 1 |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 34 | #elif CONFIG_TARGET_COLIBRI_IMX7_EMMC |
| 35 | #define CONFIG_SYS_FSL_USDHC_NUM 2 |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 36 | #endif |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 37 | |
| 38 | #undef CONFIG_BOOTM_PLAN9 |
| 39 | #undef CONFIG_BOOTM_RTEMS |
| 40 | |
| 41 | /* I2C configs */ |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 42 | #define CONFIG_SYS_I2C_MXC |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 43 | #define CONFIG_SYS_I2C_SPEED 100000 |
| 44 | |
| 45 | #define CONFIG_IPADDR 192.168.10.2 |
| 46 | #define CONFIG_NETMASK 255.255.255.0 |
| 47 | #define CONFIG_SERVERIP 192.168.10.1 |
| 48 | |
Igor Opaniuk | b4924a3 | 2019-06-18 14:57:32 +0300 | [diff] [blame] | 49 | #ifndef PARTS_DEFAULT |
| 50 | /* Define the default GPT table for eMMC */ |
| 51 | #define PARTS_DEFAULT \ |
| 52 | /* Android partitions */ \ |
| 53 | "partitions_android=" \ |
| 54 | "uuid_disk=${uuid_gpt_disk};" \ |
| 55 | "name=boot,start=1M,size=32M,uuid=${uuid_gpt_boot};" \ |
| 56 | "name=environment,size=4M,uuid=${uuid_gpt_environment};" \ |
| 57 | "name=recovery,size=16M,uuid=${uuid_gpt_recovery};" \ |
| 58 | "name=system,size=1536M,uuid=${uuid_gpt_system};" \ |
| 59 | "name=cache,size=512M,uuid=${uuid_gpt_cache};" \ |
| 60 | "name=device,size=8M,uuid=${uuid_gpt_device};" \ |
| 61 | "name=misc,size=4M,uuid=${uuid_gpt_misc};" \ |
| 62 | "name=datafooter,size=2M,uuid=${uuid_gpt_datafooter};" \ |
| 63 | "name=metadata,size=2M,uuid=${uuid_gpt_metadata};" \ |
| 64 | "name=persistdata,size=2M,uuid=${uuid_gpt_persistdata};" \ |
| 65 | "name=userdata,size=128M,uuid=${uuid_gpt_userdata};" \ |
| 66 | "name=fbmisc,size=-,uuid=${uuid_gpt_fbmisc}\0" |
| 67 | #endif /* PARTS_DEFAULT */ |
| 68 | |
| 69 | #define EMMC_ANDROID_BOOTCMD \ |
| 70 | "android_args=androidboot.storage_type=emmc\0" \ |
| 71 | PARTS_DEFAULT \ |
| 72 | "android_fdt_addr=0x83700000\0" \ |
| 73 | "android_mmc_dev=0\0" \ |
| 74 | "m4binary=rpmsg_imu_freertos.elf\0" \ |
| 75 | "androidboot=ext4load mmc 0:a ${loadaddr} media/0/${m4binary}; "\ |
| 76 | "bootaux ${loadaddr}; " \ |
| 77 | "setenv loadaddr 0x88000000; " \ |
| 78 | "setenv bootm_boot_mode sec;" \ |
| 79 | "setenv bootargs androidboot.serialno=${serial#} " \ |
| 80 | "$android_args; " \ |
| 81 | "part start mmc ${android_mmc_dev} boot boot_start; " \ |
| 82 | "part size mmc ${android_mmc_dev} boot boot_size; " \ |
| 83 | "mmc read ${loadaddr} ${boot_start} ${boot_size}; " \ |
| 84 | "part start mmc ${android_mmc_dev} environment env_start; " \ |
| 85 | "part size mmc ${android_mmc_dev} environment env_size; " \ |
| 86 | "mmc read ${android_fdt_addr} ${env_start} ${env_size}; " \ |
| 87 | "bootm ${loadaddr} ${loadaddr} ${android_fdt_addr}\0 " |
| 88 | |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 89 | #define EMMC_BOOTCMD \ |
Igor Opaniuk | 4d454b0 | 2019-05-29 13:00:39 +0300 | [diff] [blame] | 90 | "set_emmcargs=setenv emmcargs ip=off root=PARTUUID=${uuid} ro " \ |
| 91 | "rootfstype=ext4 rootwait\0" \ |
| 92 | "emmcboot=run setup; run emmcfinduuid; run set_emmcargs; " \ |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 93 | "setenv bootargs ${defargs} ${emmcargs} ${setupargs} " \ |
| 94 | "${vidargs}; echo Booting from internal eMMC chip...; " \ |
| 95 | "run m4boot && " \ |
Igor Opaniuk | 4d454b0 | 2019-05-29 13:00:39 +0300 | [diff] [blame] | 96 | "load mmc ${emmcdev}:${emmcbootpart} ${fdt_addr_r} " \ |
| 97 | "${soc}-colibri-emmc-${fdt_board}.dtb && " \ |
| 98 | "load mmc ${emmcdev}:${emmcbootpart} ${kernel_addr_r} " \ |
| 99 | "${boot_file} && run fdt_fixup && " \ |
| 100 | "bootz ${kernel_addr_r} - ${fdt_addr_r}\0" \ |
| 101 | "emmcbootpart=1\0" \ |
| 102 | "emmcdev=0\0" \ |
| 103 | "emmcfinduuid=part uuid mmc ${emmcdev}:${emmcrootpart} uuid\0" \ |
| 104 | "emmcrootpart=2\0" |
| 105 | |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 106 | #define MEM_LAYOUT_ENV_SETTINGS \ |
Stefan Agner | 35eebee | 2017-03-09 17:17:51 -0800 | [diff] [blame] | 107 | "bootm_size=0x10000000\0" \ |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 108 | "fdt_addr_r=0x82000000\0" \ |
| 109 | "fdt_high=0xffffffff\0" \ |
| 110 | "initrd_high=0xffffffff\0" \ |
| 111 | "kernel_addr_r=0x81000000\0" \ |
| 112 | "ramdisk_addr_r=0x82100000\0" |
| 113 | |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 114 | #if defined(CONFIG_TARGET_COLIBRI_IMX7_NAND) |
Igor Opaniuk | 4d454b0 | 2019-05-29 13:00:39 +0300 | [diff] [blame] | 115 | #define SD_BOOTDEV 0 |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 116 | #elif defined(CONFIG_TARGET_COLIBRI_IMX7_EMMC) |
Igor Opaniuk | 4d454b0 | 2019-05-29 13:00:39 +0300 | [diff] [blame] | 117 | #define SD_BOOTDEV 1 |
| 118 | #endif |
| 119 | |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 120 | #define SD_BOOTCMD \ |
Igor Opaniuk | 4d454b0 | 2019-05-29 13:00:39 +0300 | [diff] [blame] | 121 | "set_sdargs=setenv sdargs root=PARTUUID=${uuid} ro rootwait\0" \ |
| 122 | "sdboot=run setup; run sdfinduuid; run set_sdargs; " \ |
| 123 | "setenv bootargs ${defargs} ${sdargs} " \ |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 124 | "${setupargs} ${vidargs}; echo Booting from MMC/SD card...; " \ |
| 125 | "run m4boot && " \ |
Igor Opaniuk | 4d454b0 | 2019-05-29 13:00:39 +0300 | [diff] [blame] | 126 | "load mmc ${sddev}:${sdbootpart} ${kernel_addr_r} ${kernel_file} && " \ |
| 127 | "load mmc ${sddev}:${sdbootpart} ${fdt_addr_r} " \ |
| 128 | "${soc}-colibri-${fdt_board}.dtb && " \ |
| 129 | "run fdt_fixup && bootz ${kernel_addr_r} - ${fdt_addr_r}\0" \ |
| 130 | "sdbootpart=1\0" \ |
| 131 | "sddev=" __stringify(SD_BOOTDEV) "\0" \ |
| 132 | "sdfinduuid=part uuid mmc ${sddev}:${sdrootpart} uuid\0" \ |
| 133 | "sdrootpart=2\0" |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 134 | |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 135 | |
| 136 | #define NFS_BOOTCMD \ |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 137 | "nfsargs=ip=:::::eth0: root=/dev/nfs\0" \ |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 138 | "nfsboot=run setup; " \ |
| 139 | "setenv bootargs ${defargs} ${nfsargs} " \ |
| 140 | "${setupargs} ${vidargs}; echo Booting from NFS...;" \ |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 141 | "dhcp ${kernel_addr_r} && " \ |
| 142 | "tftp ${fdt_addr_r} ${soc}-colibri${variant}-${fdt_board}.dtb && " \ |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 143 | "run fdt_fixup && bootz ${kernel_addr_r} - ${fdt_addr_r}\0" \ |
| 144 | |
| 145 | #define UBI_BOOTCMD \ |
| 146 | "ubiargs=ubi.mtd=ubi root=ubi0:rootfs rootfstype=ubifs " \ |
| 147 | "ubi.fm_autoconvert=1\0" \ |
| 148 | "ubiboot=run setup; " \ |
| 149 | "setenv bootargs ${defargs} ${ubiargs} " \ |
| 150 | "${setupargs} ${vidargs}; echo Booting from NAND...; " \ |
| 151 | "ubi part ubi && run m4boot && " \ |
| 152 | "ubi read ${kernel_addr_r} kernel && " \ |
| 153 | "ubi read ${fdt_addr_r} dtb && " \ |
| 154 | "run fdt_fixup && bootz ${kernel_addr_r} - ${fdt_addr_r}\0" \ |
| 155 | |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 156 | #if defined(CONFIG_TARGET_COLIBRI_IMX7_NAND) |
Stefan Agner | 7df0ce8 | 2019-01-08 12:42:28 +0100 | [diff] [blame] | 157 | #define CONFIG_BOOTCOMMAND "run ubiboot ; echo ; echo ubiboot failed ; " \ |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 158 | "setenv fdtfile ${soc}-colibri-${fdt_board}.dtb && run distro_bootcmd;" |
| 159 | #define MODULE_EXTRA_ENV_SETTINGS \ |
| 160 | "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \ |
| 161 | UBI_BOOTCMD |
| 162 | #elif defined(CONFIG_TARGET_COLIBRI_IMX7_EMMC) |
Stefan Agner | 7df0ce8 | 2019-01-08 12:42:28 +0100 | [diff] [blame] | 163 | #define CONFIG_BOOTCOMMAND "run emmcboot ; echo ; echo emmcboot failed ; " \ |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 164 | "setenv fdtfile ${soc}-colibri-emmc-${fdt_board}.dtb && run distro_bootcmd;" |
| 165 | #define MODULE_EXTRA_ENV_SETTINGS \ |
| 166 | "variant=-emmc\0" \ |
Igor Opaniuk | b4924a3 | 2019-06-18 14:57:32 +0300 | [diff] [blame] | 167 | EMMC_BOOTCMD \ |
| 168 | EMMC_ANDROID_BOOTCMD |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 169 | #endif |
| 170 | |
| 171 | #if defined(CONFIG_TARGET_COLIBRI_IMX7_NAND) |
| 172 | #define BOOT_TARGET_DEVICES(func) \ |
| 173 | func(MMC, mmc, 0) \ |
| 174 | func(USB, usb, 0) \ |
| 175 | func(DHCP, dhcp, na) |
| 176 | #elif defined(CONFIG_TARGET_COLIBRI_IMX7_EMMC) |
| 177 | #define BOOT_TARGET_DEVICES(func) \ |
| 178 | func(MMC, mmc, 0) \ |
| 179 | func(MMC, mmc, 1) \ |
| 180 | func(USB, usb, 0) \ |
| 181 | func(DHCP, dhcp, na) |
| 182 | #endif |
| 183 | #include <config_distro_bootcmd.h> |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 184 | |
| 185 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 186 | BOOTENV \ |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 187 | MEM_LAYOUT_ENV_SETTINGS \ |
| 188 | NFS_BOOTCMD \ |
| 189 | SD_BOOTCMD \ |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 190 | MODULE_EXTRA_ENV_SETTINGS \ |
Stefan Agner | 7df0ce8 | 2019-01-08 12:42:28 +0100 | [diff] [blame] | 191 | "boot_file=zImage\0" \ |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 192 | "console=ttymxc0\0" \ |
| 193 | "defargs=\0" \ |
| 194 | "fdt_board=eval-v3\0" \ |
| 195 | "fdt_fixup=;\0" \ |
| 196 | "m4boot=;\0" \ |
| 197 | "ip_dyn=yes\0" \ |
| 198 | "kernel_file=zImage\0" \ |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 199 | "setethupdate=if env exists ethaddr; then; else setenv ethaddr " \ |
| 200 | "00:14:2d:00:00:00; fi; tftpboot ${loadaddr} " \ |
| 201 | "${board}/flash_eth.img && source ${loadaddr}\0" \ |
| 202 | "setsdupdate=mmc rescan && setenv interface mmc && " \ |
| 203 | "fatload ${interface} 0:1 ${loadaddr} " \ |
| 204 | "${board}/flash_blk.img && source ${loadaddr}\0" \ |
| 205 | "setup=setenv setupargs " \ |
| 206 | "console=tty1 console=${console}" \ |
Stefan Agner | 6a66748 | 2017-03-09 17:17:54 -0800 | [diff] [blame] | 207 | ",${baudrate}n8 ${memargs} consoleblank=0\0" \ |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 208 | "setupdate=run setsdupdate || run setusbupdate || run setethupdate\0" \ |
| 209 | "setusbupdate=usb start && setenv interface usb && " \ |
| 210 | "fatload ${interface} 0:1 ${loadaddr} " \ |
| 211 | "${board}/flash_blk.img && source ${loadaddr}\0" \ |
| 212 | "splashpos=m,m\0" \ |
| 213 | "videomode=video=ctfb:x:640,y:480,depth:18,pclk:39722,le:48,ri:16,up:33,lo:10,hs:96,vs:2,sync:0,vmode:0\0" \ |
Stefan Agner | 1575b54 | 2017-03-09 17:17:55 -0800 | [diff] [blame] | 214 | "updlevel=2\0" |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 215 | |
| 216 | /* Miscellaneous configurable options */ |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 217 | |
| 218 | #define CONFIG_SYS_MEMTEST_START 0x80000000 |
| 219 | #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + 0x0c000000) |
| 220 | |
| 221 | #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR |
| 222 | #define CONFIG_SYS_HZ 1000 |
| 223 | |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 224 | /* Physical Memory Map */ |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 225 | #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR |
| 226 | |
| 227 | #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM |
| 228 | #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR |
| 229 | #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE |
| 230 | |
| 231 | #define CONFIG_SYS_INIT_SP_OFFSET \ |
| 232 | (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) |
| 233 | #define CONFIG_SYS_INIT_SP_ADDR \ |
| 234 | (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET) |
| 235 | |
Masahiro Yamada | 8cea9b5 | 2017-02-11 22:43:54 +0900 | [diff] [blame] | 236 | /* environment organization */ |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 237 | |
| 238 | #if defined(CONFIG_ENV_IS_IN_MMC) |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 239 | /* Environment in eMMC, before config block at the end of 1st "boot sector" */ |
| 240 | #define CONFIG_ENV_SIZE (8 * 1024) |
| 241 | #define CONFIG_ENV_OFFSET (-CONFIG_ENV_SIZE + \ |
| 242 | CONFIG_TDX_CFG_BLOCK_OFFSET) |
| 243 | #define CONFIG_SYS_MMC_ENV_DEV 0 |
| 244 | #define CONFIG_SYS_MMC_ENV_PART 1 |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 245 | #elif defined(CONFIG_ENV_IS_IN_NAND) |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 246 | #define CONFIG_ENV_SECT_SIZE (128 * 1024) |
Stefan Agner | 1575b54 | 2017-03-09 17:17:55 -0800 | [diff] [blame] | 247 | #define CONFIG_ENV_OFFSET (28 * CONFIG_ENV_SECT_SIZE) |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 248 | #define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE |
| 249 | #endif |
| 250 | |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 251 | #ifdef CONFIG_TARGET_COLIBRI_IMX7_NAND |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 252 | /* NAND stuff */ |
| 253 | #define CONFIG_SYS_MAX_NAND_DEVICE 1 |
| 254 | #define CONFIG_SYS_NAND_BASE 0x40000000 |
| 255 | #define CONFIG_SYS_NAND_5_ADDR_CYCLE |
| 256 | #define CONFIG_SYS_NAND_ONFI_DETECTION |
| 257 | #define CONFIG_SYS_NAND_MX7_GPMI_62_ECC_BYTES |
Stefan Agner | cbd59fe | 2018-08-06 09:19:19 +0200 | [diff] [blame] | 258 | #endif |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 259 | |
| 260 | /* USB Configs */ |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 261 | #define CONFIG_EHCI_HCD_INIT_AFTER_RESET |
| 262 | |
| 263 | #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) |
| 264 | #define CONFIG_MXC_USB_FLAGS 0 |
| 265 | #define CONFIG_USB_MAX_CONTROLLER_COUNT 2 |
| 266 | |
| 267 | #define CONFIG_IMX_THERMAL |
| 268 | |
| 269 | #define CONFIG_USBD_HS |
| 270 | |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 271 | /* USB Device Firmware Update support */ |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 272 | #define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_16M |
| 273 | #define DFU_DEFAULT_POLL_TIMEOUT 300 |
| 274 | |
Igor Opaniuk | f5abe40 | 2019-06-04 00:05:59 +0300 | [diff] [blame] | 275 | #if defined(CONFIG_VIDEO) || defined(CONFIG_DM_VIDEO) |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 276 | #define CONFIG_VIDEO_MXS |
| 277 | #define CONFIG_VIDEO_LOGO |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 278 | #define CONFIG_SPLASH_SCREEN |
| 279 | #define CONFIG_SPLASH_SCREEN_ALIGN |
Stefan Agner | 41f75bb | 2016-07-20 21:27:49 -0700 | [diff] [blame] | 280 | #define CONFIG_BMP_16BPP |
| 281 | #define CONFIG_VIDEO_BMP_RLE8 |
| 282 | #define CONFIG_VIDEO_BMP_LOGO |
| 283 | #endif |
| 284 | |
| 285 | #endif |