Commit graph

2,624 commits

Author SHA1 Message Date
xuwt2
4cda3bbcf7 qti_glink_charger: Add some debug info
Add some debug info prints
WLC stand type/power/fan/light/status
rc_connected

Change-Id: I5795a8e8b87bc67a4ac7c38dc0528c970fc6e58f
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2327419
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-07-10 02:35:11 -05:00
Wenge Zhu
a7c4c83e6e Optimize CLI touch single tap function
When CLI touch wake irq triggerd to wake up kernel,add a wake lock
for it in case kernel suspend before resume.

Change-Id: I47f045f6d53cbe9e491922e60799c2e831e14ce2
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2326776
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2022-07-08 05:10:43 -05:00
Haijian Ma
90a9edd4ec charging: remove debug log
remove debug log for optimize
boot up time

Change-Id: Ibd8e1e7cb8ee12ab7fcc8cdaff5f8770dfa82c54
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2325851
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guocheng Wang <wanggc6@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-07-08 03:49:36 -05:00
Haijian Ma
bb37015224 typec: disable vbus under 0.8V interrupt when vbus remove
As vbus remove and type-c cable still inserted at BSP test, the
CC voltage transfer to VBUS pin, the vbus pin voltage range is 0~1.25V
frequent switch. So the interrupt of vbus under 0.8V is triggered frequently.
So disable this interrupt when vbus remove.

Change-Id: Ibfc26ed1e7db2c1031ac27642aa38a2dcb120f92
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2325805
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
2022-07-07 22:58:30 -05:00
hqjiangy
8f797300e1 TP charger mode fix[1/1]
charger mode fix

Change-Id: Ie86f496f9823946007de1df4a3f359ade532296c
Signed-off-by: hqjiangy <hqjiangy@motorola.com>
Reviewed-on: https://gerrit.mot.com/2325014
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Submit-Approved: Jira Key
2022-07-07 21:48:12 -05:00
Yonghua Yan
b111dc0500 Monitor fg psy event once get the psy name
The fg psy may be created later than sgm4154x charger probe
and the fg psy event will be missing according to current
psy filter condition in psy notify call.
In order to fix this, use the fg psy name directly for
psy check, and not check the fg psy pointer.

Change-Id: I6ca888864045c0f523bfbef9f30411567214d995
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2326012
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-07-07 09:24:20 -05:00
Wenge Zhu
851c8f0fda Fix CLI touch gesture event timeout handling logic when kernel wakeup abnormal
1.If touch wait kernel wake up timed out, we must reset IC or just need
to read out data from IC via I2C interface when I2C is ready to let IC
pull up the INT,if we can not wait I2C ready finally, single tap will
not be available at this time sleep state, display on/off once will
restore it.
2.Disable watchdog work to ping IC when IC is on SLEEPING and SLEEP_ON
state.

Change-Id: I10106ef993ddb8270293c3defd4002e6cda6e9b5
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2324444
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2022-07-06 21:45:22 -05:00
Haijian Ma
818fa467f8 charging: don't update qc3.0 type to core when rerun apsd
when rerun apsd, don't report qc3.0 charger type to core
to avoid qc3.0 pluse invalid for impedance.

Change-Id: Ib8309d341da386ee35374cfab2a63e1dad312182
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2324271
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-07-06 05:53:49 -05:00
Yonghua Yan
e22004f53f support battery ovp/occp/ocp
In order to avoid battery over voltage and current
during charging or over current in discharging
add threshold to trigger the protection based on
battery voltage and current.

Change-Id: I2c9329a181ba9dd814d6e48a5e0f9c8e7f9d5147
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2322540
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2022-07-05 07:22:59 -05:00
Yonghua Yan
ff60c5497c Revert "(CR): Add OVP and OCP for battery"
This reverts commit 8dff4032ddd4f0cf9f3a6Montanafa338c712fc0a4eb.

Mot-CRs-fixed: (CR)

Change-Id: I5e05e24e2829c9d25f0592b9506906600adccde1
Reviewed-on: https://gerrit.mot.com/2322539
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-07-05 07:07:40 -05:00
Shicheng Gong
5dbca0ed55 sgm4154x_charger_lite: add thermal mitigation
Add thermal mitigation for battery charging current to support
thermal-engine policy.

Change-Id: I478ec42d85b5c8c1c2cb5aa4ad75242f88534710
Reviewed-on: https://gerrit.mot.com/2312431
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-07-05 06:45:07 -05:00
dengwei1
a2b37b646a rhode: input touch update syna config id
syna
config id

