TP:
When link binary object, touch_set_state is undefined,
No kernel symbal table was imported.
Change-Id: Ibd1cde478b08308d14fdba210ae3a61cd9887ff5
Reviewed-on: https://gerrit.mot.com/1957708
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
TP:
Support novatek single tap function in berlin NA.
Change-Id: I8f1d8d82b919b20fcba4812a74f247399a097ddf
Reviewed-on: https://gerrit.mot.com/1955575
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
When link binary object, panel_register_notifier is undefined,
No kernel symbal table was imported.
Change-Id: I539793e5aa2bd2d27d8ed9b959d9bef86739b26c
Reviewed-on: https://gerrit.mot.com/1957707
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Submit-Approved: Jira Key
When link binary object, dsi_freq_head is undefined,
No kernel symbal table was imported.
Match kernel version for user build.
Change-Id: I73d4ea7c02c22c449ce7f266e54e1e0a17e16bd8
Signed-off-by: zoujc <zoujc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1957477
Reviewed-by: Jianqi Yang <yangj@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Submit-Approved: Jira Key
some platform not support power present state
use online instead
Change-Id: Ia234b8d4fc33c3f4e8e43a87e96fb9b34a12ffc1
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1951809
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
Need to allow group others to access driver interfaces in sysfs
Change-Id: Ic83b07674ee5396abc58aae3cf21ddf883c3196b
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1934267
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Haptics waveform has shape up and shape down settings that were not
availbale through sysfs set_waveform interface. This change adds an
extra parameter allowing for waveform shape to be specified.
Includes some code cleanup as well
Change-Id: I1901b69520515d79f1f6ccf4d701fc373aab74e9
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1952944
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
1. When the panel enters the active state, the gesture_enable should be set to 0.
2. When resume, the charger mode is already set, so not to wirte.
3. When the CONTROLLER_READY event is not polled, perform a system reset.
Change-Id: I5281e9cb4e962f5f0a1c9460fecd541ae72fa3f4
Reviewed-on: https://gerrit.mot.com/1950039
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
Update kernel driver to support revision C of BOS0614
Change-Id: I025f5f9e8bf8d17eb92bcf0e1f7f940c4238e3d8
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1938220
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Schedule chrg cable ps-notification to update work after 3secs, to
allow cable status update. This will improve gpio timing to within
3secs, vs waiting for next reg schedulked work, which could be 30s
Change-Id: I5c9d252c9d23be6bad085fb7bd9b3b892f5ea2e8
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1947523
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
When the first finger is down, report BTN_TOUCH down event once,
and only when all fingers are up, BTN_TOUCH up event will be reported.
Change-Id: I23c1b0673157daa280a9a1c365cbcd7452a147fc
Reviewed-on: https://gerrit.mot.com/1946914
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
The value of u16_chip0Id is read from firmware, if the firmware is
lost, this value is fts0000, and the init.mmi.touch.sh service cannot
find the matching firmware to upgrade. So the productinfo should use
the value read from hardware.
Change-Id: Ic7f8ad98d574a4f7861a4a192aa10a87870788a5
Reviewed-on: https://gerrit.mot.com/1946543
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
The Android build infrastructure is transitioning to a new
mechansim for building external modules.
Starting from Taro(8450), update moto drivers to use that
mechanism.
Change-Id: Ic3640feabd6bd77334861d3f73082907ed88648b
Signed-off-by: a7301c <a7301c@motorola.com>
Reviewed-on: https://gerrit.mot.com/1941175
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
1. There is no need to set scan mode when setting the charge_mode.
2. Setting the scan mode will refresh the baseline and possibly
calibrate the fingers to th baseline.
Change-Id: Ia7e8a2aa538a52b9f0314b6591b09ebbc8d4c238
Reviewed-on: https://gerrit.mot.com/1944110
Reviewed-by: Jichao Zou <zoujc@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
TP:
1. When using the request_irq, the level trigger type caused an abnormal
interruption on the sm8350 platform, and even an interruption storm.
2. In the request_irq, the "fts_event_handler" function will be passed
to handler, and the handler is still called in hard interrupt context.
I think it is better to use request_threaded_irq function to handle events.
Change-Id: Ie1b7275306d0d498d5e550756f5be20f557107fb
Reviewed-on: https://gerrit.mot.com/1942457
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Includes the following fixes:
1) waveform ID in autoplay
2) signed and unsigned representation
Waveform ID cannot be limited to 0&1 only.
While it's not affecting values assigned to the corresponding
parameters, it's weird to see wrong value printed in kernel log
Change-Id: I32df3ad88c1917ed33f6264c3afe672693339bdb
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1942571
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
1. No need to set ABS_MT_TRACKING_ID, input_mt_init_slots() already set it.
2. Report BTN_TOUCH event when the fingers are lifted.
Change-Id: Ib22a50091745f7b4facea23104f3cdc3a33807c5
Reviewed-on: https://gerrit.mot.com/1940860
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
Check for low current delivery usb2/3 SDP charge type and enable only
pm8350b source charging. Also enable flip path to allow both batteries
to be charged by pm.
Change-Id: I4441d23d4847af87f05f90b71f1e8ba740e9ea52
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1938246
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Update the charger_suspend config in charger configure function based
on demo_suspend status to make sure charger_suspend config will not be
cleared for charger configure reset.
Change-Id: Ib1f11c28003de60221886a4bb9dba0e4fcac7735
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1933674
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Since module name has changed, there is no more naming conflict between
touchscreen class based driver and older version not using class code.
Removing stale references that won't be used again and fixing broken
build on some branches.
Change-Id: Id8f9c2b0ce6e4adae31882b7d28d5c928ee71fd7
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1932146
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
1. Some platforms do not support POWER_SUPPLY_PROP_PRESENT property.
2. When getting POWER_SUPPLY_PROP_PRESENT property fails, then
get POWER_SUPPLY_PROP_ONLINE property.
Change-Id: If46466ea5f79443310d1bc5aabb2be97e82d789c
Reviewed-on: https://gerrit.mot.com/1932041
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Submit-Approved: Jira Key
TP:
Berlin need to support 240Hz and 480Hz report rate switching.
Change-Id: I050da407a67e2976903d37900a7c05b938ad1190
Reviewed-on: https://gerrit.mot.com/1925619
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
when wl2866d regulator was not only used by camera, they may need
some of the ldos always on, so add dts property check to init the ldos.
Change-Id: I8b752f1d11548b12dfac2051bf7301b97703ae59
Signed-off-by: wangdw10 <wangdw10@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1929489
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zhilong Wang <wangzl30@motorola.com>
Reviewed-by: Peng Zhang <zhangp49@motorola.com>
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Shuo Wang <wangsh18@motorola.com>
Reviewed-by: Xu Ji <jixu@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key