Commit 86acdce2ba ("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 <semen.protsenko@linaro.org>
Tested-by: Adam Ford <aford173@gmail.com> #imx8mm_beacon
Tested-by: Bryan Brattlof <bb@ti.com>
Acked-by: Peng Fan <peng.fan@nxp.com> #NXP boards
30 lines
737 B
Plaintext
30 lines
737 B
Plaintext
# CONFIG_BOARD_INIT is not set
|
|
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_CMD_USB_MASS_STORAGE=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
|