Commit graph

2,486 commits

Author SHA1 Message Date
weiweij
97cfc95e6c charger: add wireless type judgement for healthd
For healthd's charge type judgment logic, we should set USB/online
as false when wireless charger connected. And set DC/WIRELESS type
as "wireless" at the same time.

Change-Id: I5397224e7432802891706b3b7facf79cb749cbd7
Reviewed-on: https://gerrit.mot.com/2263683
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-09 20:18:42 -05:00
weiweij
5062a34253 wls-chg: change name of the file point chip_id
For CQA test requirement, the name of the file point chip id
should be chip_id. And its result should be "0xXXXX". So we
will change this file point as requests.

Change-Id: Ic37fa0645c64a766960f0799e7aad7f469121491
Reviewed-on: https://gerrit.mot.com/2263347
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-09 03:01:02 -05:00
weiweij
170c7d9dff wls-chg: add force wls chg test interface
Add a file point interface to let tcmd could force wls
chg when usb&wls connected at the same time.

Change-Id: I545cc4d7ac8ffa562596ed85706b62fcacc718dd
Reviewed-on: https://gerrit.mot.com/2263182
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-09 02:54:50 -05:00
weiweij
58ea6b5c86 psy: add DPDM operation ignore option
For special factory test, USB DP/DM may should not be
operated when VBUS status changed. So we will add
DP/DM operation ignore options in power supply property.

Change-Id: I226c02cf126ecae9308804334c1bdbfb933d7bac
Reviewed-on: https://gerrit.mot.com/2263246
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-09 02:54:47 -05:00
weiweij
6a46f28d25 wls-chg: set fix register definition error
For original code from vender, some registers are defined
incorrectly. We should fix them as CPS4019's data sheet.

Change-Id: I2e5004a0578cbcd92ee046cea7e8d1af6e6900f3
Reviewed-on: https://gerrit.mot.com/2262811
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-09 02:51:21 -05:00
mahj8
110cccb3ac charging: optimize code for discrete charging
all mmi power supply defined in mmi_discrete_power_supply.h
to remove discrete defined in many files.


Change-Id: I41c978961072f7aedf398df0984467d3d7d089b1
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2261274
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Wei <weiweij@motorola.com>
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-08 20:40:01 -05:00
yanyh2
3717c3b14b Use delta OCV to limit the charging current
Use delta OCV to limit the charging current to improve the controlling
policy accuracy as battery SOC may be incorrect for FG issue.

Change-Id: I55eda8f32d833ece0b281732b34bd4357fbdb6ef
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2259903
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-05-05 02:35:10 -05:00
mahj8
d1bcd95c98 charging: optimize search charger capacity method
optimize search charger capacity method
for max watt pdo.

Change-Id: I8c065ea7961a17e0b4283266cdeb783d7ac1c411
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2258494
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-04 22:52:43 -05:00
mahj8
c6b1717bbe charging: add pd vdm verify IIO channel
add pd vdm verify IIO channel for getting
pd notify

Change-Id: Idd751759e30a631a70a5822ae01d7b068b90a6a0
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2258493
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-05-04 22:52:38 -05:00
mahj8
7c90ce4083 pd: add pd vdm verify notify passageway
add pd vdm verify notify passageway to
mmi discrete charger core.

Change-Id: Ia7989b11f425f86085e398bafdfd2b14e0d18c3a
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2258492
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-05-04 22:52:27 -05:00
mahj8
6a8548a3e6 pd: Add moto private charge protocol
To implement 68w fast charging , the adapter would be
provide the maximum 11v/6.2A APDO to phone.
In USB Power Delivery Specificatin, the PPS Source shall
deliver the Maximum Current only up to 5A,
therfore, to achieve 11v/6.2A APDO, the moto private charge
protocol need to be developed,
Use VDM(Vendor-defined message) to exchange the authenticaion
information between PD charger and phone.
and Use HMAC-Sha256 encryption algorithms to ensure authentication
security.

Change-Id: I5d7561fece060adfdb21d24de90277dddab10b55
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2252818
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-05-04 22:51:58 -05:00
weiweij
929f435aab wls_chg: add dependence for mmi_discrete_charger
For cps4019 driver will call the fucntions in mmi_discrete_charger,
so we should add the relatvie dependence.

Change-Id: I8dc350da427ca076c2be3feaa1e7390fd557edbf
Reviewed-on: https://gerrit.mot.com/2258487
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-05-04 21:13:51 -05:00
weiweij
c3f1b7cdec wls_chg: add charger class interface
Adding discrete charger symbol, to let wls4019 driver
could use interfaces in charger class. And the name of
main_charger is configured in dts file.

