verdin-am62: add DFU, USB and UUU fastboot support

Enable USB host as well as USB gadget and DFU support for a53 and r5
configs. Also, enable UUU fastboot support to download files with
the UUU tool from a53.

Additionally, configure usb0 to peripheral mode and add extra
environment for DFU use.

Signed-off-by: Vitor Soares <vitor.soares@toradex.com>
Reviewed-by: Francesco Dolcini <francesco.dolcini@toradex.com>
This commit is contained in:
Vitor Soares
2024-07-04 16:49:32 +01:00
committed by Tom Rini
parent 902d8ee94c
commit defe30a78b
4 changed files with 66 additions and 1 deletions

View File

@@ -35,9 +35,18 @@
""
#endif /* CONFIG_TARGET_VERDIN_AM62_A53 */
#define EXTRA_ENV_DFUARGS \
"dfu_alt_info_ram=" \
"tispl.bin ram 0x80080000 0x200000;" \
"u-boot.img ram 0x81000000 0x400000;" \
"loadaddr ram " __stringify(CONFIG_SYS_LOAD_ADDR) " 0x80000;" \
"scriptaddr ram " __stringify(SCRIPTADDR) " 0x80000;" \
"ramdisk_addr_r ram " __stringify(RAMDISK_ADDR_R) " 0x8000000\0"
/* Incorporate settings into the U-Boot environment */
#define CFG_EXTRA_ENV_SETTINGS \
BOOTENV \
EXTRA_ENV_DFUARGS \
MEM_LAYOUT_ENV_SETTINGS \
"boot_script_dhcp=boot.scr\0" \
"console=ttyS2\0" \