summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikhil Kumar Kansal <nkansal@codeaurora.org>2018-10-16 14:28:43 +0530
committerNikhil Kumar Kansal <nkansal@codeaurora.org>2018-10-16 14:28:43 +0530
commit6192115442cac5bf8d8f67bbfa0b9d716b46ff07 (patch)
tree8eda0a07ceabc3e4d6f8a3509bd0e43af7b5af88
parent0ccc0c41457ddf5d2a6781962976ab1f3adf5f2f (diff)
downloadvendor_qcom_opensource_power-6192115442cac5bf8d8f67bbfa0b9d716b46ff07.tar.gz
vendor_qcom_opensource_power-6192115442cac5bf8d8f67bbfa0b9d716b46ff07.tar.bz2
vendor_qcom_opensource_power-6192115442cac5bf8d8f67bbfa0b9d716b46ff07.zip
power: qcom: powerHal for sdm455
Power hal changes for sdm455 Change-Id: I14923ff92c27b442a5e2a87978b592d3cd766785
-rw-r--r--power-660.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/power-660.c b/power-660.c
index 043e93d..6ffe4a4 100644
--- a/power-660.c
+++ b/power-660.c
@@ -62,7 +62,8 @@ static int camera_hint_ref_count;
static void process_video_encode_hint(void *metadata);
//static void process_cam_preview_hint(void *metadata);
-static bool is_target_SDM630() /* Returns value=630 if target is SDM630 else value 0 */
+/* Returns true is target is SDM630/SDM455 else false*/
+static bool is_target_SDM630()
{
int fd;
bool is_target_SDM630=false;
@@ -74,8 +75,8 @@ static bool is_target_SDM630() /* Returns value=630 if target is SDM630 else val
is_target_SDM630 = false;
} else {
int soc_id = atoi(buf);
- if (soc_id == 318 || soc_id== 327) {
- is_target_SDM630 = true; /* Above SOCID for SDM630 */
+ if (soc_id == 318 || soc_id == 327 || soc_id == 385) {
+ is_target_SDM630 = true; /* Above SOCID for SDM630/SDM455 */
}
}
}