blob: 4f33c0e7c9e032b81dacc9a5fa49db5d9c61aebf [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
Peng Fan42219a72020-01-06 16:16:32 +080022int board_mmc_get_env_dev(int devno)
23{
24 return devno;
25}
26
Peng Fana181afe2019-09-16 03:09:55 +000027int 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}