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> |
| 7 | |
| 8 | DECLARE_GLOBAL_DATA_PTR; |
| 9 | |
| 10 | int dram_init(void) |
| 11 | { |
| 12 | gd->ram_size = PHYS_SDRAM_SIZE; |
| 13 | |
| 14 | return 0; |
| 15 | } |
| 16 | |
| 17 | int board_init(void) |
| 18 | { |
| 19 | return 0; |
| 20 | } |
| 21 | |
Peng Fan | 42219a7 | 2020-01-06 16:16:32 +0800 | [diff] [blame] | 22 | int board_mmc_get_env_dev(int devno) |
| 23 | { |
| 24 | return devno; |
| 25 | } |
| 26 | |
Peng Fan | a181afe | 2019-09-16 03:09:55 +0000 | [diff] [blame] | 27 | int board_late_init(void) |
| 28 | { |
| 29 | #ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG |
| 30 | env_set("board_name", "DDR4 EVK"); |
| 31 | env_set("board_rev", "iMX8MN"); |
| 32 | #endif |
| 33 | return 0; |
| 34 | } |