From fd02cd7c4449aa74427f638821b8672d965a6735 Mon Sep 17 00:00:00 2001 From: Wasim Nazir Date: Thu, 18 Jan 2024 18:45:58 +0530 Subject: [PATCH 1/2] defconfig: Enable msm-poweroff/ps-hold on Pitti Add ps-hold to secure restart_reason during power-off & restart. Change-Id: I62b41ff9da5d61aba11b7ab835785d2c3c7dc849 Signed-off-by: Wasim Nazir --- arch/arm64/configs/vendor/pitti_GKI.config | 1 + pitti.bzl | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm64/configs/vendor/pitti_GKI.config b/arch/arm64/configs/vendor/pitti_GKI.config index b314c9c10afb..c197cad27578 100644 --- a/arch/arm64/configs/vendor/pitti_GKI.config +++ b/arch/arm64/configs/vendor/pitti_GKI.config @@ -97,6 +97,7 @@ CONFIG_PINCTRL_MSM=m CONFIG_PINCTRL_PITTI=m CONFIG_PINCTRL_QCOM_SPMI_PMIC=m # CONFIG_PM8916_WATCHDOG is not set +CONFIG_POWER_RESET_MSM=m CONFIG_POWER_RESET_QCOM_DOWNLOAD_MODE=m CONFIG_POWER_RESET_QCOM_DOWNLOAD_MODE_DEFAULT=y CONFIG_POWER_RESET_QCOM_PON=m diff --git a/pitti.bzl b/pitti.bzl index d511c885941e..8ddb308a223a 100644 --- a/pitti.bzl +++ b/pitti.bzl @@ -78,6 +78,7 @@ def define_pitti(): "drivers/pinctrl/qcom/pinctrl-pitti.ko", "drivers/pinctrl/qcom/pinctrl-spmi-gpio.ko", "drivers/pinctrl/qcom/pinctrl-spmi-mpp.ko", + "drivers/power/reset/msm-poweroff.ko", "drivers/power/reset/qcom-dload-mode.ko", "drivers/power/reset/qcom-pon.ko", "drivers/power/reset/reboot-mode.ko", From ae6f070323bb63142f201bc5506eafd670d4ccca Mon Sep 17 00:00:00 2001 From: Wasim Nazir Date: Thu, 18 Jan 2024 18:52:58 +0530 Subject: [PATCH 2/2] modules.list: Add msm-poweroff/ps-hold module for Pitti Add ps-hold in first stage for pitti. Change-Id: Iad49382320574f735be9b9dfaba6e14d9e92bf80 Signed-off-by: Wasim Nazir --- modules.list.msm.pitti | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules.list.msm.pitti b/modules.list.msm.pitti index 6c7654d60ee0..53dbdd209b32 100644 --- a/modules.list.msm.pitti +++ b/modules.list.msm.pitti @@ -27,7 +27,7 @@ qcom-spmi-pmic.ko pinctrl-spmi-gpio.ko nvmem_qcom-spmi-sdam.ko rtc-pm8xxx.ko -qcom-reboot-reason.ko +msm-poweroff.ko pmic-pon-log.ko qcom-ipcc.ko clk-dummy.ko