Commit graph

1,803 commits

Author SHA1 Message Date
litong20
ac7db4fdec put register_panel_notifier into ts_mmi_worker_func.
When there is no need to find the active panel, that is,
the panel_status is always 0, register panel notifier normally.

Change-Id: I2aef34a1fd7ca310bf1fc6a4d9501413208d14c9
Reviewed-on: https://gerrit.mot.com/2019893
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-07-21 01:29:08 -05:00
litong20
988952bcc6 Delayed active panel detection
TP:
When the touchscreen modules loads faster than display,
the acive panel may not be found. So we look for the
active panel again through delay work.

Change-Id: Ife617c4cf19035120c5f381bb6da8f28346a9f34
Reviewed-on: https://gerrit.mot.com/2013538
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2021-07-20 21:23:18 -05:00
tanhua1
5981ab07e5 backlight: fix lm3697 probe fail panic
[    3.228313]  ti_lmu_backlight_probe+0x63c/0x6e4 [leds_lm3697]
[    3.228321]  platform_drv_probe+0xac/0xf0
[    3.228326]  really_probe+0x260/0x660
[    3.228330]  driver_probe_device+0x64/0x100
[    3.228335]  device_driver_attach+0x6c/0xac
[    3.228339]  __driver_attach+0xdc/0x184
[    3.228344]  bus_for_each_dev+0x9c/0x108
[    3.228348]  driver_attach+0x24/0x30
[    3.228352]  bus_add_driver+0x100/0x1e0
[    3.228357]  driver_register+0x78/0x114
[    3.228361]  __platform_driver_register+0x44/0x50
[    3.228370]  ti_lmu_probe+0x18c/0x1e4 [leds_lm3697]
[    3.228377]  i2c_device_probe+0x260/0x308

Change-Id: I470205dc144ef3219bdf4000ca197f9221f14f21
Signed-off-by: tanhua1 <tanhua1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2015311
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
2021-07-19 01:27:39 -05:00
tanhua1
ee2498316b backlight: add lm3697 led boost configuration
support lm3697 led boost configuration
1.  boost ovp
2.  boost freq

Change-Id: Id7914c7e6f65c20088f01bb3e3b179d16dce6e37
Signed-off-by: tanhua1 <tanhua1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2014892
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-07-19 01:27:15 -05:00
yanyh2
d365f54dd6 use bi_bootmode to query the bootmode
As the bootmode cannot be fetched from bootarg in
SM8450 platform, so use common API bi_bootmode to
get the bootmode to support all platforms.

Change-Id: I16e9955d92649e84d14ee95e34c489faa2722c62
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2014700
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-07-16 00:31:04 -05:00
wengjun1
a398202268 Cypfg: dlkm: Improve gcore_mmi driver
- Change ioctl to read for fix permission issue.
- Change mp test firmware.

Change-Id: I316277b08add633d39641854bb3936ee11beaca5
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2008123
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-07-13 21:40:22 -05:00
a7301c
8c03fb9ef3 fixup! (CR): mmi_info: read all from bootconfig
Signed-off-by: a7301c <a7301c@motorola.com>
Change-Id: I187592f939fa9bf453bd4018b3441da07186a4d0
Reviewed-on: https://gerrit.mot.com/2011370
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Ling Jin <lingjin@motorola.com>
2021-07-13 10:46:27 -05:00
qianlong
1f1f1b568d mmi_info: read all from bootconfig
After 8450 rebased to qcom FC, the bootconfig feature begins enable.
So that some androidboot.* canot be found in the cmdline,
and case can not read it.

When bootconfig enabled, read it from /proc/bootconifg file.

Change-Id: I77b8e023c1fbb85ee941663878823c26d357df2e
Signed-off-by: qianlong <qianl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2010969
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2021-07-13 07:26:00 -05:00
tanhua1
b720cdf2d7 backlight: add lm3697 hbm current mode configuration
Support lm3697 hbm current mode configuration.
Default is 20mA, if any project support hbm,
add current-mode with current level in dtsi.

