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
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
- 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
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
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
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
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
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
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
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
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
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
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
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
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
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