Import USB DFU programmer from ST
This commit imports, squashes and fixes up the following commits by ST:

110dad1 stm32mp1: add USB programmer
d6c7f1f plat/st: initialize dev_status with correct status
78ddbb9 io: io_programmer_st_usb: improve timeout management in usb loop

It excludes the code for the UART programmer.
I used it this way:

make CROSS_COMPILE=arm-none-eabi- PLAT=stm32mp1 ARCH=aarch32 ARM_ARCH_MAJOR=7 AARCH32_SP=sp_min STM32MP_SDMMC=1 STM32MP_EMMC=1 STM32MP_USB_PROGRAMMER=1 DTB_FILE_NAME=stm32mp157c-dk2.dtb DEBUG=1
dfu-util -d 0483:df11 -a 1 -D build/stm32mp1/debug/tf-a-stm32mp157c-dk2.stm32
dfu-util -d 0483:df11 -a 0 -D build/stm32mp1/debug/tf-a-stm32mp157c-dk2.stm32
dfu-util -d 0483:df11 -a 3 -D ~/barebox/images/barebox-stm32mp157c-seeed-odyssey.img
dfu-util -d 0483:df11 -e -a 0
1 parent a80e6f4 commit 3ec0ddd9f99129b9ad437877f476049cf10e34a8
@Jookia Jookia authored on 31 Dec 2020
Showing 23 changed files
View
drivers/st/clk/stm32mp1_clk.c
View
drivers/st/io/io_programmer_st_usb.c 0 → 100644
View
drivers/st/usb_dwc2/usb_dwc2.c 0 → 100644
View
fdts/stm32mp15xx-dkx.dtsi
View
include/drivers/io/io_storage.h
View
include/drivers/st/io_programmer.h 0 → 100644
View
include/drivers/st/io_programmer_st_usb.h 0 → 100644
View
include/drivers/st/usb_dwc2.h 0 → 100644
View
include/lib/usb/usb_core.h 0 → 100644
View
include/lib/usb/usb_st_dfu.h 0 → 100644
View
lib/usb/usb_core.c 0 → 100644
View
lib/usb/usb_st_dfu.c 0 → 100644
View
plat/st/common/bl2_io_storage.c
View
plat/st/stm32mp1/bl2_plat_setup.c
View
plat/st/stm32mp1/include/boot_api.h
View
plat/st/stm32mp1/include/platform_def.h
View
plat/st/stm32mp1/include/stm32mp1_private.h
View
plat/st/stm32mp1/include/stm32mp1_usb_desc.h 0 → 100644
View
plat/st/stm32mp1/include/usb_ctx.h 0 → 100644
View
plat/st/stm32mp1/platform.mk
View
plat/st/stm32mp1/stm32mp1_def.h
View
plat/st/stm32mp1/stm32mp1_private.c
View
plat/st/stm32mp1/stm32mp1_usb_desc.c 0 → 100644