[072/126] ARM: clk-imx35: Bugfix iomux clock

Steven Rostedt
2013-05-07T04:31:49Z

[-- Attachment #1: 0072-ARM-clk-imx35-Bugfix-iomux-clock.patch --]
[-- Type: text/plain, Size: 1462 bytes --]

3.6.11.3 stable review patch.
If anyone has any objections, please let me know.

------------------

From: Markus Pargmann <mpa@pengutronix.de>

[ Upstream commit cab1e0a36c9dd0b0671fb84197ed294513f5adc1 ]

This patch enables iomuxc_gate clock. It is necessary to be able to
reconfigure iomux pads. Without this clock enabled, the
clk_disable_unused function will disable this clock and the iomux pads
are not configurable anymore. This happens at every boot. After a reboot
(watchdog system reset) the clock is not enabled again, so all iomux pad
reconfigurations in boot code are without effect.

The iomux pads should be always configurable, so this patch always
enables it.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Cc: stable@vger.kernel.org
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
arch/arm/mach-imx/clk-imx35.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-imx/clk-imx35.c b/arch/arm/mach-imx/clk-imx35.c
index 2941d7f..0c6061d 100644
--- a/arch/arm/mach-imx/clk-imx35.c
+++ b/arch/arm/mach-imx/clk-imx35.c
@@ -261,6 +261,7 @@ int __init mx35_clocks_init()
clk_prepare_enable(clk[iim_gate]);
clk_prepare_enable(clk[emi_gate]);
clk_prepare_enable(clk[max_gate]);
+ clk_prepare_enable(clk[iomuxc_gate]);

/*
* SCC is needed to boot via mmc after a watchdog reset. The clock code
--
1.7.10.4