Commit graph

929 commits

Author SHA1 Message Date
Konstantin Makariev
2fe97f2b5e fixup! (CR) sec_mmi: fix format conversion
Get rid of unused variable compile error

Mot-CRs-fixed: (CR)

Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Change-Id: I42835e3dd0c81e0f095726b2d705cffa293e1ce8
Reviewed-on: https://gerrit.mot.com/1469956
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-12-10 17:46:35 -06:00
Konstantin Makariev
49e0db07c5 sec_mmi: fix format conversion
This commit fixes format statement missing conversion symbol.

Change-Id: I6c31916116a147377856f28f990e6bb67f71328a
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1469952
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-12-10 17:25:51 -06:00
Konstantin Makariev
8156ee601a fixup! (CR) sec_mmi: wakeup gestures support
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
2019-12-10 16:52:04 -06:00
Konstantin Makariev
27e9f6d054 fixup! (CR) sec_mmi: wakeup gestures support
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
2019-12-10 16:07:09 -06:00
Konstantin Makariev
59da923193 sec_mmi: wakeup gestures support
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
2019-12-10 15:21:51 -06:00
Ryan Lattrel
3294fe5535 p938x_charger: program fod and q factor
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
2019-12-10 09:40:33 -06:00
litong
9c5394f8c2 Synaptics updated driver code to V2
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
2019-12-10 04:39:04 -06:00
haojl2
15670cff8d goodix_gtx8_v1430_mmi: update fw in moto touch script.
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
2019-12-09 05:40:11 -06:00
haojl2
77189b4068 goodix_gtx8_v1430_mmi: register moto touch class.
TP:
Register touchscreen_mmi to support firmware update, get panel and
ic info.

Change-Id: If609d80076d1aee1aa3a509b8e4bfecb4f51498a
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1454625
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-12-09 04:46:27 -06:00
haojl2
75c9b13ad6 touchscreen_mmi: Add touchscreen class for moto product.
TP:
Touchscreen mmi contains moto touchscreen features.
For curent version.
1. Create touchscreen class
2. Create panel info sys entries.
3. Create irq, reset, buildid sys entries.
4. Create firmware update sys entries.

Change-Id: I6938eda4fd20dc4e483e68cc1926bd53402e2224
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1447777
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-12-09 04:12:13 -06:00
haojl2
04d3cc75f8 goodix_gtx8_v1430_mmi: support touchscreen_mmi.
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
2019-12-09 04:11:47 -06:00
Hujun Liao
8f491c1f46 Revert "(CR): ASoC: add APIs to access digital volume in tas25xx algo"
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
2019-12-09 00:36:03 -06:00
awhite6
74517246b3 drivers: sx933x: add usb recal for cap sense
Add build config option to recalibrate cap sense upon
insertion of USB.

Change-Id: Ib774aa418d66cd769b5d1149d61b30619b9b4ed7
Signed-off-by: awhite6 <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1467066
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-12-06 09:31:47 -06:00
Konstantin Makariev
e581210daa sec_mmi: make dynamic refresh rate optional
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
2019-12-04 15:58:56 -06:00
Konstantin Makariev
fb8cc8d8bf sec_mmi: force calibration on power up
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
2019-12-03 15:09:27 -06:00
Konstantin Makariev
1dba8e5e7f sec_mmi: refresh rate update support
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
2019-12-03 14:00:44 -06:00
Ryan Lattrel
73ff838453 p938x_charger: read epp capabilities
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
2019-12-03 13:25:29 -06:00
zhouwl
af55ab1653 ASoC: tas2562 digital volume
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
2019-11-29 02:54:25 -06:00
Ravi Vembu
5bcc95b1d9 regulator: slg51000: Set SLG IRQ to trigger low.
The SLG51000 internal programming configures the Device Interrupt
Request to trigger low. Change the driver to match that.

Change-Id: I7c2a68c1a77aaee71d95734cfdd40126d63573bf
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-Fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1461311
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
2019-11-25 18:46:24 -06:00
Andrew Abbott
ccbefc824e Revert "(CR): MMI: Init batt health to GOOD"
This reverts commit 2740a7002d46061d719b3efd26c5b8dcaf649676.

Change-Id: Ib2e6bc528cbb99c3a505d5749bb718dca3c2c228
Reviewed-on: https://gerrit.mot.com/1460282
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-11-25 09:36:08 -06:00
Konstantin Makariev
7c5ca9a938 aw8697: support moto vibrator feature
Addding Moto vibrator feature allowing to sync haptics with
ringtone. This commit combines several changes from AW8695
driver.

Change-Id: I0709369dc30168dff056b05e1d618e9d22d5575d
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1459175
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-11-21 16:03:31 -06:00
Konstantin Makariev
09bfb85b15 aw8697: decouple haptics and calibration wave forms
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
2019-11-21 16:03:23 -06:00
Ryan Lattrel
90919f9fa4 p938x_charger: Only turn off from usb when charger attached
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
2019-11-21 09:25:59 -06:00
Konstantin Makariev
fa1e9f712e fixup! (CR) sec_mmi: remove MMI_STOPSHIP
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
2019-11-20 16:25:20 -06:00
Konstantin Makariev
f0a1b04362 synaptics_mmi: fix clang errors
Fix errors and warnings to please Clang

