mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-12-22 18:01:29 +01:00
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 <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
32 lines
478 B
C
32 lines
478 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright 2025 NXP
|
|
*/
|
|
|
|
#include <asm/arch/clock.h>
|
|
#include <asm/gpio.h>
|
|
#include <asm/mach-imx/sys_proto.h>
|
|
|
|
int board_early_init_f(void)
|
|
{
|
|
/* UART1: A55, UART2: M33, UART3: M7 */
|
|
init_uart_clk(0);
|
|
|
|
return 0;
|
|
}
|
|
|
|
int board_late_init(void)
|
|
{
|
|
if (IS_ENABLED(CONFIG_ENV_IS_IN_MMC))
|
|
board_late_mmc_env_init();
|
|
|
|
return 0;
|
|
}
|
|
|
|
int board_phys_sdram_size(phys_size_t *size)
|
|
{
|
|
*size = PHYS_SDRAM_SIZE + PHYS_SDRAM_2_SIZE;
|
|
|
|
return 0;
|
|
}
|