Change-Id: Ie472d2b45b199a1edba9a0b1685a6aaf9655a372
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2320173
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-07-03 20:58:02 -05:00
Yonghua Yan
1ff2f1a3f7 fixup! (CR): Reset charging if it's halt
When the battery charging is halt under chargable
condition, reset the battery charging to recover it.

Put the charger in HIZ mode if the battery is absent
or OTG is enabled to prevent battery charging by
boost power.

Mot-CRs-fixed: (CR)

Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Change-Id: I7631a7fdd2329c108d1dc2bd3d341775a194ccb8
Reviewed-on: https://gerrit.mot.com/2321180
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-07-02 01:37:14 -05:00
Yonghua Yan
d16d1f99f1 Reset charging if it's halt
When the battery charging is halt under chargable
condition, reset the battery charging to recover it.

Put the charger in HIZ mode if the battery is absent
or OTG is enabled to prevent battery charging by
boost power.

Change-Id: I435bcb751d22ef2ac515aa15bb63e423dfdc4cb6
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2320930
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-07-02 00:58:40 -05:00
liuyc20
8d978d3a80 FG_MM8013: Update logic to compatible with param_ver=0xa200
param_ver=0xa200 is for temporary parameter.
Need to update to offical parameter.

Change-Id: I3624f7776c095051a9aa28fc23c9ba422e736db5
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2318274
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
2022-06-30 20:25:28 -05:00
Yonghua Yan
ed90b000ce control charger irq for otg or battery presence
Disable charger IRQ if OTG is enabled or battery is absence
to prevent unexpected charger IRQ wakeup.

Change-Id: I71b699f25a5624f0f3699434f142abc8cd3d69d4
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2319107
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-06-30 11:27:50 -05:00
Yonghua Yan
fc575f57fc Trigger battery current read on demand
Schedule the heartbeat work to update the battery properties
if read current_now.

Change-Id: I47cdd15911219ce8af268a23acefd4980c081b45
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2316770
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-06-30 05:34:31 -05:00
Konstantin Makariev
ee7e452d82 drv8424_mmi: proper IRQ setup
As it turned out nFAULT signal drops for about 200us every time BOOST_EN
enabled. Arming IRQ after SLEEP signal allowing for avoiding false
fault interrupts

Change-Id: I947839591e7c6bff2231bb8e39ae8b6fdd5c2ab7
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2317946
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-06-29 14:45:38 -05:00
Konstantin Makariev
eb5123d536 drv8424_mmi: unify source code indentation
Replace leading white spaces with tabs

Change-Id: I6c26f0083cb5bae6a6c76a6fdb7e2a35b28ea936
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2316810
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-06-29 11:33:49 -05:00
Konstantin Makariev
48e2ea9a62 drv8424_mmi: dual motors fault handling
Felix has 2 motors. Thus nFAULT signal can be raised individually
for each motor. If both motors consistently failing any further
motor communications must be suppressed to avoid mechanical damage

Change-Id: I11eec76eea7b056bfa93ebe19e7bb81fe823abd2
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2299699
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-06-29 11:33:38 -05:00
Yonghua Yan
9f61fd6d0e Add OVP and OCP for battery
Add battery OVP and OCP for battery charging
to workaroud the CE certification.

Change-Id: I2004e4a280cf2e5e8ce0d19c501e4a338e45d500
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2316155
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-06-29 03:20:04 -05:00
Haijian Ma
9c4e76e7b1 charging: change wireless charging icl step increase rate
As HW require, change wireless charging icl step
increase rate from 200ms to 500ms

Change-Id: I7ec1ffb229e6a8be997de4b5224de0bd554890bd
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2312396
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-06-24 05:37:11 -05:00
Yonghua Yan
d8ef9cab5a Add the description sysfs node when usbnet init
As the factory tcmd init depends on the usbnet description sysfs
node when tcmd start up, so create it as early as possible to
avoid tcmd fails to get usbnet description.

Change-Id: Ie2946efe49ffa5815504bd45734c3538bee15a1f
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2311260
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-06-23 10:20:36 -05:00
Haijian Ma
d1a2cf641d charging: optimize select pd capacity
optimize select pd capacity to cover
more PD charger

Change-Id: Ie67c3b530f6cfb250508ecec72b12de537492969
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2310810
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2022-06-23 04:48:02 -05:00
Haijian Ma
0caa4ffe0d charging: optimize wireless charging icl vote
As HW require, wireless charging icl vote from 500ma
for authentication

