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
38 lines
1003 B
Plaintext
38 lines
1003 B
Plaintext
CONFIG_ARM=y
|
|
CONFIG_TARGET_BCMNS=y
|
|
CONFIG_TEXT_BASE=0x00008000
|
|
CONFIG_SYS_MALLOC_LEN=0x2000000
|
|
CONFIG_SYS_MALLOC_F_LEN=0x8000
|
|
CONFIG_NR_DRAM_BANKS=2
|
|
CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
|
|
CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x00100000
|
|
CONFIG_DEFAULT_DEVICE_TREE="ns-board"
|
|
CONFIG_SYS_LOAD_ADDR=0x00008000
|
|
CONFIG_IDENT_STRING="Broadcom Northstar"
|
|
CONFIG_ENV_VARS_UBOOT_CONFIG=y
|
|
# CONFIG_EFI_LOADER is not set
|
|
# CONFIG_BOOTSTD is not set
|
|
CONFIG_BOOTDELAY=1
|
|
CONFIG_AUTOBOOT_KEYED=y
|
|
CONFIG_AUTOBOOT_PROMPT="Boot Northstar system in %d seconds\n"
|
|
CONFIG_OF_BOARD_SETUP=y
|
|
CONFIG_OF_STDOUT_VIA_ALIAS=y
|
|
CONFIG_USE_BOOTCOMMAND=y
|
|
CONFIG_BOOTCOMMAND="run bootcmd_dlink_dir8xxl"
|
|
CONFIG_DISPLAY_BOARDINFO_LATE=y
|
|
# CONFIG_BOARD_INIT is not set
|
|
CONFIG_HUSH_PARSER=y
|
|
CONFIG_SYS_PROMPT="northstar> "
|
|
CONFIG_CMD_BOOTZ=y
|
|
CONFIG_CMD_SEAMA=y
|
|
CONFIG_CMD_NAND=y
|
|
CONFIG_CMD_CACHE=y
|
|
CONFIG_OF_EMBED=y
|
|
CONFIG_USE_HOSTNAME=y
|
|
CONFIG_HOSTNAME="NS"
|
|
CONFIG_NO_NET=y
|
|
CONFIG_CLK=y
|
|
CONFIG_MTD=y
|
|
CONFIG_DM_MTD=y
|
|
CONFIG_SYS_NAND_ONFI_DETECTION=y
|