command: Remove the cmd_tbl_t typedef
[oweals/u-boot.git] / board / freescale / imx8mn_evk / imx8mn_evk.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright 2019 NXP
4  */
5
6 #include <common.h>
7 #include <env.h>
8 #include <init.h>
9
10 DECLARE_GLOBAL_DATA_PTR;
11
12 int dram_init(void)
13 {
14         gd->ram_size = PHYS_SDRAM_SIZE;
15
16         return 0;
17 }
18
19 int board_init(void)
20 {
21         return 0;
22 }
23
24 int board_mmc_get_env_dev(int devno)
25 {
26         return devno;
27 }
28
29 int 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 }