forked from OERV-BSP/u-boot
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
54 lines
1.3 KiB
Plaintext
54 lines
1.3 KiB
Plaintext
CONFIG_ARM=y
|
|
CONFIG_SKIP_LOWLEVEL_INIT=y
|
|
CONFIG_ARCH_BCMSTB=y
|
|
CONFIG_TEXT_BASE=0x80100000
|
|
CONFIG_SYS_MALLOC_LEN=0xa00000
|
|
CONFIG_SYS_MALLOC_F_LEN=0x400
|
|
CONFIG_TARGET_BCM7445=y
|
|
CONFIG_NR_DRAM_BANKS=3
|
|
CONFIG_ENV_SIZE=0x10000
|
|
CONFIG_ENV_OFFSET=0x1E0000
|
|
CONFIG_ENV_SECT_SIZE=0x10000
|
|
CONFIG_DEFAULT_DEVICE_TREE="bcm7xxx"
|
|
CONFIG_SYS_BOOTM_LEN=0x4000000
|
|
CONFIG_SYS_LOAD_ADDR=0x02000000
|
|
CONFIG_ENV_OFFSET_REDUND=0x1F0000
|
|
# CONFIG_EFI_LOADER is not set
|
|
CONFIG_FIT=y
|
|
CONFIG_FIT_SIGNATURE=y
|
|
CONFIG_BOOTDELAY=1
|
|
CONFIG_USE_PREBOOT=y
|
|
CONFIG_PREBOOT="fdt addr ${fdtcontroladdr};fdt move ${fdtcontroladdr} ${fdtsaveaddr};fdt addr ${fdtsaveaddr};"
|
|
CONFIG_SYS_CBSIZE=512
|
|
CONFIG_SYS_PBSIZE=536
|
|
# CONFIG_BOARD_INIT is not set
|
|
CONFIG_BOARD_LATE_INIT=y
|
|
CONFIG_HUSH_PARSER=y
|
|
CONFIG_SYS_PROMPT="U-Boot>"
|
|
CONFIG_SYS_MAXARGS=32
|
|
CONFIG_CMD_ASKENV=y
|
|
CONFIG_CMD_MMC=y
|
|
CONFIG_CMD_SF_TEST=y
|
|
CONFIG_CMD_SPI=y
|
|
CONFIG_CMD_CACHE=y
|
|
CONFIG_CMD_EXT2=y
|
|
CONFIG_CMD_EXT4=y
|
|
CONFIG_CMD_FS_GENERIC=y
|
|
CONFIG_DOS_PARTITION=y
|
|
CONFIG_ENV_OVERWRITE=y
|
|
CONFIG_ENV_IS_IN_SPI_FLASH=y
|
|
CONFIG_ENV_REDUNDANT=y
|
|
CONFIG_ENV_RELOC_GD_ENV_ADDR=y
|
|
CONFIG_NO_NET=y
|
|
CONFIG_MMC_SDHCI=y
|
|
CONFIG_MMC_SDHCI_BCMSTB=y
|
|
CONFIG_MTD=y
|
|
CONFIG_DM_SPI_FLASH=y
|
|
CONFIG_SPI_FLASH_MACRONIX=y
|
|
CONFIG_SPI_FLASH_STMICRO=y
|
|
CONFIG_DM_SERIAL=y
|
|
CONFIG_SYS_NS16550=y
|
|
CONFIG_SPI=y
|
|
CONFIG_DM_SPI=y
|
|
CONFIG_BCMSTB_SPI=y
|