Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 339c16cb authored by Hanumant Singh's avatar Hanumant Singh
Browse files

esoc: mdm-4x: Deassert gpios before lowering PON signal



Prevent backpowering of the 9k pmic by lowering all IPC
gpios prior to deasserting PON.

Change-Id: I34c5209711b32ebf11e814721406c4897cdb95ee
Signed-off-by: default avatarHanumant Singh <hanumant@codeaurora.org>
parent 471bf3dc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -374,10 +374,10 @@ static int mdm_cmd_exe(enum esoc_cmd cmd, struct esoc_clink *esoc)
		 * to prevent the mdm from immediately powering back on
		 * after the shutdown
		 */
		mdm_power_down(mdm);
		mdm_update_gpio_configs(mdm, GPIO_UPDATE_BOOTING_CONFIG);
		gpio_set_value(MDM_GPIO(mdm, AP2MDM_STATUS), 0);
		esoc_clink_queue_request(ESOC_REQ_SHUTDOWN, esoc);
		mdm_power_down(mdm);
		mdm_update_gpio_configs(mdm, GPIO_UPDATE_BOOTING_CONFIG);
		break;
	case ESOC_RESET:
		mdm_toggle_soft_reset(mdm);