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
The userspace string length count includes the null-byte,
but the length of range doesn't include the terminator byte.
When the range is has only one value,the utag cannot be written.
Change-Id: Id4a17bf93198fd3230a2d265fa779ff8c4dda9ef
Reviewed-on: https://gerrit.mot.com/1224383
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Report real device ID based on value reported in DEVICE_ID LSB
Change-Id: Ic34ad750d2c1c251579a4a9ee2c679c76f85839e
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1223893
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
To prevent invalid reporting by healthd, switch to
POWER_SUPPLY_TYPE_MAIN so that it does not
accidentally use mmi_battery as the reporting interface.
Change-Id: Iaf0f2b37de02932994d5826c5b7f2aff777b8d28
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1221855
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
To prevent invalid reporting by healthd, switch to
POWER_SUPPLY_TYPE_MAIN so that it does not
accidentally use max170xx as the reporting interface.
Change-Id: Ic4c5815a31a0fd00345bb45d58a3c51474ef1629
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1221854
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
Ip link tearing down is later than the usbnet disabling.
Kernel will panic if bulk_in endpoint is NULL and ip stack still has data
Free the skb in this case.
Change-Id: Icc987551da4a8b9c1998b0c09f19fbed49ea58ee
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1220589
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
Add the power status response to the muc uart driver.
Change-Id: Ib3c4327d4329be930eb540474546b19d57fd7415
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1217749
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Could potentially sleep with a spinlock if
we try to wake the muc while holding the queue
spinlock. This reworks the wake code to no longer
call the power mode set ioctl with a spinlock.
Also fixes -11 errors seen on the first transmit
attempt after coming out of low power mode.
Change-Id: Ibc86420bea042d0e1118588519fb32f635248769
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1219179
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
There are other programs in DLKM kernel which don't define
IOCTL_COMPAT. This is not to include compat ioctl on those.
Change-Id: Ie463dd624febb6b0db9319634991a36f533b1f10
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1220802
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Yin-Jun Chen <a7301c@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
This patch includes necessary changes to the initial driver's code
from Raydium to build DLKM
Change-Id: I2de9c121c907cb45fba83584ca3eaee81f7c560d
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1219236
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
WRITE_SYNC is not defined on new kernel.
Change-Id: If47e84c06a0e52ccf4a7a116d233f8d8c924191e
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1207791
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Remove the vendor version of the sx933x driver. A moto
version exists at drivers/misc/sx933x. The same driver
should be used across all products.
Mot-CRs-fixed: (CR)
This reverts commit 12a37b65d3a9bfee557f7b2c4f65f64b592f1c95.
Change-Id: I7d4b72c40248695212b34db0a967424f8173ae41
Reviewed-on: https://gerrit.mot.com/1217725
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Reboot notification callback cannot schedule config work, but need
to run it synchronously
Change-Id: If21c0dea8f4d24569d08e9f6e499a4b26b85c444
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1217106
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Raw values reporting is not supported for multiple ICs
Change-Id: I97d2bd0b5b7e20069c584ae496f224fc52a3b1ad
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1213594
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
there is obvious noise can be heared when heaset plug in.
if we enable micbias when the headset has not been inserted
totally. the noise can be transfered to HPHL/HPHR
Propagated from: (CR)
Change-Id: I9afc1cb0c7a5bad1381ac448774131d4b56a645c
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1216722
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Since touch reset will be controlled by display on ocean,
but still need to send sleep command, so add a property
for this condition.
Change-Id: Ife4cf51e8162e4107f34c4b1e6879fe305cceab6
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1215887
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Yongbin Chen <chenyb1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Comparison of pdata value to determine
IRQ polarity would not work because
pdata value contains valid pdata flag
Change-Id: I2f69f6839e3290f07a77c970322d7bc962848360
Signed-off-by: David Rhodes <david.rhodes@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-Fixed:(CR)
Change-Id: I2f69f6839e3290f07a77c970322d7bc962848360
Reviewed-on: https://gerrit.mot.com/1216569
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
we can update dsp input to RX1 or RX2 in run time
Change-Id: I6aa00f76684be7f60371526eab006c25a4e47b28
Reviewed-on: https://gerrit.mot.com/1214846
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1216060