As moto charging FULL status judge in SW policy, so we must remove
FULL status in charging ic driver.
Change-Id: I881b1464bdeb9e9c6599dee15d33189c6b4d1594
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2128758
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Ironmn cold-boot with charger or usb connected tocharge port is
identifying ps_prop_usb_type brickid, apple charger. fet_control
was not handling this charger type. Why the incorrect detection
is happening needs to be investigated, but battfet control will
now handle all usb_type cases.
Change-Id: I5356ee108e2a2430b434311dd5b2cfaa225b89ac
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/2128139
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Add shutdown procedure for WL2864C and force disable all regulators when
system power off to avoid unexpected current leakage.
Change-Id: Ia92782a7baa2599fd6be1a7c62d5f747f10340ae
Signed-off-by: chenglong1 <chenglong1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2128240
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Shuo Wang <wangsh18@motorola.com>
Reviewed-by: Wang Liu <liuwang2@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: <huqian4@motorola.com>
Reviewed-by: Xingyun Fu <fuxy7@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
As some discrete charging ic can't suspend usb, so need to disable
charging when capacity > upper_limit. I think it don't effect any scene
in pmic charging solution product.
Change-Id: I2f794cd81371169ea29e2e2918ad47430132415f
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2128317
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
request pm_qos during the interrupt processing to prevent
the CPU from going to sleep state.
Change-Id: I95728329c7df7a4376415b9d8ec20d6525fe45c8
Reviewed-on: https://gerrit.mot.com/2124280
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
As change the get vbus voltage api from BQ25890 to Main PMIC,
so need to change the HVDCP voltage standard
Change-Id: I5e175b0a5019b3b69810539f21c11b1a26764f84
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2126099
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
As TI bq25890 chip accuracy issue, so when policy set icl >=3A,
we need to set 3250ma at register for BQ25890H
Change-Id: I74cd75fdae300b50a8a9581b751dff6890258e11
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2125735
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
Add tx_mode and rx_connected
this is to support moto wireless powershared
Change-Id: Idb36fdfb10fa9cbe4015f6c4ecd1f6c6e74deb26
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2111245
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
rt9246a fcc value is part of its algorithm,
fcc value will change according to the condition that the battery is 100%,
https://gerrit.mot.com/#/c/2121340/, the fcc value from 4895 change to 4654.
that isn't our expect. the fcc_design should be a const value
so we add another dts to config it.
Change-Id: Ibc4947e8671243f831e4d6dc160cc8c71873a594
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2121919
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
rhodep camera use new power IC et5907,
add et5907 config files.
Change-Id: Iecca4e840632453d6ace8223b6e9cc36f421fccc
Signed-off-by: Xiaofeng Wang <wangxf32@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2119188
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Xingyun Fu <fuxy7@motorola.com>
Reviewed-by: Shuo Wang <wangsh18@motorola.com>
Reviewed-by: <liuzy55@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
TP:
If the noise detection fails after calibration, the touch IC will
report the "F3 E0" event, and when the event is received,
the touch driver will send the calibration command again.
Change-Id: Ifd2f4bd287fbdc7861a127d2ffd481f635d963c7
Reviewed-on: https://gerrit.mot.com/2123149
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
request pm_qos during the interrupt processing to prevent
the CPU from going to sleep state.
Change-Id: I78a67ef1aa9a363e9d7f9546b8d4c20a81ac04c4
Reviewed-on: https://gerrit.mot.com/2107618
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
Change the build make file to be compatible with
Android S build.
Change-Id: I9faf66a92f1d4c4bb32b6069d9ed4b9e08f66392
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2117635
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
11-06 10:22:19.922 0 0 I rt9426a 1-0055: RT9426A block read 0x2c fail
11-06 10:22:19.922 0 0 I rt9426a 1-0055: SOC(-13)
11-06 10:22:19.922 0 0 I rt9426a 1-0055: RT9426A block read 0x2c fail
11-06 10:22:19.922 0 0 I rt9426a 1-0055: read soc value fail
QC holi project can't permit do i2c test when phone into suspend or resuming.
The failure of I2C operation jointly produces many unexpected behaviors,
including but not limited to the negative power number and serious power jump.
when calling to the fg_update_work_func(),
avoid the system into the suspend.
Change-Id: Ideeecffc1abe6e7eed12173c7a589cf1f3dc1b22
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2118864
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
when device screen off, the wallet running slow and some time
nfc service will reset.
remove IRQF_NO_SUSPEND feature on driver to avoid issue
Change-Id: I1828ce8293915b288020595fa3d2a992503c90a8
Reviewed-on: https://gerrit.mot.com/2119768
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
Some units may panic on charger cable insertion at powerup. Seems
to be a race condition either registering the ps notifier, so remove
the call. This will reduce the reaction time to check for overcurr
condition at time of charger application.
Change-Id: I71e00636630605e393334e2c8424dfadd2913566
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/2115456
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Re-instate the original commit back into mainline to validate.
This reverts commit e5433a437a06221b577d0b54c4e4936d317e4c1e.
Change-Id: Ida06a55eee333d31fb0f0f212daed74c11c790b9
Reviewed-on: https://gerrit.mot.com/2118107
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Bernie Moreno <berniem@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
TP:
Support Pmk8350 gpio3 as the stylus clock for Rogue PVT, and the
output frequency is 19.2Mhz.
Change-Id: I5dae054b6170b921b7afee1853b7de7995531705
Reviewed-on: https://gerrit.mot.com/2111742
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
In COM kernel panic. Kthread max runtime is 0.95s, but we use
mdelay 1.5S, it will kernel panic. So change mdelay to msleep.
Change-Id: I643df7edc75b8640ff6a5d2aa90106e378e0df9f
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2117321
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
As cyprus IP68 SW terminate current is 150ma, so HW
termination current need set below 150ma.
Change-Id: Ib52492992495e03945943b18363ea58f1cf6a49f
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2116841
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
The force vindpm bit will clear by itself when remove charger,
so need re-set force vindpm bit when use absolute vindpm.
Change-Id: I8c8c5747c3ee58b9394c35ca0c0f465cdb52064b
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2116766
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
TP:
Since the sensitivity node is a general node in the framework,
the judgment of the mode value is increased.
Change-Id: I82d2727e8ebd60c96c13edf2dd923630dc828290
Reviewed-on: https://gerrit.mot.com/2116173
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
We need to probe the nfc driver even through I2C
communication fail to make sure Force FW Download work.
Change-Id: I3a84bd7927ec01f4a663d332dd3551cd00c7a8f2
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/2116211
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-by: Jun Zhang <zhangj10@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
At present this change causing random Kernel panics. WE will investigate
in prallel revert change temporarily for stable dialy SW
This reverts commit 2e2fbc387e3aee0d96fbdbea9ebb7de64ad4b1aa.
Change-Id: I91374b0ff97a39b11fcf64e6cb1f8aaMontanaf89cf3
Reviewed-on: https://gerrit.mot.com/2115325
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Select close current value base on setting.
This logic is batter.
Change-Id: I5a456cc87e779edca326e7ddf563c42818adbda4
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2114858
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
1. Add the function of leather mode in the
univeral interface sensitivity.
2. The mode setting instructions are as follows:
mode = 0x00/0x01 Exit/Enter film sensitivity mode.
mode = 0x10/0x11 Exit/Enter leahter sensitivity mode
Change-Id: I35d49aaf225e8b941a4f2552a2ccd9d33a34dd92
Reviewed-on: https://gerrit.mot.com/2113437
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
sometimes vbus type don't equal to NONE, so don't request
dpdm, so qc3.0 can't be correctly identified.
we must request dpdm when charger inserted.
Change-Id: I68f48ac713e468250709a6788dddf57e460887d0
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2114459
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key