summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2020-01-15 22:33:39 -0800
committerYe Li <ye.li@nxp.com>2020-01-15 23:45:42 -0800
commit914a03e8d2f069cfd558f853843b875d097100f8 (patch)
tree8ca72a35dc69afab05ed05de9ef3a7d326ac73e0 /board
parent30ac5c4931e992fba5aef84ebbe321dfec24f24d (diff)
MLK-23241 imx8dx_mek: Add iMX8DX MEK board support
iMX8DX MEK board has similar design with 8QXP MEK. The major changes are 1. DDR changed to 16bits 1GB DDR part 2. USB3.0 is removed and only support OTG on typec port. (No SW change needed) This patch adds new defconfigs and DTS file for this new board. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 5efb4275f6cfefb5dd342f2e498834b40b989883)
Diffstat (limited to 'board')
-rw-r--r--board/freescale/imx8qxp_mek/Kconfig2
-rw-r--r--board/freescale/imx8qxp_mek/imx8qxp_mek.c15
2 files changed, 16 insertions, 1 deletions
diff --git a/board/freescale/imx8qxp_mek/Kconfig b/board/freescale/imx8qxp_mek/Kconfig
index b67300d816..796b90c880 100644
--- a/board/freescale/imx8qxp_mek/Kconfig
+++ b/board/freescale/imx8qxp_mek/Kconfig
@@ -1,4 +1,4 @@
-if TARGET_IMX8QXP_MEK
+if TARGET_IMX8QXP_MEK || TARGET_IMX8DX_MEK
config SYS_BOARD
default "imx8qxp_mek"
diff --git a/board/freescale/imx8qxp_mek/imx8qxp_mek.c b/board/freescale/imx8qxp_mek/imx8qxp_mek.c
index 262beb67db..f8af56494d 100644
--- a/board/freescale/imx8qxp_mek/imx8qxp_mek.c
+++ b/board/freescale/imx8qxp_mek/imx8qxp_mek.c
@@ -349,7 +349,11 @@ static void board_gpio_init(void)
int checkboard(void)
{
+#ifdef CONFIG_TARGET_IMX8DX_MEK
+ puts("Board: iMX8DX MEK\n");
+#else
puts("Board: iMX8QXP MEK\n");
+#endif
print_bootinfo();
@@ -657,8 +661,12 @@ int board_late_init(void)
#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
env_set("board_name", "MEK");
+#ifdef CONFIG_TARGET_IMX8DX_MEK
+ env_set("board_rev", "iMX8DX");
+#else
env_set("board_rev", "iMX8QXP");
#endif
+#endif
env_set("sec_boot", "no");
#ifdef CONFIG_AHAB_BOOT
@@ -669,10 +677,17 @@ int board_late_init(void)
m4_boot = check_m4_parts_boot();
if (fdt_file && !strcmp(fdt_file, "undefined")) {
+#ifdef CONFIG_TARGET_IMX8DX_MEK
+ if (m4_boot)
+ env_set("fdt_file", "fsl-imx8dx-mek-rpmsg.dtb");
+ else
+ env_set("fdt_file", "fsl-imx8dx-mek.dtb");
+#else
if (m4_boot)
env_set("fdt_file", "fsl-imx8qxp-mek-rpmsg.dtb");
else
env_set("fdt_file", "fsl-imx8qxp-mek.dtb");
+#endif
}
#ifdef CONFIG_ENV_IS_IN_MMC