Change-Id: I5f4afec88b669104ca872048186e23f8ff8194a8
Signed-off-by: tanhua1 <tanhua1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2007975
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-07-13 04:45:26 -05:00
qianlong
67d1b25646 mmi_info: read bootreason from bootconfig
After 8450 rebased to qcom FC, the bootconfig feature begins enable.
So that androidboot.bootreason canot be found in the cmdline,
and case read bootinf is NULL.

When bootconfig enabled, read it from /proc/bootconifg file.

Change-Id: I9fe0889518e6c95dba27a8ab1db0b3981c18c58e
Signed-off-by: qianlong <qianl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2009558
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2021-07-12 21:34:35 -05:00
xizx
40ea1a04ff utags: reads bootdevice name from bootconfig
After 8450 rebased to qcom FC, the bootconfig feature begins enable.
So that androidboot.bootdevice cannot be found in the cmdline,
and cause utags module to load failure.

When bootdevice cannot be found in the cmdline, fallback to read
it from /proc/bootconfig file.

Change-Id: I4324fcbc0345b246308bae95af03e0d99eaff399
Signed-off-by: xizx <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/2008778
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-07-12 00:49:51 -05:00
xuwt2
cd073b1eef qpnp_adaptive_charge: Add adap_reinit
In 8350/7325 platform, batt_psy needs to wait for
Glink module to complete,
therefore, the qpnp_adaptive_charger module init will faile
due to batt_psy not ready.
Add adap_reinit_work to rerun module init when it failed by
batt_psy not ready.

Change-Id: Ib73aa4dcbe9e069c36ec4Montana415601ab6991e795
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2008716
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-07-10 20:13:16 -05:00
chailu1
dc475e8c19 charge: resolve sc85xx charge icon dont disappear
There are 2 cases
1.SC85XX reverse voltage from battery to VBUS through sc8551
mosfet parasitic diode. this case vbus voltage is less than battery
voltage

2. SC85XX reverse voltae from battery to VBUS through sc8551 working
mosfet. this case vbus is about 2:1 battery voltage

Refer to https://gerrit.mot.com/#/c/1852409/

Change-Id: Icc80bd63f20f27f294100aabeae3267544ba0fc5
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2007936
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-07-09 04:25:49 -05:00
chailu1
e15fbca94d cp: improve 8549 read status register
While update status register remove "if" judge. so the
relust could is true or false. otherwise only true.

Change-Id: Ie4961fd19c1eeaf10308a5b518020d3ee697d2d5
Reviewed-on: https://gerrit.mot.com/2007602
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
2021-07-09 04:25:47 -05:00
mahj8
58898c9e98 modules: add leds-indicator-pwm.c driver
add leds-indicator-pwm.c driver to control pm6375 gpio8
for charging leds

Change-Id: Ie14136d11016185eb4a0eb3e816f6e6f5a742f1a
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2007937
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-07-09 04:14:21 -05:00
xuwei9
76e4591f92 parallel:init thermal parameter at high temp
At high temp conditon. thermal level was 4 at begining.
the thermal parameter was not initialized.

Change-Id: I787cfeb6c2ab1695a90496ba0c08e0ce4c17fffc
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2006952
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-07-08 21:17:18 -05:00
zhuangnk1
7df3fd261b Rogue PRC ST54x driver
Add ST54x driver for Rogue PRC ese
bring up

Change-Id: I8b49bc09ce96eaf3fdb18bc8398629cba1b76d23
Signed-off-by: zhuangnk1 <zhuangnk1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1993975
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zishang Zhou <zhouzs1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-07-07 05:00:00 -05:00
litong20
17880786ac Close the calibration operation after fwupdate.
TP:
After the touch fwupate, if the config id is different
from before, the calibration operation will be tiggered.
But try not to add calibration operations in touch driver.

Change-Id: Id82c331c4617a03cb2351987380eae96d837fb7e
Reviewed-on: https://gerrit.mot.com/2002079
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-07-06 23:09:07 -05:00
yanyh2
e02e59d144 Modify bm ulog and mmi chargers for Android S
Move the charger driver from mmi charger to be compatible with
Android S build.
Adjust the build make file to be compatible with Android S build.

