As HW init is after irq request in default code, so there have many
irq trigger when boot with charger and load charger type detect error.
So need to adjust init sequence.
Change-Id: I02e50ef6e20e1034764d9086a8e625446823bd98
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2105583
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
TP:
Support goodix single tap to wake the device.
Change-Id: I038edf7655f6944653d22e13c3ec056baca77084
Reviewed-on: https://gerrit.mot.com/2105483
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
When the phone is restarted, the OCV checksum calculation method
is problematic, which causes the OCV parameter to be updated,
so that the voltage is re-measured and check the meter to obtain the initial capacity,
which causes the battery capacity to jump when restarting the phone.
Change-Id: I07bea70c2318eff8d71e7fd44119242f5b830de3
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2105262
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
- Game mode API also can be supported when mmi touch class is disabled.
- The required interfaces need to be configured in the dts.
Change-Id: I59582a0dfa4079a5c3500517d7acc779581cb29f
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2086206
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
TP:
The PM_WAKEUP_EVENT causes a delay of more than 4ms before
starting i2c transmission.
Change-Id: Id5dc406f8e7b675c4d34597b37fa12992cdb24d6
Reviewed-on: https://gerrit.mot.com/2098214
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
The unit boot when real batt_soc 0%, the UI batt level show 100%.
The root cause is combine soc is 100 when init, and now
mmi_combine_battery_soc api return soc is -1, so don't update
the combine soc.
Change-Id: I9e41b7f68c735b76c384d1cdcf3ffb6735db4f57
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2098253
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
TP:
Not use the PM suspend and resume process, but use
the touchscreen class unified process control.
Change-Id: I8d104c0b44abba22d624187cf351d2fd2eb4fe0f
Reviewed-on: https://gerrit.mot.com/2097211
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
project use 10mhon rsense,but current rsense config is 1mhom,
that will make current value not correct.
log:
FG_CW2217: cw_update_data-518 : vol = 3880 current = 5238
above log show current=5238mA, but it should be 523.8mA
Correct rsense config can fix this issue.
Change-Id: Iebaa671d2db2690f7e91f4410bc57a809b10cd77
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2098076
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
1. In the case of firmware damage, the input device is directly released
when probe, and the input device is accessed when the system is
suspended, causing the system crash.
2. When the firmware is damaged, because the product information cannot
be read, the touch upgrade script cannot repair the firmware.
So we need to use the ic_name in the dtbo file.
3. When probing, if obtaining the configuration file fails, reflash the
configuration file after the firmware upgrade is completed.
Change-Id: I10cf96e3721d539d6e15f4c6cc490eb0f4328700
Reviewed-on: https://gerrit.mot.com/2095432
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
This change allows defining an artificial no touch zones. Reported
touch coordinates will never belong to these zones. This is done by
extending associated screen beyond physical touchpad Y resolution.
If physical touchpad resolution along Y axis is Yres and Z is the
dimension of such a zone, then reported coordinates will be in the
range Z < y < (Yres + Z).
Change-Id: Id53bd8b155bdaa0e2bc470f84f11286710cc27f8
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2092741
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Sridhar Vashist <svashist@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
As bq2589x_adjust_absolute_vindpm api sleep 1s to get vbus
voltage, but it will cause charger type update to charging policy
slowly. So directly call bq2589x_set_input_volt_limit api.
Change-Id: I4890f8b1aad066ceb8fe5b3655ac77a4620b7f87
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2097216
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
As external charging ic is different, some charging ic will trigger irq
to update charger type unknown when set HIZ mode. So setting
icl 0 mA instead of usb suspend feature. The min icl current of some
charging ic is 100mA. We also can think usb suspend.
Change-Id: I044073443ce6675c48a1b21bf5e7066766c3774b
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2095741
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
1. dsi_freq_head is undefined, so add Module.symvers of display driver.
2. Use the KBUILD_OPTIONS to pass the configuration parameters to
the Kbuild filed.
Change-Id: I24d792a26cb1d3a9f8beca8089cea7116ae1a669
Reviewed-on: https://gerrit.mot.com/2097103
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
In typec tcmd test, it will check typec cc status, so we
add this interface for tcmd
Change-Id: I00f3b0c09f07d2479a5676f2f43de96dc7bc97fe
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2090827
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Submit-Approved: Jira Key
fg_extreg_table parameter is different between different battery
so move it to battery's dts file.
Change-Id: If881658da98c403498e2681bb686a01c87670d8a
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2093366
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
FOD: Foreign Object Detect,
It is a port of Wireless RX tunning development.
provide thoes API for WPC certification.
Change-Id: I6694dc1fa2c841ac189a3057281f4779d0c08ed7
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2091619
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
When importing the Modules.symvers in fix path, the GKI module will import an
incorrect one and cause module load fail in gki kernel mode.
Change-Id: I1c089b5e9dbbe4b4922921df6f3923cb9c748d2e
Reviewed-on: https://gerrit.mot.com/2090513
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
1. Modify the factory test code
2. Modify the waiting time during the firmware upgrade process.
3, Report the tile_x and tile_y of stylus.
Change-Id: I8e398ff731e59b179edf28c6d5cd5923ec0083fe
Reviewed-on: https://gerrit.mot.com/2090807
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
add get charing current api for discrete_charger_class
factory tcmd will use this api
Change-Id: I1a6011fcf7b936329e6ae1b7787b6e86078b8915
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2090448
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
Fix errant 1 placed in chrg_fullcurr_en_gpio assignment from parse_dt.
Should be a 0 param instead. Also check battplus_state at beginning
and terminate work is already set.
Change-Id: Ia69bfa919452e03423d669afd633fd9af3599966
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/2089379
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
This driver can support regulator to driver a vibrator.
It was used on cypf by r first time.
Change-Id: Ib62747bacb225d1c730cf22a29bbe133aa5bd793
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/2089627
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Submit-Approved: Jira Key