msm: clock-local: Fold unused reset-only amp_clk into amp_p_clk
The amp_p_clk is the only clock that goes to the DSI AHB bus
arbiter. The amp_clk existed in software for reset purposes only.
Combine these together so one clock can be used by software to
do all this.
Change-Id: I0e5f7a1489245d979b5460497d0a14d62ddcb68e
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
diff --git a/arch/arm/mach-msm/clock-8960.c b/arch/arm/mach-msm/clock-8960.c
index 30b9c1f..9ce10df9 100644
--- a/arch/arm/mach-msm/clock-8960.c
+++ b/arch/arm/mach-msm/clock-8960.c
@@ -845,6 +845,8 @@
.b = {
.ctl_reg = AHB_EN_REG,
.en_mask = BIT(24),
+ .reset_reg = SW_RESET_CORE_REG,
+ .reset_mask = BIT(20),
.halt_reg = DBG_BUS_VEC_F_REG,
.halt_bit = 18,
},
@@ -2480,18 +2482,6 @@
* Multimedia Clocks
*/
-static struct branch_clk amp_clk = {
- .b = {
- .reset_reg = SW_RESET_CORE_REG,
- .reset_mask = BIT(20),
- },
- .c = {
- .dbg_name = "amp_clk",
- .ops = &clk_ops_reset,
- CLK_INIT(amp_clk.c),
- },
-};
-
#define CLK_CAM(name, n, hb) \
struct rcg_clk name = { \
.b = { \
@@ -5006,7 +4996,6 @@
CLK_LOOKUP("iface_clk", pmic_arb1_p_clk.c, ""),
CLK_LOOKUP("core_clk", pmic_ssbi2_clk.c, ""),
CLK_LOOKUP("mem_clk", rpm_msg_ram_p_clk.c, ""),
- CLK_LOOKUP("core_clk", amp_clk.c, ""),
CLK_LOOKUP("cam_clk", cam0_clk.c, "4-001a"),
CLK_LOOKUP("cam_clk", cam0_clk.c, "4-0034"),
CLK_LOOKUP("cam_clk", cam0_clk.c, "4-0020"),
@@ -5311,7 +5300,6 @@
CLK_LOOKUP("iface_clk", pmic_arb1_p_clk.c, ""),
CLK_LOOKUP("core_clk", pmic_ssbi2_clk.c, ""),
CLK_LOOKUP("mem_clk", rpm_msg_ram_p_clk.c, ""),
- CLK_LOOKUP("core_clk", amp_clk.c, ""),
CLK_LOOKUP("cam_clk", cam0_clk.c, "4-001a"),
CLK_LOOKUP("cam_clk", cam0_clk.c, "4-006c"),
CLK_LOOKUP("cam_clk", cam0_clk.c, "4-0048"),
@@ -5606,7 +5594,6 @@
CLK_LOOKUP("iface_clk", pmic_arb1_p_clk.c, ""),
CLK_LOOKUP("core_clk", pmic_ssbi2_clk.c, ""),
CLK_LOOKUP("mem_clk", rpm_msg_ram_p_clk.c, ""),
- CLK_LOOKUP("core_clk", amp_clk.c, ""),
CLK_LOOKUP("cam_clk", cam0_clk.c, "4-001a"),
CLK_LOOKUP("cam_clk", cam0_clk.c, "4-006c"),
CLK_LOOKUP("cam_clk", cam0_clk.c, "4-0048"),
diff --git a/arch/arm/mach-msm/clock-8x60.c b/arch/arm/mach-msm/clock-8x60.c
index 920ab4c..8e244eb 100644
--- a/arch/arm/mach-msm/clock-8x60.c
+++ b/arch/arm/mach-msm/clock-8x60.c
@@ -626,6 +626,8 @@
.b = {
.ctl_reg = AHB_EN_REG,
.en_mask = BIT(24),
+ .reset_reg = SW_RESET_CORE_REG,
+ .reset_mask = BIT(20),
.halt_reg = DBG_BUS_VEC_F_REG,
.halt_bit = 18,
},
@@ -1956,18 +1958,6 @@
* Multimedia Clocks
*/
-static struct branch_clk amp_clk = {
- .b = {
- .reset_reg = SW_RESET_CORE_REG,
- .reset_mask = BIT(20),
- },
- .c = {
- .dbg_name = "amp_clk",
- .ops = &clk_ops_reset,
- CLK_INIT(amp_clk.c),
- },
-};
-
#define F_CAM(f, s, d, m, n) \
{ \
.freq_hz = f, \
@@ -3607,7 +3597,6 @@
CLK_LOOKUP("iface_clk", pmic_arb1_p_clk.c, ""),
CLK_LOOKUP("core_clk", pmic_ssbi2_clk.c, ""),
CLK_LOOKUP("mem_clk", rpm_msg_ram_p_clk.c, ""),
- CLK_LOOKUP("core_clk", amp_clk.c, ""),
CLK_LOOKUP("cam_clk", cam_clk.c, NULL),
CLK_LOOKUP("csi_clk", csi0_clk.c, NULL),
CLK_LOOKUP("csi_clk", csi1_clk.c, "msm_camera_ov7692.0"),