Change-Id: I922495b3f89a72f3a2b2b4306b941351614631e8
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2310686
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-06-23 02:29:37 -05:00
wangyq13
33cf825022 dlkm: led_aw2033: don't enable led and CHGDIS when boot
dlkm:
- don't enable led if brightness and blink is zero
- don't enable CHGDIS when boot, set reset reg can enable CHGDIS, so
  change reset function.

Change-Id: I2c86386a2f1e0714793871dc72ac2ad553d67aaf
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2309617
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <lvxj4@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-06-22 22:51:52 -05:00
zhangly19
4d4e63a83c Add parrot in Build_external_kernelmodule.mk
add  parrot(6450) a new mechansim for
building external modules.

Change-Id: I1bdd6b55482fdd6ada9f63e160a27de33b664f83
Reviewed-on: https://gerrit.mot.com/2306144
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Tested-by: Jira Key
Submit-Approved: Liyun Zhang <zhangly19@lenovo.com>
2022-06-21 22:46:48 -05:00
Haijian Ma
28886f1477 charging: enable cp ADC when factory mode
As factory test, so need to enable cp ADC
when factory mode

Change-Id: I82e96fd9acbd4727f9750ef1ca85447e7316297e
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2308976
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-06-21 21:07:44 -05:00
Yonghua Yan
b9556551e5 add and remove sysfs files when usbnet config
Add and remove the sysfs files when usbnet configures the
ip by host PC.

When this sysfs files are ready, it means ip config received
from host PC and the phone can configure the network interface.

Change-Id: I2dabc4693d5e698e0c4853d0fa9d06e454ba7875
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2306945
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-06-21 09:24:18 -05:00
zhuangnk1
83c7cd9c22 Always power-on eSE to avoid ese not open issue
Always power on eSE to avoid eSE not open
issue

Change-Id: I46c9697fb329eb259759d2c461eec8cfd5782cf7
Signed-off-by: zhuangnk1 <zhuangnk1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2307741
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2022-06-21 01:18:24 -05:00
liuyc20
cd2e724d56 mm8013c_fg: add more safeguard when update FW/param
1.only in factory-mode enable fw/param update
2.add 3 times retry when update fw fail.
3.when get battery_id is zero.read utag battery_sn to search the correct battery_id.

Change-Id: I17999baf0f1a66731c4d95279de0ca0c1a46a33a
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2302762
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
2022-06-19 21:04:42 -05:00
Haijian Ma
a34d156d50 charging: disable cp adc when cp don't work
disable cp adc when quit cp policy
enable cp adc when enter cp policy
for reduce power

Change-Id: I279c2493e4483c161c31df903866c75f7c7da513
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2304010
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
2022-06-19 20:00:21 -05:00
Wenge Zhu
9ab8033192 Support goodix 9916P touch IC
Add goodix,9916P to spi device match table to support
9916P touch IC.

Change-Id: I7dbd07075c7bb63ff54171c6c98f6567046ab2f8
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2305630
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-06-19 01:05:27 -05:00
Yonghua Yan
7eb1770837 Set to discharging status if charger absent
Set charging status to discharging if charger absent
in case FG report confused status.

Change-Id: I95194b19750eb5af422ebb05f5937ca18a15a61c
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2301533
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-06-15 05:59:53 -05:00
Haijian Ma
6b5d72caf4 fg: modify fake battery default value for assembly test
modify fake battery default value for assembly test
in factory

Change-Id: Id479e2ec546026decae31d6fdfd5d56987bfbeb7
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2301490
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2022-06-15 05:42:53 -05:00
liuyc20
cd707d1093 mm8013c_fg: force none update fw/paramerter
there is low probablilty update fail.
then the phone will can't be bootup.

Change-Id: I1f25bc5cd5e74f7301090859fb7f6287b1e61d04
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2301067
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
2022-06-15 01:04:04 -05:00
Haijian Ma
59b9242ac5 charging: add some log
add some log for easy debug
for miami

Change-Id: Ie3c4910d589f7fa475ba66cccfa730148deda08d
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2299091
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-06-14 21:15:49 -05:00
liuyc20
8c600f0b6d mm8013c_fg: create fw/param/battery_id node
create fw_ver/param_ver/batt_id
for debug convenient.

