Commit e6132083 authored by Adrian Negreanu's avatar Adrian Negreanu Committed by Jason Liu

imx8: add board_name and board_rev

Export the board_name and board_rev for these boards:
- 8MQ EVK
- 8QM ARM2
- 8QXP ARM2
- 8QXP MEK

These two variables are used by an autotest u-boot script,
to request the needed BSP files.
Signed-off-by: default avatarAdrian Negreanu <adrian.negreanu@nxp.com>
Reviewed-by: default avatarYe Li <ye.li@nxp.com>
parent 22a5b026
......@@ -225,6 +225,11 @@ int board_late_init(void)
set_wdog_reset(wdog);
#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
setenv("board_name", "EVK");
setenv("board_rev", "iMX8MQ");
#endif
#ifdef CONFIG_ENV_IS_IN_MMC
board_late_mmc_env_init();
#endif
......
......@@ -566,6 +566,11 @@ int mmc_map_to_kernel_blk(int dev_no)
int board_late_init(void)
{
#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
setenv("board_name", "ARM2");
setenv("board_rev", "iMX8QM");
#endif
#ifdef CONFIG_ENV_IS_IN_MMC
board_late_mmc_env_init();
#endif
......
......@@ -555,6 +555,11 @@ int board_mmc_get_env_dev(int devno)
int board_late_init(void)
{
#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
setenv("board_name", "ARM2");
setenv("board_rev", "iMX8QXP");
#endif
#ifdef CONFIG_ENV_IS_IN_MMC
board_late_mmc_env_init();
#endif
......
......@@ -481,6 +481,11 @@ int board_mmc_get_env_dev(int devno)
int board_late_init(void)
{
#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
setenv("board_name", "MEK");
setenv("board_rev", "iMX8QXP");
#endif
#ifdef CONFIG_ENV_IS_IN_MMC
board_late_mmc_env_init();
#endif
......
......@@ -48,6 +48,8 @@
#define CONFIG_SYS_I2C_MXC_I2C2 /* enable I2C bus 2 */
#define CONFIG_SYS_I2C_MXC_I2C3 /* enable I2C bus 3 */
#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
#define CONFIG_POWER
#define CONFIG_POWER_I2C
#define CONFIG_POWER_PFUZE100
......
......@@ -54,6 +54,7 @@
#define CONFIG_PCI_PNP
#define CONFIG_PCI_SCAN_SHOW
#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
/* FUSE command */
#define CONFIG_CMD_FUSE
......
......@@ -45,6 +45,8 @@
#define CONFIG_CMD_PCI_ENUM
#endif
#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
/* FUSE command */
#define CONFIG_CMD_FUSE
......
......@@ -45,6 +45,8 @@
#define CONFIG_CMD_PCI_ENUM
#endif
#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
/* FUSE command */
#define CONFIG_CMD_FUSE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment