blob: 9a0a0488bf4f6cf0e4fa95658c3ebd94d5b9ede5 [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>
Simon Glass3ba929a2020-10-30 21:38:53 -06009#include <asm/global_data.h>
Peng Fana181afe2019-09-16 03:09:55 +000010
11DECLARE_GLOBAL_DATA_PTR;
12
Peng Fana181afe2019-09-16 03:09:55 +000013int board_init(void)
14{
15 return 0;
16}
17
Peng Fan42219a72020-01-06 16:16:32 +080018int board_mmc_get_env_dev(int devno)
19{
20 return devno;
21}
22
Peng Fana181afe2019-09-16 03:09:55 +000023int board_late_init(void)
24{
25#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
26 env_set("board_name", "DDR4 EVK");
27 env_set("board_rev", "iMX8MN");
28#endif
29 return 0;
30}