diff options
author | Adrian Negreanu <adrian.negreanu@nxp.com> | 2017-09-11 16:51:41 +0300 |
---|---|---|
committer | Adrian Negreanu <adrian.negreanu@nxp.com> | 2017-09-13 17:09:44 +0300 |
commit | 0596078a6b25a3510c4498a0d53a4fc7a70c0e4e (patch) | |
tree | fab05d1ec7bb7600960da2a622a547cca96de649 | |
parent | 55be80ffc6b4dec46d674fecf220c9e39d365aef (diff) |
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: Adrian Negreanu <adrian.negreanu@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
-rw-r--r-- | board/freescale/imx8mq_evk/imx8m_evk.c | 5 | ||||
-rw-r--r-- | board/freescale/imx8qm_arm2/imx8qm_arm2.c | 5 | ||||
-rw-r--r-- | board/freescale/imx8qxp_arm2/imx8qxp_arm2.c | 5 | ||||
-rw-r--r-- | board/freescale/imx8qxp_mek/imx8qxp_mek.c | 5 | ||||
-rw-r--r-- | include/configs/imx8mq_evk.h | 2 | ||||
-rw-r--r-- | include/configs/imx8qm_arm2.h | 1 | ||||
-rw-r--r-- | include/configs/imx8qxp_arm2.h | 2 | ||||
-rw-r--r-- | include/configs/imx8qxp_mek.h | 2 |
8 files changed, 27 insertions, 0 deletions
diff --git a/board/freescale/imx8mq_evk/imx8m_evk.c b/board/freescale/imx8mq_evk/imx8m_evk.c index 14542dc76e..525d0486c6 100644 --- a/board/freescale/imx8mq_evk/imx8m_evk.c +++ b/board/freescale/imx8mq_evk/imx8m_evk.c @@ -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 diff --git a/board/freescale/imx8qm_arm2/imx8qm_arm2.c b/board/freescale/imx8qm_arm2/imx8qm_arm2.c index 2a1457ef9f..20ec7e010b 100644 --- a/board/freescale/imx8qm_arm2/imx8qm_arm2.c +++ b/board/freescale/imx8qm_arm2/imx8qm_arm2.c @@ -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 diff --git a/board/freescale/imx8qxp_arm2/imx8qxp_arm2.c b/board/freescale/imx8qxp_arm2/imx8qxp_arm2.c index 0ee22da545..9536a1fdaf 100644 --- a/board/freescale/imx8qxp_arm2/imx8qxp_arm2.c +++ b/board/freescale/imx8qxp_arm2/imx8qxp_arm2.c @@ -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 diff --git a/board/freescale/imx8qxp_mek/imx8qxp_mek.c b/board/freescale/imx8qxp_mek/imx8qxp_mek.c index 91a2024123..c0641b3a20 100644 --- a/board/freescale/imx8qxp_mek/imx8qxp_mek.c +++ b/board/freescale/imx8qxp_mek/imx8qxp_mek.c @@ -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 diff --git a/include/configs/imx8mq_evk.h b/include/configs/imx8mq_evk.h index f601ff86e9..47b6250f14 100644 --- a/include/configs/imx8mq_evk.h +++ b/include/configs/imx8mq_evk.h @@ -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 diff --git a/include/configs/imx8qm_arm2.h b/include/configs/imx8qm_arm2.h index 4714311251..5492105693 100644 --- a/include/configs/imx8qm_arm2.h +++ b/include/configs/imx8qm_arm2.h @@ -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 diff --git a/include/configs/imx8qxp_arm2.h b/include/configs/imx8qxp_arm2.h index 67988c8bcb..2ef7b75e5b 100644 --- a/include/configs/imx8qxp_arm2.h +++ b/include/configs/imx8qxp_arm2.h @@ -45,6 +45,8 @@ #define CONFIG_CMD_PCI_ENUM #endif +#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG + /* FUSE command */ #define CONFIG_CMD_FUSE diff --git a/include/configs/imx8qxp_mek.h b/include/configs/imx8qxp_mek.h index c9bfce50e4..3c91400f11 100644 --- a/include/configs/imx8qxp_mek.h +++ b/include/configs/imx8qxp_mek.h @@ -45,6 +45,8 @@ #define CONFIG_CMD_PCI_ENUM #endif +#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG + /* FUSE command */ #define CONFIG_CMD_FUSE |