motorola/kernel/modules/drivers/input/misc/rbs_fod_mmi/Makefile: update
the option M with predefined value if possible
Kernel 5.10 already defines the value of option M before the module
building, and module building should use that predefined value.
Refer: gerrit commit: https://gerrit.mot.com/#/c/1992052/
Change-Id: I9e1f6f0985e95c8bde448d97342c613c1cf169df
Signed-off-by: chengql2 <chengql2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2220453
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
add some parameters to set 97% to 100%
sm5602_fg_mmi/sm5602_fg.c
Change-Id: I03bf1f17c9c7ecd0c42ddec06d1509e12f90d1dd
Reviewed-on: https://gerrit.mot.com/2209091
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Reviewed-by: Qiong Xie <xieq2@motorola.com>
Submit-Approved: Jira Key
revert this change and will make a new one
for vendor suggest
Mot-CRs-fixed: (CR)
This reverts commit 27e0bccf42e60c4dff61323fd0c03d45e2c24e39.
Change-Id: I5837b3f9ebb5f9177c14848c662f5b5f5cc99d96
Reviewed-on: https://gerrit.mot.com/2213962
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
1. Disable the charging and charger input via device tree
configuration
2. Disable charger input if battery is absent or temperature
is too low(<-30 degree C)
3. Force battery to empty to trigger android auto power off
if paired battery becomes empty to avoid it over discharging.
Change-Id: I7a42db2d0d0281ed1843fee11f79d2dcf9291a0e
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2211635
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
userspace use current max to judge charging rate in
setting->battery menu. Because main charger icl will
been limit to 300ma when charger pump enable, so
we can't use usb icl update to userspace.
Change-Id: I644596ae3ebcba9cbe3470e67d87be6b1cd5130b
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2213582
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Add device node support for bq25960.
we can read the vbus node to get the vbus voltage.
we can write the force_chg_auto_enable node to set
the bq25960 charging on or off.
Change-Id: I1848ddb4baf3a2ee47161da41ccf5286700213f2
Signed-off-by: wanggc6 <wanggc6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2213345
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Add iio sys support for bq25960
and some STAT MASK .
Uncomment the function bq25980_set_chg_en,
bq25980_get_adc_ibus and bq25980_get_adc_vbus.
Because they are used by the iio sys.
Change-Id: I528d6eb020c55a78b3bd575d8ce48eab656a9553
Signed-off-by: wanggc6 <wanggc6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2209068
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Set regulator avdd load to 50mA,so when touch is active it can notify
the regualtor core to set the most efficient regulator operating mode
(HPM mode)for the new regulator loading.
Change-Id: Ie28564c6f5ff114cd99dd5742da1f88ddf3cbb45
Signed-off-by: zhuwg1 <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2210880
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
WHY:devon:add 20ms delay for ext ldo vdd for power on steady
HOW:add 20ms delay in aw9610x driver
Change-Id: I4af3ddb4dbf86e593e2b272a7678d34cd64b1f61
Signed-off-by: longc100 <longc100@motorola.com>
Reviewed-on: https://gerrit.mot.com/2209041
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hong Zhang <zhangh12@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
ss_timeout(soft start timeout) used to check if input current
is above BUSUCP threshold.
modify ss_timeout as bq25960 POR value 10s to make sure CP don't disable
Change-Id: I31f1b6d648a7b5a64a4a2d3036b1a36af44f6ec9
Signed-off-by: wanggc6 <wanggc6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2208317
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Remove the print function of fingerprint hard interrupt EGISFP
Avoid interrupt processing time is too long Trigger watchdog
Change-Id: I3e7632b0baa84b1f1fc09dd851307bd08be231a7
modified: etxxx_fp.c
Reviewed-on: https://gerrit.mot.com/2206419
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: liujian <liujian24@lenovo.com>
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
- change non must have value location, avoid rc value impact last
probe return rc value.
- add default brightness config, avoid brightness change when boot
- don't exit probe if map mode don't set, map mode is not must have
value.
Change-Id: Ifbc6a4c5f7a4b5bed24b5b44fb6117b4c331c776
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2207191
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Modify modules files , solve the problem of slow bus voltage rise
caused by the difference of driving codes between the two turbo power driving chips
Change-Id: Id5390c574d38e6cb479cdfca2ee638540f42214b
Signed-off-by: wutao <huaqin89@motorola.com>
Reviewed-on: https://gerrit.mot.com/2205277
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
1. adjust the charging enable logic from sysfs node
2. fix logic issue on charging disable from mmi charger
3. add constant charge current and input current limit
in charger power supply
4. Disable high and low load switch when charger insert
Change-Id: Idbdfb2c0c10d69927402e2f219d642f58b7c9f1d
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2205999
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Notify fps work mode thru relay so that touch can enable
FOD event when fps is working and disable FOD event when
fps is in idle
Change-Id: Ie2b284d24d3ac2c77d17455b9465d06e0041eb44
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2205920
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
1. Register FOD state thru mmi_relay.
2. Send Fod event when FOD is enabled.
Change-Id: I56fed42e8377dc86c84e8dd1042cd04a55fb0a16
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2205960
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Add CLI touch factory test cp_panel node,from this node we can
read out self-capcitance raw data and to verify whether calibration
data is ok.
Change-Id: I5f52fb464ff8ca583e518bd110fad8a86c6669d1
Signed-off-by: zhuwg1 <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2205761
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
The batt_psy has been init to bms psy in prob api, so mmi_charger
can't get the battery power supply change to update info.
Change-Id: I93954a840bd8cb02d127e04902991f6016a8b421
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2205313
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key