Commit graph

1,355 commits

Author SHA1 Message Date
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
liaohj
10de9bfaa9 tas2562:fix complie fail.
sofia_row:audio:add ti2558 brown protection function
fix complie fail.

Change-Id: I872af492dcb1a576d0316ed57e65e664a50d0e75
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1450637
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-11-07 01:00:11 -06:00
liaohj
fb5e35ab7b audio:ti2558:add brown protection function
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
2019-11-06 23:59:45 -06:00
Ryan Lattrel
9d2273b8d9 p938x_charger: replace atomics with bits
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
2019-11-06 14:43:46 -06:00
Ryan Lattrel
96aabd67e1 p938x_charger: update on attach, increase voltage
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
2019-11-06 14:43:42 -06:00
Ryan Lattrel
7904c427af qpnp-smbcharger-mmi: add wireless charging
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
2019-11-06 14:43:37 -06:00
wangyq13
2188d41c89 nova_0flash_mmi: increase the size of fwbuf
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
2019-11-06 04:33:52 -06:00
haojl2
968871325d nova_0flash_mmi: enable irq by gester status
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
2019-11-06 04:33:47 -06:00
haojl2
1b609ecc23 nova_0flash_mmi: notify firmware when usb connected
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
2019-11-06 04:32:54 -06:00
haojl2
ac8b973dac nova_0flash_mmi: update fw in thread
TP:
When TP resume, update firmware in thread.
This will increase screen on time

Change-Id: I956ac5c40337e0d635974e274d334c7098d42dc5
Signed-off-by: haojl2 <haojl2@motorola.com>
(cherry picked from commit a00b905f2606315cba8928d7d24ac1fb10013b07)
Reviewed-on: https://gerrit.mot.com/1448174
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
2019-11-06 04:32:46 -06:00
huangjq9
decf93e1ba stylus_pen: enable interrupt handler after wq inited
- enable hall's interrupt handler need after workqueue inited;
   - fix the stylus_pen probabilistic cause of the kernel panic
     at startup.
- optimize the hall drivers's destruction process;

Change-Id: I02f455465e089e7822dca7f663c12fe955ea7603
Signed-off-by: huangjq9 <huangjq9@motorola.com>
Reviewed-on: https://gerrit.mot.com/1449781
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
2019-11-05 23:55:14 -06:00
Konstantin Makariev
11e9474c93 aw8697: add vendor suggested kernel driver
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
2019-11-04 12:49:19 -06:00
Konstantin Makariev
791693adc8 msm_drm_notify.h: keep in dlkm area
MMI drivers use DRM notifications, so keep include files in DLKM
area.

Change-Id: Ie631ef2c7bcea77d2960a280eac51eb0aa159596
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1448030
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Tested-by: Jira Key
2019-11-04 08:21:13 -06:00
yanyh2
5ab076b7d2 add PM7250B_SUBTYPE definition
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
2019-11-01 03:10:20 -05:00
yanyh2
f74a17a92a correct the charging state enumeration
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
2019-11-01 02:10:21 -05:00
yanyh2
868208ff28 support PM7250B
Add PMIC subtype PM7250B for battery charging
on SM7250 platform products.

Change-Id: I35d3c3a7aa7144b8ca3cd68dce4b75dce4b539e8
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1447558
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
2019-11-01 02:10:13 -05:00
wangyq13
bd87473f10 himax uses two firmwares: daily use and factory
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
2019-10-31 04:27:00 -05:00
wangyq13
a67591eff9 himax: merge patches from vendor, fix some potential errors
- 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
2019-10-31 04:26:55 -05:00
liuyc20
9a990d58ea vl53l1 driver-version update to 13.1.1.2129
change list:
update vl53l3 tuning setting

Change-Id: I71c6d85efec5bb6b565fa320bdaabab9c3f2b994
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1427656
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lei Chen <chenl18@motorola.com>
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-10-30 22:07:18 -05:00
Konstantin Makariev
b50e5b65f8 goodix_gtx8_v1430_mmi: fix kernel panic
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
2019-10-30 16:04:39 -05:00
Konstantin Makariev
5e5e732df9 Revert "(CR) goodix_v1430: load external modules only when probe succeeds"
This reverts commit b5745152b3a6f696506c7c28ad3431b0a9c6078e.

Mot-CRs-fixed: (CR)
Change-Id: I24feaadc62c435ffc60280a654abe7c97f7d3b00
Reviewed-on: https://gerrit.mot.com/1446704
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-10-30 16:04:18 -05:00
Konstantin Makariev
d6815c52e9 goodix_v1430: load external modules only when probe succeeds
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
2019-10-30 08:25:25 -05:00
Haijian Ma
bc7bd5087b power: revert "add work for charger type correction"
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
2019-10-29 20:42:49 -05:00
Haijian Ma
6b50e2ea72 Revert "(CR): charging: fixed multiple rerun apsd"
Moved rerun APSD for SDP/OCP/Float to smb5-lib.c

CRs-fixed:(CR)

This reverts commit a0c71ac3b034f0cbb6a600047851455da65b9b1f.
Change-Id: Ie312ace3d33bbf384abea29c51de6949888d894d
Reviewed-on: https://gerrit.mot.com/1445263
SME-Granted: SME Approvals Granted
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2019-10-29 20:41:54 -05:00
Haijian Ma
050bd692b6 Revert "(CR): charging: fixed logic error"
Moved rerun APSD for SDP/OCP/Float to smb5-lib.c

CRs-fixed:(CR)

This reverts commit b1102eb24c2caa51f8c5138aadb1ac3b2b7225a9.
Change-Id: Ieaec244e6036d9a9522290171635082f9339fb88
Reviewed-on: https://gerrit.mot.com/1445262
SME-Granted: SME Approvals Granted
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2019-10-29 20:41:23 -05:00