This function can fix residual reporting points, if host fails to
read the tp reporting data instantly because the following two
reasons:
1) host lost interrupts
2) host interrupt function process slowly sometimes
Change-Id: Ie914f2b2463309f90ad05b611597e2b1bfe84ca1
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1475055
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
TP:
Solve the problem of system crash when
the synaptics touch is shut down.
Change-Id: I2e483d2a1ff27cb5a2607611843c414dddd87fa9
Reviewed-on: https://gerrit.mot.com/1476476
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Until now, logic only accepted "Turbo Power" as anything higher than
2500mA, and PD having 15W (9V/1670mA) or 18W (9V/2000mA) would not
trigger such condition, being interpreted as Normal Charger.
New logic adds to Turbo anything higher than 8.5V, so future 12V will
also match such changes.
Change-Id: I3a4ff8eae094869d798f9cb6e4e72f7290cbbbac
Signed-off-by: Cesar Santos <cmsantos@motorola.com>
Reviewed-on: https://gerrit.mot.com/1465382
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
Racer use slg5bm43670 driver, it should be separated from others.
Racer_turbo/Smith use slg51000 folder, and Racer use slg5bm43670 folder.
slg5bm43670 driver is provided by FAE, it has interrupt issue,
it will be fixed by updated driver later.
Change-Id: Ibf87d63d02621bf6fb3dfbd6bc16fa437ef6935f
Signed-off-by: liuwang2 <liuwang2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1476364
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jian Zhang <zhangjo@motorola.com>
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
Default voltages on reset on slg51000 pmic are the expected voltages from
hardware so there is no need for the driver to set the voltage. Set via
device tree bool
Change-Id: I48ed538f0edf4c172a282c166b65fb3b00f3c383
Reviewed-on: https://gerrit.mot.com/1475733
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Reviewed-by: Jian Luan <jamesluan@motorola.com>
Submit-Approved: Jira Key
LSI came up with reporting MMI gestures via Gesture Event Type VENDOR
(0x8). Single tap has Gesture Event ID (0x1) and zero tap has Gesture
Event ID (0x2) followed by coordinates values.
Change-Id: I1c3b6e6e96dadd2c7f8281378f7f1257f743a4cd
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1475704
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Add build config option to recalibrate cap sense upon
insertion of USB.
Change-Id: I13b9f9ae71e232d1dbd2cc3de9cb7a683184131c
Signed-off-by: liugy11 <liugy11@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1474494
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jiyue Cui <cuijy2@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
TP:
touchscreen_mmi need read device device-tree node.
So must use bus device to register ts_mmi.
Change-Id: I26edf7bb276e8d052bf228d11b2e57abcdb5e359
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1473718
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
TP:
using the touchscreen_class name to
set the samsung touch device name
Change-Id: I45a1e2832a9f9071b009a72e01f6279f214ae6bd
Reviewed-on: https://gerrit.mot.com/1473396
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
TP:
Add get_class_fname methods to get class name
the name is provided to vendor.
Change-Id: I1984af824bb1d59b8d736c59b327619b89bb010b
Reviewed-on: https://gerrit.mot.com/1471685
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
Added USB detection to the class code to handle charging source
bit setting.
Change-Id: Ic947504509b454150b7067ceb31786c5d29296b2
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1471999
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Add support for USB detection done in touchscren_mmi class code.
Change-Id: I61fbe22a6850baaf8ae5153fd1e283de13aea94f
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1472006
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Add sysfs_notify calls to tx_mode changed so that the
hal can poll on the file and push updates to fw.
Add sysfs notify call to rx_connect so the hal can know
when a client has connected via power share
Add sysfs notify call to error count so the fw can notify
users if there is an aligment issue.
Also add some code to read the system mode buffer
instead of blindly overwriting it and due to a bug in the
firmware, tx mode will turn off randomly. The user would
not be aware this happened. Check every 2 seconds if this
happened and re-enable automatically.
Change-Id: Ifadecf5b820fd0a5e6becff1a3a7805a5ec96f00
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1466131
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
There was mixing of memory allocation methods, i.e.
allocating with vzalloc() and trying to free with kfree()
Change-Id: I8ae2627c1bb6431b44311bca093c671df162e91d
Signed-off-by: awhite6 <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1471259
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
set dc now is only used if there is a user debug flag,
move the function into an ifdef block.
Mot-CRs-fixed: (CR)
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Change-Id: Ia84c24c55e775bea7024dc11974b63226d6c0069
Reviewed-on: https://gerrit.mot.com/1471811
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
TP:
solve the error that the firmware file could not
be found while firmware updating.
Change-Id: I0934c6b564e3208f16113981a7bd9a28da326385
Reviewed-on: https://gerrit.mot.com/1471544
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
Read the bpp and epp current and voltage limits from the
device tree, and use the guaranteed power instead of the
potential power to set them.
Also use dc current now and dc current max so we don't have
a race with AICL.
Change-Id: Ic100e8e84ba2cf7a30095645b32ce573f2b0e47f
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1471116
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Reset on factory image requires another flag check in
the worker function to complete the reset.
Mot-CRs-fixed: (CR)
Change-Id: I54ccc9dbf2a80dfff4fd8e5f3632f0820750db4c
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1469131
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
If we are a factory image, reset the fuel gauge in the
same way we would if in factory mode.
Change-Id: Iaab95a015e3893228a7b56ccc2aa77ea3a757213
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1466055
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Indicate device is online with VRECT, instead of
waiting for VOUT.
Change-Id: Iaaddd8477d3a74ed9462b4b4fbb5683690bacaaf
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1469171
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
TP:
If touch vendor driver need create extra sys entries for some vendor
special reason. Create a method to get this attr group.
Change-Id: I39482b504428ab915c8e2eda5db9f29495dbc5b8
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1470200
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
TP:
copy the <include/linux/input/synapics_tcm.h> to current path,
and solve the problem that the definition cannot be found.
Change-Id: I019fbcbb8df0c9435231f975b62e348a60bbb366
Reviewed-on: https://gerrit.mot.com/1470093
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
Some branches missing panel notifier code. Thus need to make sure
driver's code is not using anything declared only in
panel_notifier.h include file.
Mot-CRs-fixed: (CR)
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Change-Id: I9c7c90895284f71c6ae715f1b3008c1744e15c67
Reviewed-on: https://gerrit.mot.com/1469944
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Y coordinate MSB only needs to shift by 4, since it's already in
second nibble.
Mot-CRs-fixed: (CR)
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Change-Id: Ib5826cb9bf603474b3f5b36fbe28d1e890dbb0f0
Reviewed-on: https://gerrit.mot.com/1469931
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Support wakeup gestures required for single and zero tap features
Change-Id: Ifc15207dcd57b2b775ec63f4c1ba51f4ad90a9e9
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1469723
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Write the fod values and q factor from the device
tree
Ported from: https://gerrit.mot.com/#/c/1141329/
Change-Id: I573bc40979c8168706109447419357848bb7432e
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1467167
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
TP:
The touch driver code is updated to second version
of synaptics.
Change-Id: Id460de3197aaee25cefeab918923212a484c8346
Reviewed-on: https://gerrit.mot.com/1468558
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
TP:
Do not update firmware when boot up if touchscreen_mmi is used.
Let moto touch script to handle firmware update work.
Change-Id: I6d0a7150cf6eb8be81d78b92885a8bf54327e13d
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1468526
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Tested-by: Jira Key