]> code.ossystems Code Review - meta-freescale.git/commitdiff
linux-imx: add clock patch for revision T0 1.0 of i.MX6Q
authorGary Bisson <bisson.gary@gmail.com>
Thu, 4 Dec 2014 02:23:56 +0000 (18:23 -0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 4 Dec 2014 11:16:09 +0000 (09:16 -0200)
The post dividers do not work on i.MX6Q rev T0 1.0 so they must be fixed
to 1. As the table index was wrong, a divider a of 4 could still be
requested which implied the clock not to be set properly. This is the
root cause of the HDMI not working at high resolution on rev T0 1.0 of
the SoC, giving the following error:
mxc_sdc_fb fb.27: timeout when waiting for flip irq

Signed-off-by: Gary Bisson <bisson.gary@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-arm/recipes-kernel/linux/linux-imx-3.10.31/0001-ARM-clk-imx6q-fix-video-divider-for-revision-1.0-of-.patch [new file with mode: 0644]
meta-fsl-arm/recipes-kernel/linux/linux-imx_3.10.31.bb

diff --git a/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.10.31/0001-ARM-clk-imx6q-fix-video-divider-for-revision-1.0-of-.patch b/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.10.31/0001-ARM-clk-imx6q-fix-video-divider-for-revision-1.0-of-.patch
new file mode 100644 (file)
index 0000000..820ce68
--- /dev/null
@@ -0,0 +1,35 @@
+From 0e981452d7130513e796c1c3d7348905c0d00dce Mon Sep 17 00:00:00 2001
+From: Gary Bisson <bisson.gary@gmail.com>
+Date: Tue, 2 Dec 2014 22:11:14 -0800
+Subject: [PATCH] ARM: clk-imx6q: fix video divider for revision 1.0 of i.MX6q
+
+As post dividers do not work on i.MX6Q revision 1.0 they must be fixed
+to 1. As the table index was wrong, a divider a of 4 could still be
+requested which implied the clock not to be set properly. This is the
+root cause of the HDMI not working at high resolution on T1.0 version of
+the SoC, giving the following error:
+mxc_sdc_fb fb.27: timeout when waiting for flip irq
+
+Upstream-Status: Pending
+
+Signed-off-by: Gary Bisson <bisson.gary@gmail.com>
+---
+ arch/arm/mach-imx/clk-imx6q.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/arch/arm/mach-imx/clk-imx6q.c b/arch/arm/mach-imx/clk-imx6q.c
+index 25734ed..34e1616f 100644
+--- a/arch/arm/mach-imx/clk-imx6q.c
++++ b/arch/arm/mach-imx/clk-imx6q.c
+@@ -312,7 +312,7 @@ static void __init imx6q_clocks_init(struct device_node *ccm_node)
+               post_div_table[1].div = 1;
+               post_div_table[2].div = 1;
+               video_div_table[1].div = 1;
+-              video_div_table[2].div = 1;
++              video_div_table[3].div = 1;
+       };
+       /*                   type                               name         parent_name  base     div_mask */
+-- 
+2.1.3
+
index 10ad2f0711d52b82f763014cc46d244ddfbae8cb..8084096a297af440779cc474a63b66e719c8901e 100644 (file)
@@ -14,4 +14,6 @@ SRCBRANCH = "imx_3.10.31_1.1.0_beta"
 SRCREV = "94a7e472c47b800c001c0a5d17bb2f14a13e1980"
 LOCALVERSION = "-1.1.0_beta"
 
+SRC_URI += "file://0001-ARM-clk-imx6q-fix-video-divider-for-revision-1.0-of-.patch"
+
 COMPATIBLE_MACHINE = "(mx6)"