target: msm8953: Add PMI632 power off sequence support
For PMI632 PS_HOLD needs to be configured only for warm reset
and it should be disabled for hard reset or shutdown.
CRs-Fixed: 2166255
Change-Id: I0368257916e10596d8859c4c882f4c63cb824e2f
Signed-off-by: Umang Agrawal <uagrawal@codeaurora.org>
diff --git a/target/msm8953/init.c b/target/msm8953/init.c
index 19713a3..c2f1eb6 100644
--- a/target/msm8953/init.c
+++ b/target/msm8953/init.c
@@ -627,11 +627,6 @@
crypto_init_params(&ce_params);
}
-void pmic_reset_configure(uint8_t reset_type)
-{
- pm8994_reset_configure(reset_type);
-}
-
uint32_t target_get_pmic()
{
if (target_is_pmi_enabled()) {
@@ -646,6 +641,17 @@
}
}
+void pmic_reset_configure(uint8_t reset_type)
+{
+ uint32_t pmi_type;
+
+ pmi_type = target_get_pmic();
+ if (pmi_type == PMIC_IS_PMI632)
+ pmi632_reset_configure(reset_type);
+ else
+ pm8994_reset_configure(reset_type);
+}
+
struct qmp_reg qmp_settings[] =
{
{0x804, 0x01}, /* USB3PHY_PCIE_USB3_PCS_POWER_DOWN_CONTROL */