From 914a03e8d2f069cfd558f853843b875d097100f8 Mon Sep 17 00:00:00 2001 From: Ye Li Date: Wed, 15 Jan 2020 22:33:39 -0800 Subject: 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 Reviewed-by: Peng Fan (cherry picked from commit 5efb4275f6cfefb5dd342f2e498834b40b989883) --- board/freescale/imx8qxp_mek/Kconfig | 2 +- board/freescale/imx8qxp_mek/imx8qxp_mek.c | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'board/freescale') 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,7 +661,11 @@ 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"); @@ -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 -- cgit v1.2.3