Change-Id: I67969e25b691f9dfe64b43f65e42ad6e0545ebb6
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2003174
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-07-06 07:11:18 -05:00
wangyq13
f67f735d4e focaltech_v2_mmi: disable focaltech driver drm notify
- disable focaltech driver drm nofity, use touchscreen mmi drm notify
- reduce tp reset time, if tp is invalid, retry
- add pintrl function for touchscreen mmi, to reset touch ic

Change-Id: I2a9c6fdb806905d2e55cee6aa1908941c1c4242f
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2003119
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-07-06 02:59:47 -05:00
chailu1
1125771201 ffc: add ffc featrue
Flash fast charge
At different battery temperature zones, use different
CV and charge iterm.

porting from https://gerrit.mot.com/#/c/1551505/

Change-Id: I8558b47f771b6785af0f7d75ea9093fc5af17c54
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2001406
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-07-04 22:45:14 -05:00
chailu1
9a3090966e CP: Remove unuseful code
charge pump
Remove unuseful code

Change-Id: Id27b93e548f41c182e57011e1656d402154ccf8f
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2001057
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-07-04 22:06:28 -05:00
xuwei9
b51b72177b qc3p:workaroud qc3p shalcomm adapter
Shalcomm qc3p adater have probability stop response.
So kernel rerun APSD twice and operat qpqm regulator
So skip first APSD for increasing voltage.

Change-Id: I0d821081758439bbf27c2098dde0ef8bce5ba8f3
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2001546
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-07-04 01:48:40 -05:00
litong20
eba6280929 Modify the touchscreen report rate
1. When the interpolation is disabled, the report rate is 240Hz;
2. When the interpolation is disabled, and the refresh rate is 144Hz,
the report rate is 576Hz, else the report rate is 480Hz.

Change-Id: I863154a271d5968aab36d0bc3366f4597a30808d
Reviewed-on: https://gerrit.mot.com/2001030
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-07-03 05:08:24 -05:00
chailu1
017a307c61 CP: Use CP read battery voltage
charge pump policy read battery voltage using CP read
voltage,because
1. some product PMIC read battery voltage is not battery
cell but charge pump read battery cell voltage.
2. charge pump read battery voltage realtime is better than
PMIC

also refer to mtk solution https://gerrit.mot.com/#/c/1903322/

Change-Id: I6aa945eabe1527356b78ef53309369ee3c1d5df4
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1982444
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-07-02 04:36:17 -05:00
Ravi Vembu
bc98ea156c slg5bm43670: Update slg5bm43670 for Kernel 5.10
Fix the build error when making the slg5bm43670.ko. Also
Kernel 5.10 removed the regulator locking and locking is
implicit around the notifier call chain. Hence remove it for
kernel 5.10 and beyond.

Change-Id: I475868ae49f8fbbd7514fa43df41a3cd78d138ae
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-Fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1975249
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jian Luan <jamesluan@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-06-30 17:27:51 -05:00
xuwei9
0f97c8d407 QC3P:add afvc compensation voltage
AFVC enable project,add afvc compensation
voltage for qc3p policy algorithm.

Change-Id: I91b9fcf636c75e2664de04962caa8dd0cdf84bf4
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1997670
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-06-30 04:09:46 -05:00
xuwei9
09471c3c26 PD:add afvc compensation voltage
AFVC enable project,add afvc compensation
voltage for pd policy algorithm.

Change-Id: I0b108a911f2b4ba751e87200047b0a30eceeda0c
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1997668
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-06-30 04:09:25 -05:00
dengwei1
1d9a40e2e1 pstar: input touch update edge set
input touch
update edge set

Change-Id: I50f70348cef44d13213dddaee962b785d24ceced
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1997222
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-06-30 03:16:13 -05:00
dengwei1
84fa39e6b8 pstar: input touch add edge support
input touch
add edge support

Change-Id: I7b4ce8fbbb3e657a7e96eb73337e039c9fc3ef0a
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1995174
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-06-29 04:25:03 -05:00
wangyq13
b628d65b32 focaltech_v2_mmi: don't set gesture_mode enable as default
focaltech_v2_mmi:
Don't set gesture_mode enable as default. It should get value
from upper layer.

