blob: 2ff067bc6752135f323398e620e37ef11d1b91bb [file] [log] [blame]
Peng Fanc47e09d2019-12-30 17:46:21 +08001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright 2019 NXP
4 */
5
Peng Fan777ca3e2025-01-09 11:29:05 +08006#include <asm/arch/sys_proto.h>
Simon Glassed38aef2020-05-10 11:40:03 -06007#include <env.h>
Peng Fanc47e09d2019-12-30 17:46:21 +08008
Peng Fan4f0c97b2020-12-25 16:16:34 +08009int board_init(void)
10{
Fabio Estevam1fab6f52023-10-19 18:51:12 -030011 return 0;
Peng Fan4f0c97b2020-12-25 16:16:34 +080012}
Peng Fanc47e09d2019-12-30 17:46:21 +080013
14int board_late_init(void)
15{
Peng Fan777ca3e2025-01-09 11:29:05 +080016#if CONFIG_IS_ENABLED(ENV_IS_IN_MMC)
17 board_late_mmc_env_init();
18#endif
19
Peng Fanc47e09d2019-12-30 17:46:21 +080020#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
21 env_set("board_name", "EVK");
22 env_set("board_rev", "iMX8MP");
23#endif
24
25 return 0;
26}