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
28 lines
525 B
C
28 lines
525 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (c) 2019 SiFive, Inc
|
|
* Copyright (c) 2021 Tianrui Wei
|
|
*
|
|
*
|
|
* Authors:
|
|
* Pragnesh Patel <pragnesh.patel@sifive.com>
|
|
* Tianrui Wei <tianrui-wei@outlook.com>
|
|
*/
|
|
#include <init.h>
|
|
#include <configs/openpiton-riscv64.h>
|
|
#include <dm.h>
|
|
#include <spl.h>
|
|
|
|
#ifdef CONFIG_SPL
|
|
void board_boot_order(u32 *spl_boot_list)
|
|
{
|
|
u8 i;
|
|
u32 boot_devices[] = {
|
|
BOOT_DEVICE_MMC1,
|
|
};
|
|
|
|
for (i = 0; i < ARRAY_SIZE(boot_devices); i++)
|
|
spl_boot_list[i] = boot_devices[i];
|
|
}
|
|
#endif
|