mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-18 02:44:37 +00:00

OSPI flash writing was broken on am62x SKs as the OSPI flash device has a
256k sector size but was set to 20k. This breaks OSPI flash writes because
the current implementation of the SF DFU backend requires that the DFU data
buffer size be the same as the sector erase size, and the USB DFU config
fragment (for both A53 and R5) reduced the size of the DFU data buffer,
presumably so that it can fit into SPL's much smaller heap.
Change the SYS_DFU_DATA_BUF_SIZE to the erase sector size, which still fits
within the post-relocation heap size in SPL.
Fixes: dfc2dff5a8
("configs: am62x_evm_*: Enable USB and DFU support")
Signed-off-by: Jonathan Humphreys <j-humphreys@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
28 lines
708 B
Text
28 lines
708 B
Text
CONFIG_SYS_MALLOC_LEN=0x2000000
|
|
CONFIG_SPL_ENV_SUPPORT=y
|
|
CONFIG_SPL_RAM_SUPPORT=y
|
|
CONFIG_SPL_RAM_DEVICE=y
|
|
CONFIG_SPL_USB_GADGET=y
|
|
CONFIG_SPL_DFU=y
|
|
CONFIG_CMD_DFU=y
|
|
CONFIG_CMD_USB=y
|
|
CONFIG_SYSCON=y
|
|
CONFIG_SPL_SYSCON=y
|
|
CONFIG_DFU_MMC=y
|
|
CONFIG_DFU_RAM=y
|
|
CONFIG_SYS_DFU_DATA_BUF_SIZE=0x40000
|
|
CONFIG_SYS_DFU_MAX_FILE_SIZE=0x800000
|
|
CONFIG_USB=y
|
|
CONFIG_DM_USB_GADGET=y
|
|
CONFIG_SPL_DM_USB_GADGET=y
|
|
CONFIG_USB_XHCI_HCD=y
|
|
CONFIG_USB_DWC3=y
|
|
CONFIG_USB_DWC3_GENERIC=y
|
|
CONFIG_SPL_USB_DWC3_GENERIC=y
|
|
CONFIG_SPL_USB_DWC3_AM62=y
|
|
CONFIG_USB_DWC3_AM62=y
|
|
CONFIG_USB_GADGET=y
|
|
CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments"
|
|
CONFIG_USB_GADGET_VENDOR_NUM=0x0451
|
|
CONFIG_USB_GADGET_PRODUCT_NUM=0x6165
|
|
CONFIG_USB_GADGET_DOWNLOAD=y
|