Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright 2019 NXP |
| 4 | */ |
| 5 | |
| 6 | #include <common.h> |
Simon Glass | ed38aef | 2020-05-10 11:40:03 -0600 | [diff] [blame] | 7 | #include <env.h> |
Simon Glass | 9758973 | 2020-05-10 11:40:02 -0600 | [diff] [blame] | 8 | #include <init.h> |
Simon Glass | 3ba929a | 2020-10-30 21:38:53 -0600 | [diff] [blame] | 9 | #include <asm/global_data.h> |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 10 | |
| 11 | DECLARE_GLOBAL_DATA_PTR; |
| 12 | |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 13 | int board_init(void) |
| 14 | { |
| 15 | return 0; |
| 16 | } |
| 17 | |
Peng Fan | 42219a7 | 2020-01-06 16:16:32 +0800 | [diff] [blame] | 18 | int board_mmc_get_env_dev(int devno) |
| 19 | { |
| 20 | return devno; |
| 21 | } |
| 22 | |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 23 | int board_late_init(void) |
| 24 | { |
| 25 | #ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG |
| 26 | env_set("board_name", "DDR4 EVK"); |
| 27 | env_set("board_rev", "iMX8MN"); |
| 28 | #endif |
| 29 | return 0; |
| 30 | } |