• Sascha Hauer's avatar
    ARM i.MX51 clock: Fix regression since enabling MIPI/HSP clocks · 69155fd6
    Sascha Hauer authored
    The MIPI/HSP clocks were recently turned on in the i.MX51 clock tree.
    It turned out that the system does not work properly when the MIPI/HSP
    clocks are enabled, but the IPU clock is disabled. This happens when
    IPU support is disabled. In this case the IPU clock gets disabled when
    the clock framework turns off unused clock in a late_initcall. This
    is broken since:
    
    | commit 9a2d4825
    | Author: Sascha Hauer <s.hauer@pengutronix.de>
    | Date:   Tue Jun 5 13:53:32 2012 +0200
    |
    |     ARM i.MX5: switch IPU clk support to devicetree bindings
    |
    |     The i.MX5 clk support has platform based clock bindings for the
    |     IPU. IPU support is devicetree only, so move them over to devicetree
    |     based bindings. Also, enable MIPI clocks which do not have a device
    |     associated with, but still need to be enabled to do graphics on
    |     i.MX51.
    
    This patch fixes this by setting some reserved bits in the CCM as recommended
    in the reference manual.
    Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
    Tested-by: default avatarShawn Guo <shawn.guo@linaro.org>
    69155fd6
clk-imx51-imx53.c 29.5 KB