Change-Id: Ic74d77f6645c0b166feaafb3ee354b7d12323ccc
Reviewed-on: https://gerrit.mot.com/2255421
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-04-29 04:12:06 -05:00
liujg6
9e4a81ebea wt6670f: use integer instead of floating point
kernel_neon_begin and kernel_neon_end didn't disable preemption,
then SIMD and VFP instructions will be executed in a non-preemptible
section.
Use integer instead will be safer and effective.

Change-Id: I02db0845fcbd135f25423f38c72c7a9d1622e450
Reviewed-on: https://gerrit.mot.com/2256755
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Qiong Xie <xieq2@motorola.com>
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-04-29 04:08:47 -05:00
Konstantin Makariev
17acb1efa6 drv8424_mmi: status & position show methods
Added sysfs_notify call and make status & position show methods
waiting for updated values

Change-Id: Ib19dd3e362a70b6c5217821a46a2f3eb679452ac
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2244143
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-04-28 17:13:51 -05:00
Konstantin Makariev
3f6cd30c0c drv8424_mmi: status and position handling
Added support for the following:
  1) status and position changes
  2) sensor data polling
  3) allow polling status and position in HAL

Change-Id: I73d7c46f0ff7fbdaf703f16d0500c634fae1e721
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2237771
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-04-28 17:13:41 -05:00
Konstantin Makariev
9352766163 drv8424_mmi: support variable speed sequences
Support for accelerated motion. Only distinct status reported.
Added position interface to shutdown motor based on signal from
sensors

Change-Id: I44f7eeb4b86f84c2542c0c29feec42bb7b346e16
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2231441
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-04-28 17:13:27 -05:00
Konstantin Makariev
f488925336 drv8424_mmi: stepper motor driver
Initial driver code for TI DRV8424 stepper motor. Based on AW8646
from Awinic. This is just to create an entry point. Needs a lot
of work

Change-Id: Ied7eb3f05801f457494feff098c3b78b3813d30b
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/2231338
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2022-04-28 17:13:17 -05:00
cuijy1
73592187f2 sx937x_multi:optimize code
optimize code
change probe

Change-Id: I8c3c03dc61fb3019e0776e965e73ce88e820e1e6
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2250480
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2022-04-28 09:05:36 -05:00
longc104
6ec8b632f3 phone with rt9471 will ramdump when usb plug in
mutex lock might sleep kernel
remove mutex lock in get_property()

Change-Id: Ic4a0f55ed8171db75e176208a0a88e3172225031
Signed-off-by: longc104 <longc104@motorola.com>
Reviewed-on: https://gerrit.mot.com/2255143
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-04-28 04:10:52 -05:00
litong20
433150deb9 Clear data buffer after releasing connects.
1. Clear data buffer after releasing connects.
2. Filter invalid events during event handler
and no longer report.

Change-Id: I24ab2257c7f7641188fae7898cd4af7514066905
Reviewed-on: https://gerrit.mot.com/2253924
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2022-04-27 20:59:21 -05:00
weiweij
69576bbb34 wls_chg: remove check chip id function
For original usage, function check_chip_id is used to decide
whether FW need to be upgraded. But we have change it by
FW version checking. So this function will not used any more.
We should remove it.

Change-Id: Idbf875a8491f8321755c56f9b8cc5f2310409214
Reviewed-on: https://gerrit.mot.com/2255040
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-04-27 20:27:17 -05:00
weiweij
8bae453908 wls_charge: add fw version check logic
In normal use, we may need to update FW to fix some
chip bugs. So we need to add fw check logic to decide
if the FW should be updated. And the latest FW version
is defined in dts file.

Change-Id: I4642dcd311b2fe6dc85c316efd88fa50d50e6a76
Reviewed-on: https://gerrit.mot.com/2254034
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-04-27 03:10:55 -05:00
hujing3
406f6ce2a0 focaltech_0flash_v2_mmi:support charger detection feature
focaltech_0flash_v2_mmi
support USB/charger detection

Change-Id: I4ed69c0b77648ed474264a24247cb895b15c0cf0
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2252825
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-04-27 00:20:32 -05:00
yanyh2
c7135bc1e5 Disable debugging log for power consumption
1. Consider the battery is absent if battery temperature
is lower than -30 degree C.

2. Disable bq27426 register dump for debugging in heartbeat
work.

3. Change the heartbeat work interval to 60s.

Change-Id: I043c6a28f998668a0dad7f39b75f21fb1b3c6f1f
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2253210
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-04-26 04:33:27 -05:00
dengwei1
e562dc6ace tundra: input touch fix rmmod
fix
rmmod

Change-Id: I376db1a2f99462e03c754a44a593fe316ac97999
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2253177
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-04-26 04:12:13 -05:00
yanyh2
35608bf0a0 add kernel version check for I_BDEV
As I_BDEV cannot be used in GKI build before
kernel version 5.15, so add kernel version
check when use I_BDEV.

