summaryrefslogtreecommitdiff
path: root/configs/am62x_a53_usbdfu.config
AgeCommit message (Collapse)Author
2025-07-24treewide: Remove empty board_init() function from all boardsSam Protsenko
Commit 86acdce2ba88 ("common: add config for board_init() call") introduced CONFIG_BOARD_INIT option. This option can be disabled for the boards where board_init() function is not needed. Remove empty board_init() calls for all boards where it's possible, and disable CONFIG_BOARD_INIT in all related defconfigs. This cleanup was made semi-automatically using these scripts: [1]. No functional change, but the binary size for the modified boards is reduced a bit. [1] https://github.com/joe-skb7/uboot-convert-scripts/tree/master/remove-board-init Signed-off-by: Sam Protsenko <[email protected]> Tested-by: Adam Ford <[email protected]> #imx8mm_beacon Tested-by: Bryan Brattlof <[email protected]> Acked-by: Peng Fan <[email protected]> #NXP boards
2025-06-26configs: j7*/*am62*: Remove malloc size overwrite at config level.Udit Kumar
Use default value of malloc size coming from Kconfig, instead of board specific override. Signed-off-by: Udit Kumar <[email protected]> Reviewed-by: Tom Rini <[email protected]>
2025-02-20Merge patch series "AM62,AM62-LP,AM62A,AM62P,J722S: USB DFU and UMS"Tom Rini
Siddharth Vadapalli <[email protected]> says: This series enables USB DFU and USB Mass Storage functionality for AM62, AM62-LP, AM62A, AM62P and J722S SoCs. Link: https://lore.kernel.org/r/[email protected]
2025-02-20configs: am62x_a53_usbdfu: enable USB MASS Storage commandSiddharth Vadapalli
The USB0 instance of USB on AM62 SoC when configured to operate in the Gadget mode of operation can be used to mount an MMC/SD card on the USB Host. Hence, enable support for the USB Mass Storage (ums) command. Since this config fragment corresponds to USB DFU functionality which configures the USB Controller in Gadget mode of operation, other SoCs which include this fragment for DFU functionality can make use of the USB MASS Storage functionality as well. Signed-off-by: Siddharth Vadapalli <[email protected]>
2025-01-21configs: am62x_evm_*: Set DFU buffer size to 256kJonathan Humphreys
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: dfc2dff5a844 ("configs: am62x_evm_*: Enable USB and DFU support") Signed-off-by: Jonathan Humphreys <[email protected]> Reviewed-by: Roger Quadros <[email protected]> Reviewed-by: Mattijs Korpershoek <[email protected]>
2024-12-12configs: am62x_evm_*: Fix USB DFU configurationRoger Quadros
CONFIG_USB_XHCI_DWC3 is not required for AM62x as the XHCI driver is registered through the dwc3-generic driver. CONFIG_USB_XHCI_DWC3 causes problems by hijacking the USB controller even if it is not set for Host mode in device tree. 'dm tree' output after 'usb start' is fixed from simple_bus 5 [ + ] dwc3-am62 | |-- dwc3-usb@f900000 usb_gadget 0 [ ] dwc3-generic-periphe | | |-- usb@31000000 usb 0 [ + ] xhci-dwc3 | | `-- usb@31000000 usb_hub 0 [ + ] usb_hub | | `-- usb_hub simple_bus 6 [ + ] dwc3-am62 | |-- dwc3-usb@f910000 usb 1 [ + ] dwc3-generic-host | | |-- usb@31100000 usb_hub 1 [ + ] usb_hub | | | `-- usb_hub usb 1 [ + ] xhci-dwc3 | | `-- usb@31100000 usb_hub 2 [ + ] usb_hub | | `-- usb_hub [notice that 'xhci-dwc3' and 'usb_hub' drivers are probed for both USB instances although the first instance is supposed to be 'peripheral' only] to simple_bus 5 [ ] dwc3-am62 | |-- dwc3-usb@f900000 usb_gadget 0 [ ] dwc3-generic-periphe | | `-- usb@31000000 simple_bus 6 [ + ] dwc3-am62 | |-- dwc3-usb@f910000 usb 1 [ + ] dwc3-generic-host | | `-- usb@31100000 usb_hub 0 [ + ] usb_hub | | `-- usb_hub Fixes: dfc2dff5a844 ("configs: am62x_evm_*: Enable USB and DFU support") Signed-off-by: Roger Quadros <[email protected]> Reviewed-by: Siddharth Vadapalli <[email protected]>
2024-05-15configs: am62x_evm_*: Enable USB and DFU supportSjoerd Simons
Provide config fragments to enable USB host as well as USB gadget and DFU support for a53 and r5. This relevant fragment is included into the am62x EVM a53 defconfig. For the r5, due to the smaller available size, the config fragment also disables support for persistent storage to free up space for USB support. This fragment needs to be included is DFU booting is desired. The CONFIG_DFU_SF option is placed in the defconfig rather than the fragment as this is known not to be supported on all boards that can support DFU. Signed-off-by: Sjoerd Simons <[email protected]> Signed-off-by: Martyn Welch <[email protected]> Reviewed-by: Mattijs Korpershoek <[email protected]>