Change-Id: I46e089cb5c2b6724cd1368f2fc9cbfdd5d6400dd
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2300325
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-06-14 21:11:53 -05:00
liuyc20
34c837abba MM8013C_FG: match battery_id && parameter ver when do update
the first_batt_param_ver and second_batt_param_ver maybe different.
so we need match battery_id && param_ver when update parameter.

Change-Id: I474d711b9d83286ed6c5e1c1a19ae3d30e2b1319
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2291391
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Submit-Approved: Jira Key
2022-06-14 21:11:43 -05:00
Gong Shicheng
e70961e21b sgm4154x_charger_lite:get charge counter from flip fg
get charge counter value from flip fg and assign this value
to batt_chg_counter of battery info struct.

Change-Id: I4356f928217dc2806fc722d2e8d9e7ff1da755d6
Reviewed-on: https://gerrit.mot.com/2300250
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-06-14 07:27:08 -05:00
Gong Shicheng
0b97a147ed mmi_charger: combine flip & main battery charge counter
combine flip & main battery charge counter
for maven.

Change-Id: Id140068a200a419a4aaa23255a90f75c4346073d
Reviewed-on: https://gerrit.mot.com/2293045
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-06-14 07:26:52 -05:00
Gong Shicheng
5c44e5e0dd qti_glink_charger:add charge counter prop
add charge counter prop for
main battery.

Change-Id: Ia8c19db723805196a88268cf7606d9a330a1d98e
Reviewed-on: https://gerrit.mot.com/2293043
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-06-14 07:26:41 -05:00
Gong Shicheng
d33397d510 bq27426_fg_mmi:add charge counter prop
add charge counter prop for
flip_battery.

Change-Id: Idf37049f8cf4bfaef7b9b5685debacb93e9ea0c8
Reviewed-on: https://gerrit.mot.com/2293041
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-06-14 07:26:27 -05:00
Haijian Ma
542ccbc59a charging: don't enable term when slave cp disabled
Don't enable main charger termination when slave cp
disabled, because main cp also work well, it will load
to main charger termination.

Change-Id: Idce843eaede60120963efdee92746b3d15c98742
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2298500
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
2022-06-14 04:54:00 -05:00
weiweij
f7c69fecb1 charging: export charge ops interface for authen test
For some authen tests, charging parameters may need to be changed
as requirement. And for original designation, these ops interfaces only
work in factory mode. So we need to export them in normal mode.

Change-Id: I4ed54474fb6f8e0a164231d8919bc0f385954bd5
Reviewed-on: https://gerrit.mot.com/2299683
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-06-14 02:41:21 -05:00
weiweij
6e6e150be2 WLC: Add force flag for fw upgrade interface
For some reasons, WLC authen test may upgrade FW without
fw version changed. So we add force flag for fw upgrade interface,
to let it could be applied in authen test.

Change-Id: I964984b4dd81e750e17ac23bfe0a5e9cf70a109f
Reviewed-on: https://gerrit.mot.com/2296260
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-06-14 01:19:32 -05:00
zhangjun10
53f295b746 : tundra : keep nfc irq always wakeupable
keep irq always wake up
can get I2C message from irq

Change-Id: Ie338aec3f3caf90cd910b87ebbfc5089d7ceb7d1
Signed-off-by: zhangjun10 <zhangj10@motorola.com>
Reviewed-on: https://gerrit.mot.com/2298808
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-06-13 02:34:36 -05:00
wangyq13
f04c87e4f3 dlkm: aw2033: set blink mode brightness
- set blink mode brightness, change as set by upper layer
- add logs to debug brightness change issue

Change-Id: Ia602012a27b7d9aacad1ab66148f9d7618141f77
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2294938
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-06-12 21:39:19 -05:00
Yonghua Yan
be6a9eccb7 correct the paired_ichg value before setting
It gets incorrect paired_ichg value before setting to make a wrong
decision on charging current setting.

This issue may cause battery charging out of controlling of battery
charging policy.

Change-Id: If5ed84d5cebc231ecda70dcb919b76c681f52d84
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2298136
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-06-12 07:14:31 -05:00
longc102
e0bf7314a3 connect 33W charger, the power is only 2.5W
if plug in usb slowly, wt6670 will output float or sdp type
recheck charge type if detect float or sdp

Change-Id: I316d05a5178e4e6f5a3140ba6adf3e4a0c19e987
Signed-off-by: longc102 <longc102@motorola.com>
Reviewed-on: https://gerrit.mot.com/2295174
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qiong Xie <xieq2@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-06-10 02:01:52 -05:00