ARM: clk-imx6q: fix video divider for rev T0 1.0
authorGary Bisson <bisson.gary@gmail.com>
Wed, 3 Dec 2014 23:03:51 +0000 (15:03 -0800)
committerJiri Slaby <jslaby@suse.cz>
Thu, 29 Jan 2015 14:44:44 +0000 (15:44 +0100)
commit 81ef447950bf0955aca46f4a7617d8ce435cf0ce upstream.

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.

Signed-off-by: Gary Bisson <bisson.gary@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/arm/mach-imx/clk-imx6q.c

index 689f0cf..2eed3cf 100644 (file)
@@ -304,7 +304,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 */