Change-Id: I7f02b64434559d4a1e00a2c8ea6b38bb1288957b
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2252790
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-04-25 22:04:16 -05:00
hujing3
854a34493f focaltech_0flash_v2_mmi:add flash sys nodes to support moto FW download
focaltech_0flash_v2_mmi
add flash sys nodes to support MOTO FW download
porting (CR): 1346254

Change-Id: I8d129ade8f8dca761d624353a9ec95934dd1efb7
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2252194
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-04-25 21:04:18 -05:00
hujing3
78753e078b focaltech_0flash_v2_mmi: add more touchscreen sys nodes
focaltech_0flash_v2_mmi
add more touchscreen sys nodes: panel_supplier, ic_ver

Change-Id: I40347bba6ffe3642e07fabec5bc9fc571b900631
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2252193
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-04-25 21:04:10 -05:00
yanyh2
0b1ff3b85e fix build err for new Kernel version
moto_f_mass_storage.ko build error:
storage_common.c:218:20: error: no member named 'i_bdev'
in 'struct inode'

Change-Id: I1d0bde9c0f60a8147ea4f8668cdc0240ed35ac3c
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2252051
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-04-25 07:01:53 -05:00
yanyh2
6cdc32108e usbnet: fix build error in new Kernel version
Build moto_f_usbnet.ko error:
f_usbnet.c:453:13: error: implicit declaration of function 'get_fs'
[-Werror,-Wimplicit-function-declaration]
f_usbnet.c:454:2: error: implicit declaration of function 'set_fs'
[-Werror,-Wimplicit-function-declaration]

Change-Id: I300f961b7398d22936428caa387cf653aff5b777
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2252054
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-04-25 07:01:48 -05:00
liuyc20
b147b12481 FG: MM8013 FG read batt_temp via iio chanel
the NTC connect to pmk8003.
miami use this NTC to monitor the battery temperature.
the fg get this batt_temp and report to power_supply

Change-Id: Ic983a64ebc971e8873173bec5610168496d07c45
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2252160
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-04-25 05:33:09 -05:00
mahj8
cc367ccc9d charging: delay 100ms to rerun apsd when charger inserted
As sc89890H can't rerun apsd successful, add delay 100ms
to wait IC idle and then rerun apsd to workaround this issue.

Change-Id: I80f4efcbdbdd8244628ce65eb45368c03798af69
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2252095
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-04-25 04:48:03 -05:00
mahj8
7c02900620 charging: bring up PD policy
bring up PD policy
for miami

Change-Id: If64ed99bf810a83d5077d8f7570fc75b4fcb6e5a
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2247925
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-04-25 03:25:19 -05:00
xizx
c3b0652d8c utags: fix build error on kernel 5.15
SM8550 product use kernel 5.15, and utags driver build errors:
1.BIO_MAX_PAGES has been rename to BIO_MAX_VECS
.../drivers/misc/utag/utags.c:171:41: error: use of undeclared identifier 'BIO_MAX_PAGES'
                   num = (left_pages >= BIO_MAX_PAGES) ? BIO_MAX_PAGES : left_pages;

