factory bt stattion no batt ntc resistance,
sm5602 adc get temperature is -20 or 80, force set it to 25 degree.
Change-Id: I2de7a9122e3f06d9c3ea7a150469b033f891841f
Signed-off-by: huaqin85 <huaqin85@motorola.com>
Reviewed-on: https://gerrit.mot.com/2175723
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
factory report 3.8v battery this fg only show 5-15% battery capacity.
As when phone is booting up,the current will be large,that pull down
the voltage of battery, the fg get the lower voltage and search the
corresponding capacity.
For the first bootup, the voltage compensation method is added
to avoid the problem of low battery display.
Change-Id: I18b07ca76b3418b3e3fe463698de1e6836a576d2
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2174549
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
Used to fix the failure of the probabilistic startup identification module
Change-Id: Id37309cd0e2e448e4989cea8ae098cd36d47e889
modified: fpsensor_spi_tee.c
Reviewed-on: https://gerrit.mot.com/2172960
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: liujian <liujian24@lenovo.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
force batt present status to true in BT test station in factory mode
because sm5602 recognize the batt present though NTC Partial voltage,
but Rhode5G+ no NTC partial voltage resistance on mainboard .
Change-Id: I2ea84aaa719a0228eb9fb00f133c5d0b24375b88
Signed-off-by: huaqin85 <huaqin85@motorola.com>
Reviewed-on: https://gerrit.mot.com/2171966
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
WHY:Makefile is wrong and enables power control for all products
WHAT:Modify makefile to enable power control only on Hawao
Change-Id: If50e4154c0baf80be6bc30744d98a4bc7270ecce
Reviewed-on: https://gerrit.mot.com/2171657
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: liujian <liujian24@lenovo.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
when in COM, pd will trigger hard reset to let source send source_cap.
But pd hard reset will closed vbus and re-enable vbus by adaptor, so usb
present will return 0 to let COM shutdown. But typec mode is always on,
so use typec mode to workaround it.
Change-Id: I7f39cfd81e6cf2607103579d3cab58102aaabc40
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2168221
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
1. Fix the build issue on Androd S
2. Support externel USB power supply for charger input detection
3. Support battery fuel gauge power supply to query battery status
4. Register the charger to mmi charger driver architecture
Change-Id: I852a176657964b4a8914176333171c0ab6d81b51
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2168097
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
After the VDD is powered on for more than 1ms ,
The RST is powered on
Change-Id: I7c49dc6cbaab0a9dee0ae8642a9de13db971f51b
Reviewed-on: https://gerrit.mot.com/2167042
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: <leiyun@wingtech.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
battery ntc is on the board,so battery temp is error in factorymode testing
it doesnot test quick charger in moto-factory mode when battery is error
set battery temp to 25 in moto-factory mode
Change-Id: I230edcfa1118b303561d21ce2b16e1fab92e298f
Signed-off-by: wutao <huaqin89@motorola.com>
Reviewed-on: https://gerrit.mot.com/2166164
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
battery ntc is on the board,so battery temp is error in factorymode testing
it doesnot test quick charger in moto-factory mode when battery is error
set battery temp to 25 in moto-factory mode
Change-Id: I2a6ed72e3124acba68c9051a1956d6f69d48370f
Signed-off-by: wutao <huaqin89@motorola.com>
Reviewed-on: https://gerrit.mot.com/2166154
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Add watchdog_cpu context and tzlog dump support
For 5.4 or later kernel, there is no way to browse the
Symbols without breaking the GKI rules
So read the ttbl1_el1 to get the init_mm->pgd instead of
The old symbols browsing
Update module dependencies
Change-Id: I26aca73f4a879f9504ecd5443c458e154cf48fe9
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1975101
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
WHY:FPS sensor will be overheating due to impact damage to FPS
WHAT:Enable power gpio in Chipone FPS driver so that it can disable power
when overheating.
Change-Id: Ie32e69870cbcc53f6fafd97ac0068f79b66afbaf
Reviewed-on: https://gerrit.mot.com/2166844
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: liujian <liujian24@lenovo.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
add build control for focal
support DRM screen status interface
Change-Id: I9a5ead1b52a2a287785cf0db38cceeb08c206623
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2163372
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
TP:
1. Open the esd check function,when the touch IC dies, it can be
restored to normal by hardware reset.
2. Increase the delay between the stylus command and the clock to
prevent the IC from hanging up.
Change-Id: I20617d63c0d53d60d1100b9eb26182096c657b16
Reviewed-on: https://gerrit.mot.com/2164520
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
Batt switch state can be more reliable from boot with charger when
reading main batt voltage_now to compoare to batt2 through R-balance.
We'll monitor both v_now & v_ocv, but use ocv for the battfet swtich
decision.
Change-Id: I60cf8d0dfb5befbb029477644efed88e0342cef1
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/2143291
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
For the minidump region of mmi_annotate, should record volatile memory
instead of persist memory when platform doesn't support persist memory.
Change-Id: I94afe0b8ff5eda3686e2957f00747a4cb4582a89
Reviewed-on: https://gerrit.mot.com/2160648
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
set
short index
Change-Id: I71e53f871946b152db8a0a68f8f167ced13cb702
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2159319
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
TP:
When the screen is off, the TP driver starts to read gesture events
after receiving the interrupt.But I2C bus is still in the suspended
state, so gesture events cannot be read out.
geni_i2c_xfer System suspended
[GTP-INF][goodix_i2c_read:82] I2c read retry[1]:0x10308
geni_i2c_xfer System suspended
[GTP-INF][goodix_i2c_read:82] I2c read retry[2]:0x10308
[GTP-ERR][goodix_i2c_read:87] I2c read failed,dev:5d,reg:10308,size:26
[GTP-ERR][gsx_gesture_ist:236] failed get gesture data
Change-Id: If3ebbc4b65829def142835c51816b70e0a474865
Reviewed-on: https://gerrit.mot.com/2158726
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
FOD will turn on/off frequently, msleep will take longer delay than
expected, use mdelay to optimize the power up time.
Change-Id: I9c4d23f0c3b98713eeee7bb1393106ebac507af4
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2157879
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Adding a node to the power supply will affect the IIC timing,
adding to the IIO system file path is not fixed,
so add the node to the proc
Change-Id: Ib4842d6eaf37daf53e9c6bdb2a8f5d2a90694c38
Signed-off-by: huaqin87 <huaqin87@motorola.com>
Reviewed-on: https://gerrit.mot.com/2157051
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