[U-Boot] [PATCH] Enable HDMI on i.MX6 without VPU

Nikolay Petukhov nikolaypetukhov at gmail.com
Tue Oct 10 14:27:36 UTC 2017


Hi, all

This patch enables HDMI on CPU without VPU.
A similar patch for the mainline kernel:
https://patchwork.kernel.org/patch/9874831/
Tested on MCIMX6Q4AVT10AD.


Signed-off-by: Nikolay Petukhov <nikolaypetukhov at gmail.com>
Cc: Stefano Babic sbabic at denx.de
---
 arch/arm/mach-imx/mx6/soc.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/mach-imx/mx6/soc.c b/arch/arm/mach-imx/mx6/soc.c
index b724668..8b976f7 100644
--- a/arch/arm/mach-imx/mx6/soc.c
+++ b/arch/arm/mach-imx/mx6/soc.c
@@ -655,6 +655,11 @@ void imx_setup_hdmi(void)
     int reg, count;
     u8 val;

+    /* Turn on MIPI core cfg clock */
+    reg = readl(&mxc_ccm->CCGR3);
+    reg |= MXC_CCM_CCGR3_MIPI_CORE_CFG_MASK;
+    writel(reg, &mxc_ccm->CCGR3);
+
     /* Turn on HDMI PHY clock */
     reg = readl(&mxc_ccm->CCGR2);
     reg |=  MXC_CCM_CCGR2_HDMI_TX_IAHBCLK_MASK|
-- 
2.7.4



-- 
Nikolay


More information about the U-Boot mailing list