Peng Fan | c47e09d | 2019-12-30 17:46:21 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
2 | /* | ||||
3 | * Copyright 2019 NXP | ||||
4 | */ | ||||
5 | |||||
Peng Fan | 777ca3e | 2025-01-09 11:29:05 +0800 | [diff] [blame] | 6 | #include <asm/arch/sys_proto.h> |
Simon Glass | ed38aef | 2020-05-10 11:40:03 -0600 | [diff] [blame] | 7 | #include <env.h> |
Peng Fan | c47e09d | 2019-12-30 17:46:21 +0800 | [diff] [blame] | 8 | |
Peng Fan | 4f0c97b | 2020-12-25 16:16:34 +0800 | [diff] [blame] | 9 | int board_init(void) |
10 | { | ||||
Fabio Estevam | 1fab6f5 | 2023-10-19 18:51:12 -0300 | [diff] [blame] | 11 | return 0; |
Peng Fan | 4f0c97b | 2020-12-25 16:16:34 +0800 | [diff] [blame] | 12 | } |
Peng Fan | c47e09d | 2019-12-30 17:46:21 +0800 | [diff] [blame] | 13 | |
14 | int board_late_init(void) | ||||
15 | { | ||||
Peng Fan | 777ca3e | 2025-01-09 11:29:05 +0800 | [diff] [blame] | 16 | #if CONFIG_IS_ENABLED(ENV_IS_IN_MMC) |
17 | board_late_mmc_env_init(); | ||||
18 | #endif | ||||
19 | |||||
Peng Fan | c47e09d | 2019-12-30 17:46:21 +0800 | [diff] [blame] | 20 | #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 | } |