Browse Source

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>
Adrian Negreanu 3 years ago
parent
commit
f8684dab62
8 changed files with 27 additions and 0 deletions
  1. +5
    -0
      board/freescale/imx8mq_evk/imx8m_evk.c
  2. +5
    -0
      board/freescale/imx8qm_arm2/imx8qm_arm2.c
  3. +5
    -0
      board/freescale/imx8qxp_arm2/imx8qxp_arm2.c
  4. +5
    -0
      board/freescale/imx8qxp_mek/imx8qxp_mek.c
  5. +2
    -0
      include/configs/imx8mq_evk.h
  6. +1
    -0
      include/configs/imx8qm_arm2.h
  7. +2
    -0
      include/configs/imx8qxp_arm2.h
  8. +2
    -0
      include/configs/imx8qxp_mek.h

+ 5
- 0
board/freescale/imx8mq_evk/imx8m_evk.c View File

@ -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


+ 5
- 0
board/freescale/imx8qm_arm2/imx8qm_arm2.c View File

@ -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


+ 5
- 0
board/freescale/imx8qxp_arm2/imx8qxp_arm2.c View File

@ -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


+ 5
- 0
board/freescale/imx8qxp_mek/imx8qxp_mek.c View File

@ -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


+ 2
- 0
include/configs/imx8mq_evk.h View File

@ -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


+ 1
- 0
include/configs/imx8qm_arm2.h View File

@ -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


+ 2
- 0
include/configs/imx8qxp_arm2.h View File

@ -45,6 +45,8 @@
#define CONFIG_CMD_PCI_ENUM
#endif
#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
/* FUSE command */
#define CONFIG_CMD_FUSE


+ 2
- 0
include/configs/imx8qxp_mek.h View File

@ -45,6 +45,8 @@
#define CONFIG_CMD_PCI_ENUM
#endif
#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
/* FUSE command */
#define CONFIG_CMD_FUSE


Loading…
Cancel
Save