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