msm: clock: Add alias clock rows for qcrypto on 7x30, 8x60 and 8960
When the qcrypto driver is used, the qce driver calls clk_get()
on a different device than it does when qcrypto is not used.
Add clock tables rows for the "qcrypto" devices in addition to
the "qce" devices that point to the same physical clocks.
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
diff --git a/arch/arm/mach-msm/clock-7x30.c b/arch/arm/mach-msm/clock-7x30.c
index 553a10f..5d7736f 100644
--- a/arch/arm/mach-msm/clock-7x30.c
+++ b/arch/arm/mach-msm/clock-7x30.c
@@ -2862,6 +2862,7 @@
{ CLK_LOOKUP("iface_clk", adm_p_clk.c, "msm_dmov"),
O(GLBL), BIT(13), &dummy_clk },
OWN(GLBL, 8, "core_clk", ce_clk, "qce.0"),
+ OWN(GLBL, 8, "core_clk", ce_clk, "crypto.0"),
OWN(GLBL, 13, "rotator_clk", axi_rotator_clk, NULL),
OWN(GLBL, 13, "core_clk", axi_rotator_clk, "footswitch-pcom.6"),
OWN(GLBL, 13, "rotator_imem_clk", rotator_imem_clk, NULL),
diff --git a/arch/arm/mach-msm/clock-8960.c b/arch/arm/mach-msm/clock-8960.c
index f8af4f4..82d86cf 100644
--- a/arch/arm/mach-msm/clock-8960.c
+++ b/arch/arm/mach-msm/clock-8960.c
@@ -4572,7 +4572,9 @@
CLK_LOOKUP("usb_fs_sys_clk", usb_fs2_sys_clk.c, NULL),
CLK_LOOKUP("usb_fs_src_clk", usb_fs2_src_clk.c, NULL),
CLK_LOOKUP("iface_clk", ce1_p_clk.c, "qce.0"),
+ CLK_LOOKUP("iface_clk", ce1_p_clk.c, "qcrypto.0"),
CLK_LOOKUP("core_clk", ce1_core_clk.c, "qce.0"),
+ CLK_LOOKUP("core_clk", ce1_core_clk.c, "qcrypto.0"),
CLK_LOOKUP("dma_bam_pclk", dma_bam_p_clk.c, NULL),
CLK_LOOKUP("iface_clk", gsbi1_p_clk.c, "spi_qsd.0"),
CLK_LOOKUP("iface_clk", gsbi2_p_clk.c, NULL),
diff --git a/arch/arm/mach-msm/clock-8x60.c b/arch/arm/mach-msm/clock-8x60.c
index 9d48cdb..f76c5a9 100644
--- a/arch/arm/mach-msm/clock-8x60.c
+++ b/arch/arm/mach-msm/clock-8x60.c
@@ -3571,6 +3571,7 @@
CLK_LOOKUP("usb_fs_sys_clk", usb_fs2_sys_clk.c, NULL),
CLK_LOOKUP("usb_fs_src_clk", usb_fs2_src_clk.c, NULL),
CLK_LOOKUP("core_clk", ce2_p_clk.c, "qce.0"),
+ CLK_LOOKUP("core_clk", ce2_p_clk.c, "qcrypto.0"),
CLK_LOOKUP("iface_clk", gsbi1_p_clk.c, "spi_qsd.0"),
CLK_LOOKUP("iface_clk", gsbi2_p_clk.c, NULL),
CLK_LOOKUP("iface_clk", gsbi3_p_clk.c, "msm_serial_hsl.2"),