video: mxsfb: add support for i.MXRT
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Wed, 8 Apr 2020 15:10:14 +0000 (17:10 +0200)
committerStefano Babic <sbabic@denx.de>
Sat, 18 Apr 2020 10:54:43 +0000 (12:54 +0200)
Add support for i.MXRT by adding CONFIG_IMXRT in register structure and
adding .compatible = "fsl,imxrt-lcdif".

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
arch/arm/include/asm/arch-imxrt/imx-regs.h
arch/arm/include/asm/mach-imx/regs-lcdif.h
drivers/video/mxsfb.c

index 4f1d439f6f4275e3ba9c78f12ab39e4b352fa167..44c95dcd11430c636070fdaae776834834a9062c 100644 (file)
 
 #define ANATOP_BASE_ADDR       0x400d8000
 
+#define MXS_LCDIF_BASE         0x402b8000
+
+#if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
+#include <asm/mach-imx/regs-lcdif.h>
+#endif
+
 #endif /* __ASM_ARCH_IMX_REGS_H__ */
index b4c430a35ccb43b9e1af108de68f8fc11453a266..58746387966188b15a7a1f94155c63b989088486 100644 (file)
@@ -22,7 +22,7 @@ struct mxs_lcdif_regs {
        defined(CONFIG_MX6SL) || defined(CONFIG_MX6SLL) || \
        defined(CONFIG_MX6UL) || defined(CONFIG_MX6ULL) || \
        defined(CONFIG_MX7) || defined(CONFIG_MX7ULP) || \
-       defined(CONFIG_IMX8M)
+       defined(CONFIG_IMX8M) || defined(CONFIG_IMXRT)
        mxs_reg_32(hw_lcdif_ctrl2)              /* 0x20 */
 #endif
        mxs_reg_32(hw_lcdif_transfer_count)     /* 0x20/0x30 */
@@ -49,7 +49,7 @@ struct mxs_lcdif_regs {
        mxs_reg_32(hw_lcdif_csc_coeffctrl2)     /* 0x130 */
        mxs_reg_32(hw_lcdif_csc_coeffctrl3)     /* 0x140 */
        mxs_reg_32(hw_lcdif_csc_coeffctrl4)     /* 0x150 */
-       mxs_reg_32(hw_lcdif_csc_offset) /* 0x160 */
+       mxs_reg_32(hw_lcdif_csc_offset)         /* 0x160 */
        mxs_reg_32(hw_lcdif_csc_limit)          /* 0x170 */
 
 #if defined(CONFIG_MX23)
@@ -61,7 +61,7 @@ struct mxs_lcdif_regs {
        defined(CONFIG_MX6SL) || defined(CONFIG_MX6SLL) || \
        defined(CONFIG_MX6UL) || defined(CONFIG_MX6ULL) || \
        defined(CONFIG_MX7) || defined(CONFIG_MX7ULP) || \
-       defined(CONFIG_IMX8M)
+       defined(CONFIG_IMX8M) || defined(CONFIG_IMXRT)
        mxs_reg_32(hw_lcdif_crc_stat)           /* 0x1a0 */
 #endif
        mxs_reg_32(hw_lcdif_lcdif_stat)         /* 0x1d0/0x1b0 */
index f21f8247d9adcc2c6dfafbc2cac8bad637087535..6826ba3d1b0ffd9a5c22a0bda9cb35bb71dc93d7 100644 (file)
@@ -440,6 +440,7 @@ static const struct udevice_id mxs_video_ids[] = {
        { .compatible = "fsl,imx23-lcdif" },
        { .compatible = "fsl,imx28-lcdif" },
        { .compatible = "fsl,imx7ulp-lcdif" },
+       { .compatible = "fsl,imxrt-lcdif" },
        { /* sentinel */ }
 };