Change-Id: I067048d25eca6e35624574ea466afe8616fc3648
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1458064
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-11-20 09:16:20 -06:00
Konstantin Makariev
91402c9907 sec_mmi: remove MMI_STOPSHIP
APIs missing at bringup stage were finally added. Thus removing
MMI_STOPSHIP label.

Change-Id: I747e30a02a4f3d782473fe347a3c26a7679fa751
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1458065
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-11-20 09:16:12 -06:00
zhouwl
165062903d ASoC: tas2558: add digital volume control
TI TAS2558 provides digital volume control(DVC_PCM),
it ranges from -110dB to +2dB.

Change-Id: Icf44af99d4d22fa8a364bc6f0baa9a6599887b04
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1456965
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-11-19 22:48:12 -06:00
wengjun1
7a906ba1ed dlkm: ft8756: Improve the fixed that touch can't works
Because now we found that when the screen is on, the touch has a
low probability of not working. It seems that the firmware of the touch
works abnormally, so change reset the touch to download firmware
when status is abnormal for recover touch function.

Change-Id: I4ffee9706012f3e63e124da5ac5cb31954ebdbde
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1458107
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-11-19 21:30:16 -06:00
wengjun1
40dea5aed3 dlkm: ft8756: Fixed the touch can't works when resume
- Because now we found that when the screen is on, the touch has a low
probability of not working. It seems that the firmware of the touch works
abnormally, so reset the touch when status is abnormal for recover touch
function.

Change-Id: I1f6f80cb06d5e04bb585e6646620f597757655f7
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1457062
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-11-18 23:51:57 -06:00
haojl2
8579a18472 goodix_v1430: reload touch cfg after fw update successfully
If touch firmare indeed need update, after update firmware successfully,
config file need reload to IC.

Change-Id: I3a9e2a2af18c9dc02416d04d5122674e1a4524b5
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1457015
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-11-18 20:09:28 -06:00
chailu1
2c3d417c78 Charge:fix slab out of bounds risk
There is a risk if enum mmi_temp_zones value > num_temp_zones.
This will casue pointer point to a illegal memory address.

Change-Id: Ib34f471d55e7b68e8cf11ec07ede19fbf5f22815
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1456934
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-11-18 03:49:40 -06:00
Haijian Ma
65c2b4a165 MMI: Init batt health to GOOD
batt health is only set  in normal mode, so batt health is unknown
in factory mode, so Init it to POWER_SUPPLY_HEALTH_GOOD.

Change-Id: I3c8de02fc8e07c9d1bdc65ea4b530927d1eec343
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/1456963
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-11-18 03:45:53 -06:00
Lu Chai
38b0ea5d0b Revert "(CR):Charge:fix slab out of bounds risk"
This reverts commit a0fd67d78c59fb86dcedf1a127131ee9db51848b.

Change-Id: I04abd6b4f19228fe83b5e2a70fd256d0bb3be9da
Reviewed-on: https://gerrit.mot.com/1456928
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2019-11-18 02:31:47 -06:00
chailu1
f30ab4d58b Charge:fix slab out of bounds risk
There is a risk if enum mmi_temp_zones value > num_temp_zones.
This will casue pointer point to a illegal memory address.

Change-Id: Ifa68a3b5325063d07a3ccddbb8636644a58fe1c6
Reviewed-on: https://gerrit.mot.com/1456222
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hongshu Lou <louhs1@motorola.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-11-18 02:00:01 -06:00
Haijian Ma
bde9316909 MMI: fixed unit can't recharge issue
unit can't recharge after charge full.
When unit charge full, it will get the forced capacity 100%, so
chrg_step can't be switch to STEP_NORM from STEP_FULL.

Change-Id: Idd1a963b34cdbd14b446160948315d45704a0d88
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/1456841
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-11-18 01:57:22 -06:00
chailu1
5b2cb08e74 Charge:config step charge defaut state to none
Now defaut step charge state is STEP_MAX, this caused incorrect
initial state while connect usb cable power on. So config defaut
state to STEP_NONE,this will trigger recalculation correct initial
step charge state by battery data.

Change-Id: If29839b0bce596ff21d7bc99097259085225a583
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1455334
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-11-15 00:23:27 -06:00
chenlj2
6c231e0ffe DLKM/sar:reduce kernel log foot print
optimise the log output mechanism to reduce kernel log foot print.
Limit number of print messages in run time. If necessary, debug
messages can be truned on dynamically through kernel debug interface
echo "file filename.c +p" > /d/dynamic_debug/control,
such as abov_sar_mmi.c

