- 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
add ti2558 brown protection function
1. currently just have limit voltage setting:
a.ti,lim_th_max is the start limit voltage, when
voltage less than the voltate,
smart pa will decrease gain step by step.
b.ti,lim_th_min is the immediately limit voltage,
when voltage less than the voltage,
smart pa will decrease the min gain .
ti,lim_th_max & ti,lim_th_min defined at product dts.
2.how to enable.
we can set TAS2562 BROWNOUT PROTECT ENABLE On to mixerpaths.
3.when HW test the voltage ,we will set in dts and enable by mixer_paths.
4.If HW need to adjust the min gain, need add more code .
if there are the request ,need to achieve in the future.
fix some no function.
1.fix tas2562_codec_read & tas2562_codec_write no function.
2.fix Amp Output Level no useful.
Change-Id: I6e4be083063f009246d3a4a478c22fa6aee8467f
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1435926
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
Replace all atomic flags with bits, and ensure that
no one can call __pm_stay_awake twice with out a
__pm_relax first.
Change-Id: Ibabbd2991b7db3b3e4a08bfee621f8465f01c0bb
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1450299
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
Update power supply changed on attach to alert the
qpnp-smbcharger-mmi driver. Also add getters so
smb5 driver can get wls current voltage.
Additionally, increase the EPP/BPP maximums to the
real expected max.
Change-Id: Ic03e51d6de74d1c2b8caffe4d00eed488f791519
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1442838
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
Add wireless charging recognition to the smbcharger module.
When a wireless supply is attached indicate a normal
charging rate.
Change-Id: Iea39f5af9924b8759bd80e55b04b9d66de0a3557
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1442837
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Increase the size of fwbuf, there are some dummy bytes when do
spi read and write, cause kasan errors.
Change-Id: Ifab4c686c4b056ed2327c6b43c446f49be94b27a
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1449952
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
TP:
resture irq based on gesture function status, not by sensor flag.
This can make sure TP works normal all the time.
Change-Id: I095413b29d63319dda300c3b5f3c24e9e703416f
Signed-off-by: haojl2 <haojl2@motorola.com>
(cherry picked from commit 920337119a66daba4413d7eade7dc1885b2ec8f7)
Reviewed-on: https://gerrit.mot.com/1448176
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
TP:
When USB connected, notify this info to firmware.
This will help firmware to handle ghost touch issue.
Change-Id: I86ac9a721eb6fdca3cb3a9c38d1b55290f6b8175
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1448175
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Awinic 8697 has unique features and is incompatible with existing kernel
drivers.
Change-Id: I1507b1e0a43c1c52a8c7663189d878f5d7cdd98f
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1447947
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Add the PM7250B_SUBTYPE definition in case Kernel qpnp-revid.h
does not define it in some platorms.
Change-Id: I7e32ff332dfb13ac0fc0387a42dc5ae596bf4d00
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1447619
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
There is no FAST_CHARGE_V5 for PMI632/PM8150B/PM7250B
so remove it from the definition.
Change-Id: I6b77ad9e947e6dec83059787e78b995c83e14d21
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1447603
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
himax_v2:
Himax uses two firmwares: daily use and factory.
Daily use firmware includes more effect and gestures, so it's bigger.
We cannot merge daily use firmware and factory firmware,
it exceeds IC sram limit.
Change-Id: Icf2574bc9fbb7e20558b17dee3e898b7a96da0c3
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1447041
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
- set diag_cmd to 0 when resume, because when use adb to read rawdata,
diag_cmd may set to other values, cause tp no function when resume
if not set to 0.
- Delete FAKE_POWER_KEY_SEND, becuase we use single tap, and not send
power key event.
Change-Id: I01c97ccb5b8734694695fd1f6e2acb2ab9e565bf
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1446449
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
There are 2 failure cases when core data structure gets released
and external modules have no knowledge of it. Kernel panics
attempting to address memory that was released already. This
change ensures core data pointer of external modules structure
only valied when device probed successfully.
Change-Id: I4d2ddbb9c8010aba113afd5bff56a1496502bcd1
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1446705
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Driver loads external modules asynchronously and keeps loading them even
when touch IC not present. This change will flag to insert routine
whether to keep loading modules or not depending on probe results.
Change-Id: Iade575c85d9760a4f76b21f18752f6c2535c0146
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444591
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Moved rerun APSD for SDP/OCP/Float to smb5-lib.c
so revert it in dlkm
Change-Id: I28f058fb2b074b52b40bf3df614b88cbbe03d3ab
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/1445264
SME-Granted: SME Approvals Granted
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
Return chip values with an 0x prefix so that the bash
init script can compare hex values with > and <.
Change-Id: If3c1ef37acf550433d114718a66b248d7b1e5e32
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1442938
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
L(CR) (CR) we need to make sure to set intval
to 0 at the end of chrager presence detection because
it can report incorrectly while in sink mode(aka otg cable)
Change-Id: Ib7b93ec77929d4c738498fe3fee2e78d556661ce
Signed-off-by: Curtis Porter <porterc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1438655
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
(cherry picked from commit 0a86b47264b81c699ac20613b3dbbd7a643708a2)
Reviewed-on: https://gerrit.mot.com/1444680