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
TP:
Only create touchscreen class if not defined touchscreen_mmi kernel
module.
Change-Id: I0ede7303b71197e6fababcc338857778fd17d96e
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1454624
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Submit-Approved: Jira Key
we use dcv_pcm as ramping function
instead of digital volume gain.
when adev_open ,init all control , digital volume gain control will cost about 2s.
delete nouseful digital volume gain control to optimze the init time.
This reverts commit 7e3f682085432db213d8f35d649fef11b8951ff0.
Change-Id: I137fc78b8f934a6f008d30fbed92b2bb3572387d
Reviewed-on: https://gerrit.mot.com/1468340
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
Among the current products only Racer_turbo and Racer support dynamic
refresh rate capability. This feature needs to become optional
in LSI driver.
Change-Id: I669fef68fbd65f9227ceae4d3adb80091b60394a
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1465946
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Forcing calibration on power up helps with getting better aligned
base line signal. Make this option configurable via device tree for
backward compatibility.
Change-Id: I7fc2ea3176cbad97bcd3719bfc34628c7e6c2b02
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1464680
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
LSI touch requires to update its register at the address 0x4c
with the value of effective display refresh rate. This commit
adds notification mechanism aloowing display driver to send
notifications whenever refresh rate needs to change. This new
feature is optional and can be enabled via device tree
property sec,refresh-rate-update.
Change-Id: I0ec213ad41fc2177364b61a1c6ea6250036274f6
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1461926
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Read EPP power capabilities. Provide this information
in tx_capabilties sysfs file.
Also use this information to set the dc current limit.
A new sysfs entry has been provided at force_idc to
override this.
Change-Id: I27102a273ee14bc878a5026b99ebacb6fb23e430
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1461865
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
According to CTO-Audio colleagues suggestion, former stereo products,
such as Lake, Doha, volume ramp only takes effect on the top speaker,
the bottom one doesnt need it. In order to align with former products,
they asked me change SofiaRow, left channel is the top one.
Change-Id: I83c16d2b5e3ce2c2c59f6383d892e429873fa90e
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1463746
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
Awinic AW8697 uses special wave form for oscillator calibration only.
This commit decouples haptics and calibration wave form files.
Change-Id: I94d32e8ce472a1d8a62a2c0287645682d44077a4
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1459130
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Only turn off from usb when a transmitter is attached.
Currently, if a usb cable is plugged in after bootup the
firmware will not flash because the chip will be stuck in
an off state. Fix this by updating the wls on/off logic -
1) If the usb cable is plugged in and a charger is attached
turn it off
2) If the boost is on, turn the charger on no matter what.
If a charger is attached it will turn off again
3) If the usb cable is disconnected, turn it back on
Change-Id: If5beaefc7983d6ced4a889c02b9f335308b28f13
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1456618
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Cannot get rid of all stubs at this time.
Mot-CRs-fixed: (CR)
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Change-Id: I9fef548871ce6d65ccd8c3ca32c784786b1d5bf2
Reviewed-on: https://gerrit.mot.com/1458687
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key