blob: ea02bb75f411c0f5ea0b71ed2d8a90bbe654600e [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>
Simon Glassed38aef2020-05-10 11:40:03 -06007#include <env.h>
Simon Glass97589732020-05-10 11:40:02 -06008#include <init.h>
Peng Fana181afe2019-09-16 03:09:55 +00009
10DECLARE_GLOBAL_DATA_PTR;
11
12int dram_init(void)
13{
14 gd->ram_size = PHYS_SDRAM_SIZE;
15
16 return 0;
17}
18
19int board_init(void)
20{
21 return 0;
22}
23
Peng Fan42219a72020-01-06 16:16:32 +080024int board_mmc_get_env_dev(int devno)
25{
26 return devno;
27}
28
Peng Fana181afe2019-09-16 03:09:55 +000029int 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}