The cps4019 wait cmd done time out when test app crc
because the wait_time_out is too short.
Add log print firmware length.
Change-Id: Iaf4bcc7689c89de19d196c017fdde91771eba25e
Signed-off-by: wanggc6 <wanggc6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2229072
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Wei Wei <weiweij@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
The cps4019 I2C frame format use 32bit address in
firmware download mode.So we need add I2C 32bits address
read and write functions and use them in firmware download.
Modify some code formatting and add some logs.
Change-Id: If5c7d1747e260a1c3bee69f6fcd31ee96f5926fb
Signed-off-by: wanggc6 <wanggc6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2224955
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Wei Wei <weiweij@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Modify:
1.add rawdata collection function
2.update interrupt data collection process
3.add ioctl debugging equipment interface
4.revice the production and testing process
Change-Id: Id4130107cdb085aaf5981685766f37804ac6ddc4
Reviewed-on: https://gerrit.mot.com/2230586
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
sm5350 exp mode backlight current with the different curve to
other chips, add backlight current align configuration for
the same current at the same hal level, to support the same
brightness at the same hal level.
sm5350 uses same exponential curve as lm3697, so pick from:
https://gerrit.mot.com/#/c/2045773/
Change-Id: Ie5adbc50298e2670d03ea9d491726f68c1fd3300
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2230345
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Notify mmi_battery change when combo current change so that the
battery current status will be updated when combo current change.
Change-Id: Iddcf0d8fc7f9a1a44b6c042f1d72ae337931f37c
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2226482
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Update the makefile to enable the ko file
which has been changed for oneli.
Change-Id: I75704e4031bc26cadf76ca63a4cf4e3d3be13d1b
Signed-off-by: chenzc2 <chenzc2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2226485
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Shuo Wang <wangsh18@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Reviewed-by: Xingyun Fu <fuxy7@motorola.com>
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
Submit-Approved: Jira Key
fix fac test
per vendor
Change-Id: Id407a3c3711c95fbcd8dafbf628252db45df1a32
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2224844
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
Modify some code formatting and fix some build errors.
If your kernel include has <linux/wakelock.h>,
you can define CONFIG_HAS_WAKELOCK.
Change-Id: I6371653581334ac8d63d41112b50ac9ea2919dc0
Signed-off-by: wanggc6 <wanggc6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2218913
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
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