blob: b22a2a6bd15f0bb6d54640c1fd60c23cc7035269 [file] [log] [blame]
Peng Fana181afe2019-09-16 03:09:55 +00001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright 2019 NXP
4 */
5
6#include <common.h>
7
8DECLARE_GLOBAL_DATA_PTR;
9
10int dram_init(void)
11{
12 gd->ram_size = PHYS_SDRAM_SIZE;
13
14 return 0;
15}
16
17int board_init(void)
18{
19 return 0;
20}
21
22int 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}