- Add support single tap feature for gcore_mmi.
- Add sensor class support for gcore_mmi.
Change-Id: I4b1680ccbf12c41356a82fab7e35c245c3b1adc4
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2030592
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Moto future products will only show turbo charge for
quick charge. got charge rate only at main charge side.
calculate charge age and cycle also at main charge side.
Change-Id: Ib18db5ccf8665a21e55d53551fa2f686118ace25
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2031246
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
- When upgrading firmware, do not read touch vendor id and
return at the beginning of function.
Change-Id: I85e9985c03eb149c67c2281f2295e1a6f176e5b4
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2031559
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
- Add GKI_OBJ_MODULE_DIR definition since on user build
the sensor_class.ko may not be found.
- Add dependency with sensor_class.ko.
Change-Id: I542f28633dfa52a283f9b363ad273b3f9e9385d9
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2028658
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
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: Ic284423f3178caca485e857c7f367da19452066e
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2026220
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
motorola/kernel/modules/drivers/input/misc/goodix_fod_mmi/Makefile:
updated to compat kernel 5.10
For Rogue, on SM8450, with kernel 5.10 based, kernel modules should use
the new version of Makefile.
Change-Id: I5094768f8d86179b981c07a1a15710555d3bad83
Signed-off-by: chengql2 <chengql2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2021379
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Reviewed-by: Shunde Jiang <jiangsd2@motorola.com>
Submit-Approved: Jira Key
In Android S-8450, the bootconfig feature begins enable.
So that androidboot.bootreason canot be found in the cmdline.
And compatibility has been done in mmi_info.
Change-Id: I96b3d9ed988416c640c0b115cdad9fe1fd11a34b
Reviewed-on: https://gerrit.mot.com/2020001
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
After successfully finding the drm panel, set panel_status to 0,
otherwise it will re-schedule work and continue to look for drm panel.
Change-Id: I121d24a66d518b75b73d130b18394c4d7ffead11
Reviewed-on: https://gerrit.mot.com/2021004
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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