]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: imx: imx53: Add SATA PHY clock
authorMarek Vasut <marex@denx.de>
Fri, 22 Nov 2013 11:05:02 +0000 (12:05 +0100)
committerShawn Guo <shawn.guo@linaro.org>
Tue, 31 Dec 2013 01:36:26 +0000 (09:36 +0800)
Add SATA PHY clock which are derived from the USB PHY1 clock. Note that this
patch derives the SATA PHY clock from USB PHY1 clock gate so that the SATA
driver can ungate both the SATA PHY clock and USB PHY1 clock for the SATA to
work correctly.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Richard Zhu <r65037@freescale.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Linux-IDE <linux-ide@vger.kernel.org>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/mach-imx/clk-imx51-imx53.c
include/dt-bindings/clock/imx5-clock.h

index 07d275fe891c61cd125eda5f29e416d490507a15..3f01df2b15baa6d2f63bdeed6d4d219ad044e6a5 100644 (file)
@@ -244,6 +244,7 @@ static void __init mx5_clocks_common_init(unsigned long rate_ckil,
        clk[IMX5_CLK_SPDIF0_GATE]       = imx_clk_gate2("spdif0_gate", "spdif0_com_sel", MXC_CCM_CCGR5, 26);
        clk[IMX5_CLK_SPDIF_IPG_GATE]    = imx_clk_gate2("spdif_ipg_gate", "ipg", MXC_CCM_CCGR5, 30);
        clk[IMX5_CLK_SAHARA_IPG_GATE]   = imx_clk_gate2("sahara_ipg_gate", "ipg", MXC_CCM_CCGR4, 14);
+       clk[IMX5_CLK_SATA_REF]          = imx_clk_fixed_factor("sata_ref", "usb_phy1_gate", 1, 1);
 
        for (i = 0; i < ARRAY_SIZE(clk); i++)
                if (IS_ERR(clk[i]))
index 5c2f634d4ffafea4a9b79af78147137dfd7d37d1..5f2667ecd98ea07a170e49b4e016738587ada122 100644 (file)
 #define IMX5_CLK_SPDIF_IPG_GATE                185
 #define IMX5_CLK_OCRAM                 186
 #define IMX5_CLK_SAHARA_IPG_GATE       187
-#define IMX5_CLK_END                   188
+#define IMX5_CLK_SATA_REF              188
+#define IMX5_CLK_END                   189
 
 #endif /* __DT_BINDINGS_CLOCK_IMX5_H */