Change-Id: I0d949ae241296b18380b1a9bbb1a431be3944ab2
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1995507
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-06-29 03:37:08 -05:00
yanyh2
8f1226f4a5 Adjust the heartbeat time to 100s in discharging state
There is a case that will make the system suspend failing for
mmi,charger wakelock and last for several minutes.
The reason is that the system suspend has the same 60s request
intervals as mmi charger heartbeat delay work, which will request
mmi,charger wakelock.

To avoid this two task run into resonating state, it's feasible to
change the mmi charger heartbeat interval to 100s.

Change-Id: Ie076e5a3657a6c67ea7e9fdcefd3ef897bc81d02
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1995180
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-06-29 01:41:38 -05:00
cuijy1
412756ee07 sx937x:Android S bringup
change Makefile
add kernel_platform path

Change-Id: Ife163e2a041d05c5b184188b17e54a5468a6e3ad
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1992088
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-06-28 04:35:03 -05:00
litong20
4274b0c2a7 Solve the problem of incompatible type 'struct timespec64'
touchscreen_mmi_gesture.c:196:4: error: passing 'struct timespec' to
parameter of incompatible type 'struct timespec64'.

Change-Id: Iab92d18c89766cfe510957e33e9fcd35290becfe
Reviewed-on: https://gerrit.mot.com/1993292
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-06-27 22:14:05 -05:00
litong20
aa90e16b32 Slove the build error: redefinition of 'panel_event'
TP:
Error:
touchscreen_mmi.h:285:6: error: redefinition of 'panel_event'
kernel/msm-4.19/include/linux/panel_notifier.h:19:6: note: previous
definition is here enum panel_event {

Change-Id: Ia53d03c8ca03ecb8a62e679cb1e96aad64a9dcab
Reviewed-on: https://gerrit.mot.com/1992621
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-06-25 22:16:34 -05:00
daiss1
557ad02ce3 fpc_fps_mmi: Modify Makefile for Android S build ko
Modify:
Modify Makefile for Android S build ko

Change-Id: I5f9014ed4be793ab5226aad0dffadc2207bf5b1d
Signed-off-by: daiss1 <daiss1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1992052
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-06-25 09:50:03 -05:00
yanyh2
3737af3e2b adjust moto_f_usbnet driver makefile
Adjust the makefile to be compatible with Android S
version.

Change-Id: Ica70b178ae1b84dce47221c9018a4d35ff6c4363
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1992143
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haichao Li <liuhc3@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-06-25 08:23:45 -05:00
litong20
b1b4a16e76 Bring up touchscreen_mmi in Rogue S project.
1. Add DRM_PANEL_EVENT nofification for Andorid S.
2. support touchscreen_mmi and related modules build in kernel-5.10.
3. Use timespec64 instead of timespec function.

Change-Id: If0252015e10bff24c10d54b13df2e0f6aa156a6e
Reviewed-on: https://gerrit.mot.com/1965128
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-06-25 05:50:36 -05:00
litong20
bfda841cba Bringup stmicro_mmi touch module in kernel-5.10
1. warning: ftsFrame.c: comparison of array 'data' equal to a null
pointer is always false.
2. error: fts_proc.c: incompatible pointer types passing 'const struct file_operations *'
to paramet proc_create(DRIVER_TEST_FILE_NODE, 0777, fts_dir, &fts_driver_test_ops);
3. use timespec64 instead of timespec type.

Change-Id: I46604d6c23b0b69238638f162f390a76ef08eeb6
Reviewed-on: https://gerrit.mot.com/1990708
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-06-25 05:50:33 -05:00
wengjun1
d4b40823fe Cypfg: dlkm: Improve gcore_mmi driver
- Request irq change to thread.
- Resume will use thread instead of queue.
- Fixed irq panic issue.

Change-Id: I9e54944fc276d8554db2b5c23042693923f2e5cc
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1990930
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-06-24 20:49:07 -05:00
Jiyue Cui
908e2bdb8b Revert "(CR) sx937x:mv ps_get_state to work callback"
This reverts commit c2f744d014225db0494144bcc874be8d0c3dbf13.

Change-Id: I14be7ed2aefdd0522d70f6eb2ac2d7c9e2d8e254
Reviewed-on: https://gerrit.mot.com/1991079
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-06-24 09:27:28 -05:00
Jiyue Cui
409613e8c7 Revert "(CR) sx937x: change global_sx937x initialization position"
This reverts commit 3663cf0b4334e402577e63a4a04a2be39c64ffa9.

Change-Id: I4252469c9bd9c0820bbf8c3d6c4fbfd233bb2946
Reviewed-on: https://gerrit.mot.com/1991077
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-06-24 09:27:21 -05:00
litong20
b714bb172b Modify the ITO test command
Modify the ITO test command from "A4 04 FF FF"
to "A4 04 FF 01", delete unnecessary tests.

Change-Id: I7884e7503c233b71f7ba342f2386f82f3564898e
Reviewed-on: https://gerrit.mot.com/1991007
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Junpeng Wan <wanjp4@lenovo.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-06-24 07:38:34 -05:00
cuijy1
40459e9cfd sx937x: change global_sx937x initialization position
sometimes ps_notify_callback will be called
after reg_notifier immediately

at this time global_sx937x is NULL
will cause kernel panic

change global_sx937x initialization position earlier

Change-Id: I2379ea3113563268d36d5ddc0bb2cb5a510b15e7
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1990372
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hong Zhang <zhangh12@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-06-24 01:44:19 -05:00
cuijy1
b43fdec148 sx937x:mv ps_get_state to work callback
ps_notify_callback warnning for block function usb_psy_get_prop()
mv ps_get_state to work callback

Change-Id: I856879ccd0d727660bc92c945445a64b4a03fddb
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1977442
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hong Zhang <zhangh12@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-06-23 04:55:46 -05:00
xuwt2
e7b1662f5c qpnp-adaptive-charge: use mmi_charger to contrl battery charging
In QCOM 7350/8350, the kernel doesn't provide pmic-vote to control
battery charging.
the mmi_charger is an intermediate layer that forwards charging control
to ADSP Battmngr from the application layer.
By using USE_MMI_CHARGER macro definition that qpnp-adaptive-charge can be use
mmi_charger's func to control battery charging

Change-Id: I4da0604eabdadfc483143360ef7b7aad174cda47
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1983612
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-06-22 22:18:31 -05:00
yanyh2
6f4a7d98ab add vote mechanism support for mmi_charger
Add vote mechanism support for mmi charger so that
other modules can engage mmi charger interoperation.

Change-Id: I1772007c3acec199bd319601e3486bc7542c663f
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1984291
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-06-21 01:00:46 -05:00
xuwei9
8b36f90d46 qc3p:limit pulse not beyond max count
Limit Dp/Dm pulse not beyond
max count.
Refer to:https://gerrit.mot.com/#/c/1967489/

Change-Id: I63647bcf78d4fd9e1c737caf3a133cc0741ad4cd
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1985479
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-06-20 22:16:15 -05:00
litong20
9452937a05 use disable_irq_nosync in interrupt handler
When disable_irq is used in interrupt function, touch driver is blocked.

Call trace:  
        : __switch_to+0x328/0x358
        : __schedule+0x6f8/0x884
        : schedule+0x80/0xb0
        : synchronize_irq+0x7c/0xb8
        : disable_irq+0x70/0x9c
        : fts_disableInterrupt+0x58/0xbc [stmicro_mmi]
        : fts_chip_powercycle+0x64/0x26c [stmicro_mmi]
        : fts_error_event_handler+0x98/0x134 [stmicro_mmi]
        : fts_event_handler+0xa4/0x11c [stmicro_mmi]

Change-Id: Ic84a111aebfa93ea3386fc363105e341efc1cc09
Reviewed-on: https://gerrit.mot.com/1984070
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-06-18 07:28:04 -05:00
Drew Abbott
c94d7986fc Add force_charging_enabled sysfs
Add missing sysfs to allow Factory to re-enable charging while in
factory mode or when using factory software.

Change-Id: If39b3d5f56495b7d89445629bc1541f0b22a296a
Reviewed-on: https://gerrit.mot.com/1949637
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-06-18 03:13:05 -05:00