MLK-17404-4 arch: arm: Adding support for i.MX8M display
authorOliver Brown <oliver.brown@nxp.com>
Mon, 29 Jan 2018 20:19:20 +0000 (14:19 -0600)
committerOliver Brown <oliver.brown@nxp.com>
Tue, 13 Feb 2018 13:39:14 +0000 (07:39 -0600)
Adding Display support for splash screen.

Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
arch/arm/imx-common/Makefile
arch/arm/imx-common/cpu.c
arch/arm/imx-common/video.c
arch/arm/include/asm/imx-common/video.h

index ac5537d..6a1639d 100644 (file)
@@ -14,6 +14,7 @@ ifeq ($(SOC),$(filter $(SOC),imx8m))
 obj-$(CONFIG_IMX_BOOTAUX) += imx_bootaux.o
 obj-$(CONFIG_SYS_I2C_MXC) += i2c-mxv7.o
 obj-$(CONFIG_SECURE_BOOT) += hab.o
+obj-$(CONFIG_IMX_VIDEO_SKIP) += video.o
 obj-y += cpu.o
 endif
 
index 1ef0c4c..e798ee6 100644 (file)
@@ -18,6 +18,9 @@
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/crm_regs.h>
+#if defined(CONFIG_VIDEO_IMXDCSS)
+#include <asm/arch/video_common.h>
+#endif
 #include <imx_thermal.h>
 #include <ipu_pixfmt.h>
 #include <thermal.h>
@@ -325,6 +328,9 @@ void arch_preboot_os(void)
 #if defined(CONFIG_VIDEO_MXS)
        lcdif_power_down();
 #endif
+#if defined(CONFIG_VIDEO_IMXDCSS)
+       imx8m_fb_disable();
+#endif
 }
 
 #ifndef CONFIG_IMX8M
index 7eed32c..a582487 100644 (file)
@@ -1,5 +1,6 @@
 /*
  * Copyright (C) 2016 Freescale Semiconductor, Inc.
+ * Copyright 2017-2018 NXP
  *
  * SPDX-License-Identifier:    GPL-2.0+
  */
@@ -42,6 +43,9 @@ int board_video_skip(void)
 #elif defined(CONFIG_VIDEO_IMXDPUV1)
                ret = imxdpuv1_fb_init(&displays[i].mode, displays[i].bus,
                                        displays[i].pixfmt);
+#elif defined(CONFIG_VIDEO_IMXDCSS)
+               ret = imx8m_fb_init(&displays[i].mode, displays[i].bus,
+                                       displays[i].pixfmt);
 #elif defined(CONFIG_VIDEO_MXS)
                ret = mxs_lcd_panel_setup(displays[i].mode,
                                        displays[i].pixfmt,
index 36147fe..ca626ce 100644 (file)
@@ -1,5 +1,6 @@
 /*
  * Copyright (C) 2016 Freescale Semiconductor, Inc.
+ * Copyright 2017-2018 NXP
  *
  * SPDX-License-Identifier:    GPL-2.0+
  */
@@ -15,6 +16,8 @@
 #include <asm/arch/video_common.h>
 #elif defined(CONFIG_VIDEO_MXS)
 #include <mxsfb.h>
+#elif defined(CONFIG_VIDEO_IMXDCSS)
+#include <asm/arch/video_common.h>
 #endif
 
 struct display_info_t {