Patchwork [1/2] SAUCE: imx6: enable sata clk if SATA_AHCI_PLATFORM

login
register
mail settings
Submitter Paolo Pisati
Date Jan. 31, 2013, 5:33 p.m.
Message ID <1359653627-14310-2-git-send-email-paolo.pisati@canonical.com>
Download mbox | patch
Permalink /patch/217222/
State New
Headers show

Comments

Paolo Pisati - Jan. 31, 2013, 5:33 p.m.
Clock modifications in 24d340ac "ARM i.MX6: Fix ethernet PLL clocks" broke the
SATA clk, fix it.

More info: http://www.spinics.net/lists/arm-kernel/msg221503.html

Original-code-from: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
---
 arch/arm/mach-imx/clk-imx6q.c |    3 +++
 1 file changed, 3 insertions(+)

Patch

diff --git a/arch/arm/mach-imx/clk-imx6q.c b/arch/arm/mach-imx/clk-imx6q.c
index c0c4e72..8f756af 100644
--- a/arch/arm/mach-imx/clk-imx6q.c
+++ b/arch/arm/mach-imx/clk-imx6q.c
@@ -436,6 +436,9 @@  int __init mx6q_clocks_init(void)
 	for (i = 0; i < ARRAY_SIZE(clks_init_on); i++)
 		clk_prepare_enable(clk[clks_init_on[i]]);
 
+	if (IS_ENABLED(CONFIG_SATA_AHCI_PLATFORM))
+		clk_prepare_enable(clk[sata_ref_100m]);
+
 	/* Set initial power mode */
 	imx6q_set_lpm(WAIT_CLOCKED);