linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] ARM: imx35 clock bugfixes
@ 2013-03-29 15:20 Markus Pargmann
  2013-03-29 15:20 ` [PATCH v2 1/2] ARM: clk-imx35: Bugfix iomux clock Markus Pargmann
  2013-03-29 15:20 ` [PATCH v2 2/2] ARM: imx35 Bugfix admux clock Markus Pargmann
  0 siblings, 2 replies; 3+ messages in thread
From: Markus Pargmann @ 2013-03-29 15:20 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

Two bugfixes which enable needed clocks. In both cases the
first boot worked because the clocks were enabled by default
after powerup. After disabling the unused clocks in the boot
process, some parts were not working anymore and device
init for example after a reboot did not work.

Changes in v2:
- admux clock removed from imx-ssi and attached to imx-audmux by
  registration of admux clock as "audmux"

Regards,

Markus

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v2 1/2] ARM: clk-imx35: Bugfix iomux clock
  2013-03-29 15:20 [PATCH v2 0/2] ARM: imx35 clock bugfixes Markus Pargmann
@ 2013-03-29 15:20 ` Markus Pargmann
  2013-03-29 15:20 ` [PATCH v2 2/2] ARM: imx35 Bugfix admux clock Markus Pargmann
  1 sibling, 0 replies; 3+ messages in thread
From: Markus Pargmann @ 2013-03-29 15:20 UTC (permalink / raw)
  To: linux-arm-kernel

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 at vger.kernel.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 e13a8fa..b95898a 100644
--- a/arch/arm/mach-imx/clk-imx35.c
+++ b/arch/arm/mach-imx/clk-imx35.c
@@ -265,6 +265,7 @@ int __init mx35_clocks_init(void)
 	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.8.2.rc2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH v2 2/2] ARM: imx35 Bugfix admux clock
  2013-03-29 15:20 [PATCH v2 0/2] ARM: imx35 clock bugfixes Markus Pargmann
  2013-03-29 15:20 ` [PATCH v2 1/2] ARM: clk-imx35: Bugfix iomux clock Markus Pargmann
@ 2013-03-29 15:20 ` Markus Pargmann
  1 sibling, 0 replies; 3+ messages in thread
From: Markus Pargmann @ 2013-03-29 15:20 UTC (permalink / raw)
  To: linux-arm-kernel

The admux clock seems to be the audmux clock as tests show. audmux does
not work without this clock enabled. Currently imx35 does not register a
clock device for audmux. This patch adds this registration. imx-audmux
driver already handles a clock device, so no changes are necessary
there.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Cc: stable at vger.kernel.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 b95898a..2193c83 100644
--- a/arch/arm/mach-imx/clk-imx35.c
+++ b/arch/arm/mach-imx/clk-imx35.c
@@ -257,6 +257,7 @@ int __init mx35_clocks_init(void)
 	clk_register_clkdev(clk[wdog_gate], NULL, "imx2-wdt.0");
 	clk_register_clkdev(clk[nfc_div], NULL, "imx25-nand.0");
 	clk_register_clkdev(clk[csi_gate], NULL, "mx3-camera.0");
+	clk_register_clkdev(clk[admux_gate], "audmux", NULL);
 
 	clk_prepare_enable(clk[spba_gate]);
 	clk_prepare_enable(clk[gpio1_gate]);
-- 
1.8.2.rc2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-03-29 15:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-29 15:20 [PATCH v2 0/2] ARM: imx35 clock bugfixes Markus Pargmann
2013-03-29 15:20 ` [PATCH v2 1/2] ARM: clk-imx35: Bugfix iomux clock Markus Pargmann
2013-03-29 15:20 ` [PATCH v2 2/2] ARM: imx35 Bugfix admux clock Markus Pargmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).