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 | |||||
22 | int board_late_init(void) | ||||
23 | { | ||||
24 | #ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG | ||||
25 | env_set("board_name", "DDR4 EVK"); | ||||
26 | env_set("board_rev", "iMX8MN"); | ||||
27 | #endif | ||||
28 | return 0; | ||||
29 | } |