[PATCH v3 03/10] soc: qcom: rpmpd: Unify Low Power Island definitions

From: Konrad Dybcio
Date: Mon Mar 13 2023 - 16:00:21 EST


Up until now, we had 2 separate entries for VDD_LPI[CM]X and
VDD_LPI_[CM]X which both pointed to the same RPM resource. Fix it.

Signed-off-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxx>
---
drivers/soc/qcom/rpmpd.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/soc/qcom/rpmpd.c b/drivers/soc/qcom/rpmpd.c
index 7d9e762232ea..8ba025c4eca3 100644
--- a/drivers/soc/qcom/rpmpd.c
+++ b/drivers/soc/qcom/rpmpd.c
@@ -149,11 +149,9 @@ DEFINE_RPMPD_PAIR(vddmd, vddmd_ao, SMPA, LEVEL, 1);
DEFINE_RPMPD_VFC(vddmd_vfc, SMPA, 1);

DEFINE_RPMPD_LEVEL(vdd_lpi_cx, RWLC, 0);
-DEFINE_RPMPD_LEVEL(vdd_lpicx, RWLC, 0);
DEFINE_RPMPD_VFL(vdd_lpicx_vfl, RWLC, 0);

DEFINE_RPMPD_LEVEL(vdd_lpi_mx, RWLM, 0);
-DEFINE_RPMPD_LEVEL(vdd_lpimx, RWLM, 0);
DEFINE_RPMPD_VFL(vdd_lpimx_vfl, RWLM, 0);

DEFINE_RPMPD_CORNER(vddsscx, LDOA, 26);
@@ -324,9 +322,9 @@ static struct rpmpd *qcs404_rpmpds[] = {
[QCS404_VDDMX] = &RWMX0_LEVEL_vddmx,
[QCS404_VDDMX_AO] = &RWMX0_LEVEL_vddmx_ao,
[QCS404_VDDMX_VFL] = &RWMX0_vddmx_vfl,
- [QCS404_LPICX] = &RWLC0_vdd_lpicx_lvl,
+ [QCS404_LPICX] = &RWLC0_vdd_lpi_cx_lvl,
[QCS404_LPICX_VFL] = &RWLC0_vdd_lpicx_vfl,
- [QCS404_LPIMX] = &RWLM0_vdd_lpimx_lvl,
+ [QCS404_LPIMX] = &RWLM0_vdd_lpi_mx_lvl,
[QCS404_LPIMX_VFL] = &RWLM0_vdd_lpimx_vfl,
};


--
2.39.2