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 #include <asm/global_data.h> 10 11 DECLARE_GLOBAL_DATA_PTR; 12 board_init(void)13int board_init(void) 14 { 15 return 0; 16 } 17 board_mmc_get_env_dev(int devno)18int board_mmc_get_env_dev(int devno) 19 { 20 return devno; 21 } 22 board_late_init(void)23int 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 } 31