imx: imx8mm_evk: add board_mmc_get_env_dev
[oweals/u-boot.git] / board / freescale / imx8mm_evk / imx8mm_evk.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright 2018 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_mmc_get_env_dev(int devno)
23 {
24         return devno;
25 }
26
27 int board_late_init(void)
28 {
29 #ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
30         env_set("board_name", "EVK");
31         env_set("board_rev", "iMX8MM");
32 #endif
33         return 0;
34 }