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

Commit 35a651d8 authored by Tirupathi Reddy's avatar Tirupathi Reddy
Browse files

power: qcom: apm: Modify APM APCC mode check value for msmtitanium



APM controller status register[1:0] contains 2'b11 when APM
program to APCC mode. SW use APM APCC mode check value against
APM controller status register[1:0] to check whether APM switch
to APCC mode. Modify APM APCC mode check value to 0x3.

Change-Id: I4421319290252259e142729f87e9a9c1e00d751b
Signed-off-by: default avatarTirupathi Reddy <tirupath@codeaurora.org>
parent 96a424f0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2015, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -564,7 +564,7 @@ static int msm8996_apm_switch_to_apcc(struct msm_apm_ctrl_dev *ctrl_dev)
#define MSMTITANIUM_APM_MX_MODE_VAL            0x00
#define MSMTITANIUM_APM_APCC_MODE_VAL          0x02
#define MSMTITANIUM_APM_MX_DONE_VAL            0x00
#define MSMTITANIUM_APM_APCC_DONE_VAL          0x02
#define MSMTITANIUM_APM_APCC_DONE_VAL          0x03

/* Titanium register offset definitions */
#define MSMTITANIUM_APCC_APM_MODE              0x000002a8