2. get_fs and set_fs() are not exported from 5.15
drivers/misc/utag/utags.c:1268:7: error: implicit declaration of function 'get_fs' [-Werror,-Wim
           fs = get_fs();

3. uselss fp variable that is not used

Change-Id: Ia031b5042124a608cdcf956795bd2e0bd6844689
Reviewed-on: https://gerrit.mot.com/2237918
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2022-04-25 02:35:39 -05:00
wanggc6
7995bb686c charging:Modify regs dump
Modify regs dump when
it is alarm or fault.

Change-Id: I7fb5d0a69b4a1d6cc5ebb8d4359a0213e1c04a3c
Signed-off-by: wanggc6 <wanggc6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2251533
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
2022-04-24 21:56:20 -05:00
weiweij
96e289fc8e mmi_charger: set wls charging as dts configuration
When wls charger connected, charger core will get charger type
from "online" property of wls. And set relative charging current
as dts configuration "mmi,wls-max-icl-ua".

Change-Id: Ie20fd2fb44a4dda15fc5d94e227a5a29a0eed6b2
Reviewed-on: https://gerrit.mot.com/2250276
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-04-24 21:46:41 -05:00
weiweij
2fe305b4d6 wls_charge: add status jugdement for state register read
Add status judgment for register reading, If register reading return an
error, we should regard it as status "false".

Change-Id: I6072ac01dcf531256e036bdc9814e0c5f9ffeb14
Reviewed-on: https://gerrit.mot.com/2251647
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-04-24 21:43:54 -05:00
liujg6
11664d82f8 fix random crashes due to floating point operation
Unprotected floating point operation in kernel might corrupt
NEON register and cause many random native crashes.
Add kernel_neon_begin and kenrel_neon_end to protect floating
point operation in wt6670f module.

Change-Id: I2a3a4a3ac1ce78513211ca669eb25c808653f0cc
Reviewed-on: https://gerrit.mot.com/2251071
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-04-23 21:28:08 -05:00
dengwei1
e04e7a7ec5 rhode: input touch set reset high when sleep
set reset high
as vendor

Change-Id: I8c526e740f2fadaeca9784a2866bc58ad7a1cc99
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2251003
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-04-23 20:45:13 -05:00
longc104
56dbe16abe increase tcpc timeout to wait detect charge type
factory test cannot connect network port
increase polling times

Change-Id: I6878a40336249aae296c3b0729e70a421ff828cf
Signed-off-by: longc104 <longc104@motorola.com>
Reviewed-on: https://gerrit.mot.com/2250326
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ying Shen <shenying@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-04-22 06:04:15 -05:00
longc102
64608c0eb6 rt9471 driver optimize, cannot connect adb after power on
no charger type detect after power on
schedule charger type detect in rt9471_probe()

Change-Id: I4d0c01fd3c68c0716baadf8563555a172e945bb9
Signed-off-by: longc102 <longc102@motorola.com>
Reviewed-on: https://gerrit.mot.com/2249214
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-04-21 05:13:37 -05:00
xuwt2
3ce7c9833b qti_glink_charger: Update wireless dump info
Different project use different wireless chip,
Need to define new wireless dump info struct,
Add WIRELESS_CPS4035B macro definition.
Update new wireless dump info base on WIRELESS_CPS4035B

Change-Id: Iadb02771c420540c5ac119a9c32fe9adcbb25536
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2248230
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
2022-04-21 01:39:42 -05:00
kankan5
8f836ad86e dlkm: vibrator: No vibration when media controls working.
details;
No vibration when media controls working

Change-Id: Id8820adc0d0eb5c8dfc20a27df87a1410e307278
Signed-off-by: kankan5 <kankan5@motorola.com>
Reviewed-on: https://gerrit.mot.com/2246470
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenghai Pan <panzh2@lenovo.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-04-20 23:35:59 -05:00
longc102
7149d8c4e8 rt9471 charge status incorrect
CQA test fail at battery info
if ic status is ready, charge status should be not charging

Change-Id: Ifd83cd1dc2c122a70f1b90e275405e3448986cf7
Signed-off-by: longc102 <longc102@motorola.com>
Reviewed-on: https://gerrit.mot.com/2247969
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-04-20 22:17:25 -05:00
hujing3
746007756c focaltech_0flash_v2_mmi: add touch sys nodes, enable FW download
focaltech_0flash_v2_mmi: ft8726 support
-add touch sys nodes;
-enable FW download;
-add configs for gesture, point report, etc.
-check drm logic before fb for build fix for drm panel

Change-Id: Idaa91550a4ee29d8ba0784a253051d6b2390d0f7
Reviewed-on: https://gerrit.mot.com/2245683
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-04-20 21:33:58 -05:00
hujing3
28bc9f4c00 focaltech_0flash_v2_mmi:ft8726 init codes on new version 3.4
focaltech_0flash_v2_mmi
devon: support for ft8726, add init codes

Change-Id: I55968366435fa8f918d889af7cd56cbe6b228326
Reviewed-on: https://gerrit.mot.com/2245682
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-04-20 21:33:50 -05:00
yanyh2
daae15dbfa Use battery OCV to calculate the delta battery voltage
In order to improve the accuracy of load switch controlling policy
use battery OCV instead of vbat to calculate the delta battery voltage
based on vbat, current and ESR.

Add panic debounce when decide to turn off load switch for high
battery voltage diff between flip and main battery.

Change-Id: Ib9b374952a8f6400e008953b123b4878b17fbe4f
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2247225
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-04-20 06:37:42 -05:00
tinno18
3c3d4008bf hawao+oled: recharger change level to 98%,200mv
change recharger parameters 98% and 200mv
and add project define

Change-Id: I1285134f76ee63af13adb4935064e7d78a9ae088
Reviewed-on: https://gerrit.mot.com/2243845
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <tinno18@motorola.com>
Reviewed-by: Qiong Xie <xieq2@motorola.com>
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2022-04-20 02:00:05 -05:00
yanyh2
708f85fb4f support init bm ulog
Support init bm ulog to print the bm ulog at init
stage to dump adsp init log at bm ulog driver probe.
The adsp init log will help to address the issue during
adsp module init stage.

Change-Id: I4c1a79da57f73463d885ff25466444c73036f43b
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2246243
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2022-04-19 05:35:20 -05:00