LCD driver will turn off VDD power after EARLY_EVENT_BLANK event sent.
So TP driver need suspend IC when got this event.
Otherwise, I2C transfer timeout will happen.
Change-Id: I181377fc88a00ffed2e7fefd305ff2e2e4e04ade
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1223414
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
- the current driver only disable system irq,
and not disable hardware irq,maybe cause irq imbalances;
- update reset method.
Change-Id: I14bea213005916ae858f492f6893a08c2d821fd3
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1233351
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Nan Wu <wunan3@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
Mot changes ported from 8998 Android O:
(CR): 8998: ToF sensor VL53L1 bring up
(CR): change netlink protocol ID
(CR): moto change for TOF_INT
(CR): update pinctl and regulator for power
(CR): 8998: To make laser sensor work on Nash DVT1B
(CR): moto changes on 7.2.1
(CR): implement sar function
(CR): turn off l22 when sensor is off
(CR): Apply moto changes based on new ST driver 8.0.0_b4.1.0_1268
(CR): adjust xtalk value per ST's request
(CR): fix laser autonomous mode issue
KSWN-43010: fix black target at 0mm range issue
(CR): [CTS] Nash ATT: 4 failures on Module CtsSensorTestCases
(CR): unlock ipp_mutex in ipp_in_process to avoid deadlock.
(CR): Set timing budget for SAR mode
(CR): Add default calibration
Change-Id: Ieebb105bf64706d3ef6df9141a0ba8d1989290ac
Reviewed-on: https://gerrit.mot.com/1233052
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Sumit Jamadar <xkbr38@motorola.com>
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
VL53L1 test driver was added to fix TCMD compilation
errors. ST shared official Maintenance release #2
driver, so test driver not needed anymore.
Olson is the first program to use ToF as DLKM, so it
will not impact any NPI/legacy programs in 'bo' branch.
Change-Id: Idf4add39ca9fcf77b27296e0ca6a82ec40c08a59
Reviewed-on: https://gerrit.mot.com/1233050
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Sumit Jamadar <xkbr38@motorola.com>
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
the current driver only disable system irq,
and not disable hardware irq,maybe cause irq imbalances.
Change-Id: I95bbad30e4940fb9665f8c02de8e7a75a9f54191
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1233341
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Cirrus madera codecs don't have a mechanism to report QDSP/LPASS SSR
to AP over soundcard status change. Add logic to reflect LPASS status
to soundcard, so AudioHAL can monitor and trigger necessary code on SSR.
Change-Id: I93de60b97b8baea0dc6b7cea0fee1f7a4f9219d1
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1219154
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
If the system has multiple Fuel Gauges and if 2 are defined
with names in the DT then use them to merge a Capacity
so that the combined percentage is reported to upper
layers.
Change-Id: Ic349cd72d088eef3da7a52e847f72a42c8059d33
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1231212
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
The USB Input voltage should be 5V to 9 V.
Change-Id: I2cd1976feb4c80ff5f02fa232eec3da0ff65cdac
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1231211
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Disable single and double click as default.
If those gestures are needed, enable them l(CR) HORIZON gesture.
Change-Id: I08fb8757c21870b85d0f84cf677a755b1e35e4c1
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1231254
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
-1,add force_pmic_chg judgement lable in order to avoid recovery
paralle charge when the thermal zone was changed
Change-Id: I2e1a9fe3ae564b6a58957c4e5eb5f640e234d737
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1230716
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
- Change the permission of nodes which under /proc/ilitek
from 0666 to 0444 for security.
Change-Id: I9eb0155a418b2ca23503c4aea81c589b2fba4bf5
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1228834
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
mmi_battery needs to be the proxy for setting CURRENT_MAX
so that the PMIC can setup other registers needed for
configuration but not accessible inside the qcom driver.
Change-Id: Iddab07d043b93fbfe26ab574c59f72e33da6799c
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1229356
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Add the Power Control interfaces as well as configuration
to the other power subsystems when messages are needed.
Change-Id: I4d8d518b853538e5865402a7b40e5c7236965725
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1229355
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
The first 1 second vibrating would vibrate as a short vibrating
by "else if (value < 100 || aw869x->seq != 0)" because default
aw869x->seq is 0x01000000.
So fix it.
Change-Id: I3903ffd745cfeca63a72b5047ad5ad2867af822a
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1229442
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
read product specific usecase index from kernel dt and use those to
communicate with SE module in QDSP/LPASS. AudioHAL will use these indexes
to load external configuration files to corresponding usecases in QDSP.
Change-Id: Ic2e6473f2ec1437aa674a579cd12e3ca96aca480
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1228726
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
check current and new usecase index and invoke QDSP/LPASS
new context creation only when there is actual usecase changes.
PROPAGATED_from: (CR)
Change-Id: Id335d253efaa1c0974715568233c8e91819b7d43
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1226431
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
1) Removed statments responsible for spamming
2) Cleaned up others to use same pr_fmt so its easy to filter all
st21nfc log statements
Change-Id: Ie44a8a559b97e67fc3417eb7adb12e209dbc5eb3
Signed-off-by: Balachandar Swami <w60013@motorola.com>
Reviewed-on: https://gerrit.mot.com/1227600
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
-1, add force pmic chg functions.
-2, change the thermal policy, force to only pmic chg
when the thermal level equal the max level.
-3, change the debug print level, only print MOTO_INTERRUPT
Change-Id: I2fb37bbdb9bbd32866e5a7e7af773dfea72f5e99
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1229055
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Sleep function may cause system hungup when resume.
Skip this function as a WA for this issue.
Change-Id: Ia0d7ea61ae530d0b59c9298bcc02913adf1e741f
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1228833
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
- Will setting default resolution via device tree because
after firmware was broken and we need to need to update
firmware and reset resolution again, and considering
compatibility, the resolutions of different projects maybe
different.
Change-Id: I7ac34a5108c5941e1b92e0cfd792afbfd3d5bc04
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1227228
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
The EVT1A phone with TI's drv2624 vibrator controller would
vibrate twice when booting which is not good.
So move vibrating from init.mmi.overlay.rc here as TI drv2624's
auto-calibration does on boot time.
Change-Id: Ie4dd78615fb88785a12c0b523832de17e30da4e2
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1227043
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
DRM framework not following full display power up sequence when
splash screen enabled and thus first unblank notification is missing.
This change enables interrupts handling on F34 load to work around
that deficiency
Change-Id: I00c2a93417e66ebce58ff5e85c7d0baafc9af14d
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1224646
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Change code base for keep consistency.
- Add comments for code readability.
- Remove redundant code.
- Set initial value for global variables.
- Move memory map and trim id table to one file. (nt36xxx_mem_map.h)
- Refine gesture part to fit latest FW protocol.
- Refine ESD function.
- Refine trim ID and product id part.
- Add CRC support function.
- Refine FW update routine.
- Refine selftest function and add support for notch panel.
Change-Id: Id7dfd3d5d29d44deaccb8f7666094c0ff5e1f8d3
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1220466
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
-1, ESR pulse cycle adjust to 60s
-2, ESR pulse remain 5s each cycle
-3, both pps voltage and pps current reduce to generate ESR pulse
during in the CV state
Change-Id: I67c704581312081c314dc3aa6e8c9a0a985fcf2d
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1222901
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Undefine AWINIC_RAM_UPDATE_DELAY to load ram earlier in order to
vibrate 1 second at boot time with the already loaded waveform.
Change-Id: I3f398d6bf019123ccc404fde2542a740b469eb98
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1225158
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key