Change-Id: Ibff358b0c6db949b9dacfa3fbe14f4fe574eef6d
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1455180
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2019-11-14 23:52:05 -06:00
liuyc20
4f663041e8 vl53l1: fix xtalk calib data abnormal.
customer.algo__crosstalk_compensation_plane_offset_kcps = -1907257729
Sometimes get a huge xtalk_calib data. it maybe because glasses are too wonderful.
The data will recovery after retry xtalk_calib test.
For this situation.Setting a default golden data to xtalk calib.

Change-Id: I6d3d2b35ed7ef56502ce13e9446682d94ea36bcc
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1456036
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Qiu Du <duqiu2@motorola.com>
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Lei Chen <chenl18@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-11-14 22:30:40 -06:00
Ryan Lattrel
2cd4360288 p938x_charger: disable wls on usb insert
Disable the wireless charger when usb is inserted,
and turn it back on when removed.

Change-Id: I6ffb42ebc63c3a7d4b365351ce36e93ad7a60445
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1451620
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-11-14 09:34:06 -06:00
zhouwl
252f409602 ASoC: add APIs to access digital volume in tas25xx algo
In order to implement speaker volume ramp feature, Ti ask us to
adjust the digital volume in algorithm, add API functions.

Change-Id: I3e27bf5be4c11bc79a06fc9dd286f7e3dd75dfea
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1450740
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-11-13 19:55:42 -06:00
Dharmesh Patel
7c1ccc6b4f DLKM/Sar: optimise the log output mechanism
Change-Id: I67a251b3916380f394cf2b8d27ea723a11263717
error: sx933x_sar.c:1151:5: warning: too many arguments for format
fix: for now removing __func__
Reviewed-on: https://gerrit.mot.com/1454846
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-11-13 11:22:53 -06:00
cmsantos
0de5255283 power: bq_27426_mmi: FG driver port
First port of BQ27426 FG driver, based on Defender project.
This version handles two different FG IC's.

Change-Id: I0f06b90ffafd35780c067d995d9a7738d48db567
Signed-off-by: cmsantos <cmsantos@motorola.com>
Reviewed-on: https://gerrit.mot.com/1447519
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2019-11-13 10:11:52 -06:00
chenlj2
2cc02b784d DLKM/Sar: optimise the log output mechanism
add error log output when driver work  abnormal
add log output when the driver is loaded

Change-Id: I1ce2f4f4221f22ad41a4a8a6af42effeaaf976d6
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1453215
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jiyue Cui <cuijy2@lenovo.com>
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2019-11-13 02:12:47 -06:00
Ryan Lattrel
d86bd726b8 p938x_charger: fix tx mode conflicts
When entering tx_mode the system reports it is charging,
fix this by forcing dc_in_en to be off and also set
dc_suspend.

Additionally, do not allow entrance into tx mode when
attached to a charger, and force tx mode off if a charger
is attached while it is on.

Change-Id: I2732db6cdcadc613fddaa6e29679ba3f35a728fe
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1450499
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
2019-11-11 13:23:11 -06:00
Ryan Lattrel
65e562459f qpnp-smbcharger-mmi: fix wireless charging state machine
State machine doesn't work with wireless charging because
it does not trigger the charger_present variable.

Account for this by also checking for wls online.

Change-Id: Ib7ce5d3ec1374df614c196329820b766032ad5bf
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1451157
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
2019-11-11 10:50:24 -06:00
Konstantin Makariev
94adf3d4bf sec_mmi: make Racer_turbo using stubs
Bringup Samsung LSI touch in Racer_turbo

Change-Id: Icbe102dd1eb9da96e518d6fb77eaeca17315d69c
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1451123
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-11-07 15:58:12 -06:00
Haijian Ma
20ee02bc1d mmi: fixed build error
fixed build
error

Change-Id: I6bbd5dff34ed09f5f35a836954a71f31b3017f16
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/1450773
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-11-07 05:07:05 -06:00
Haijian Ma
3ab7cf9976 mmi: disable usbin OV irq in factory mode
pmi632 trigger usbin OV irq frequent in factory mode, so disable
OV irq in factory mode.

Change-Id: I7dce3ce91bb57f25ff68b8e3b2c210b4e49ac1cf
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/1450689
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-11-07 03:42:17 -06:00
litong
0648d2d328 Add racerl to Target product
TP:
Add racerl to Target product to finish
bring-up of sec_mmi touch screen

Change-Id: Ib2e4cce43916f278263f19fcb69fd8389182fd01
Reviewed-on: https://gerrit.mot.com/1450086
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-11-07 03:37:05 -06:00
wengjun1
d8f62a4f2b DLKM: touch: Improve novatek 0flash driver
- Add interface for RF desense test.
echo 0 > /proc/nvt_monitor_control,touch keep in active (Normal Active)
echo 1 > /proc/nvt_monitor_control,touch keep inactive + doze (Normal Idle)
Press power keep or let phone enter into suspend, touch keep in sleep or power
Off  Mode,

Change-Id: I20d6103a605c4f8775b6f0c5a3eb60c1e2ef29d2
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1450667
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-11-07 02:59:36 -06:00