lpm-level headers required only when CONFIG_MSM_PM is set.
To compile msm kernel for other targets (arch=um), add config
check to include lpm levels.
Change-Id: Ia1bd51da4952e56b945a5e51a3b1ff8aaa643cd5
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
Keep optimum powerlevels for msm8976 to help
performance and power.
Change-Id: Ie387152c37b433b330fa360de15ddddbb11d2876
Signed-off-by: Prakash Kamliya <pkamliya@codeaurora.org>
Different kernel version needs to use different kernel APIs for
hotplug. Add wrapper for CPU hotplug so that external module can be
used across different kernel releases.
Use cpu_up/cpu_down() API for CPU hotplug.
Change-Id: Ib36a875027f67b96e2d108de8b7d902978e50005
Signed-off-by: Junjie Wu <junjiew@codeaurora.org>
Extend PM_AWAKE and PM_RELAX interfaces to all misc drivers as to allow
their clients in user space to hold ARM core during time out count down.
Change-Id: I754f6198201e47826857459ef0fd18a7c7834310
Signed-off-by: Weiyin Jiang <wjiang@codeaurora.org>
Add support for deferring touch resume to a workqueue on
msm8952 QRD and msm8976 QRD.
Change-Id: I718f2a5efc13c906025ad17932a36612b6115f8c
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
Signed-off-by: zhaoyuan <yzhao@codeaurora.org>
During device resume, the touch resume function is called after display's
resume. In this case, the ft5x06's resume function needs to wait for
200ms because of reset requirement. Defer the touch resume to a workqueue
to reduce the total device resume time. For this an optional DT property
is added to enable this on targets that need this feature.
Change-Id: Ib0677ca792aea83ece1caf8a0afff341302747fb
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
Signed-off-by: zhaoyuan <yzhao@codeaurora.org>
In the current implementation AICL is not re-run if its already
in progress. However in case where ICL gets updated while AICL
is in progress, the updated ICL value is not considered unless
AICL re-runs again. Handle this by re-running AICL irrespective of
the AICL status.
CRs-Fixed: 907473
Change-Id: I4a021e6ca148d0c218701cfb8a671d1e2dac6fee
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
Enable AICL reruns for the PMi8950 smbcharger in order to allow it to
recover any current loss from glitchy AICL results.
Set the AICL rerun period to 180 seconds on PMI8950 to avoid waking
up all the time when charging.
CRs-Fixed: 920791
Change-Id: I24a734f3ed489ca50eb00aa9421816162c3fc9e5
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
Add module parameters to configure default ICLs for USB DCP and HVDCPs
in order to facilitate testing.
CRs-Fixed: 930588
Change-Id: I5fa1cdef010821211d3baa1797fdb72110d86a10
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
Use the BATT_TYPE voter for FCC instead of USER. This way the user can
set FCCs higher than the device tree limit.
Change-Id: Id386f8afd1bef2d1774730b214f1b97d64a6476b
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
Support adjusting the usb ICL up and down through the DP_DM interface for
HVDCP 3.0.
CRs-Fixed: 930588
Change-Id: Ic24f946522d7ae0ec0a52f127118ac5a0d908277
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
Add the ICL_DOWN and ICL_UP enums for POWER_SUPPLY_PROP_DP_DM in order
to allow hvdcpd to configure the relative input current limit.
CRs-Fixed: 930588
Change-Id: I80e37e241e145a81d6defe69fe5cbab1127cf933
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>