Commit graph

1,442 commits

Author SHA1 Message Date
mahj8
8e755b43cf DLKM: disable update_now and usb_otg property
update_now and usb_otg is private property.
It's not GKI compliant. So disable them temporary.

Change-Id: Ief018cb8ac81b07df84f0db1dc101524a6fdb339
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1785508
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-10-28 21:49:10 -05:00
mahj8
461ffa0263 DLKM: bring up charging module
bring up charging module base on kernel 5.4
use iio instead of private power supply

Change-Id: I36fc162663179df7ee4f9f57b425ec4374dab64b
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1785446
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-10-28 21:49:04 -05:00
mahj8
cfba3be408 DLKM: submit the charging base code
submit the charging base code
copy from qpnp-smbcharger-mmi.c

Change-Id: I6f49577c6f04b568e106dd41a4aac6c6dd9e9d34
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1785432
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-10-28 21:48:57 -05:00
jixj
c5ebfbf74d watchdogtest: add qcom_wdt_trigger_bite for trigger wdog
Qcom introduces new watchdog architecture on 4350/8350, so use
"qcom_wdt_trigger_bite" to trigger wdog when enable CONFIG_QCOM_WDT_CORE

Change-Id: Ide2ccb0e5a498454359fd6544e832f109251df5c
Reviewed-on: https://gerrit.mot.com/1782962
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-10-28 20:37:29 -05:00
zhucc2
1db3478963 exfat: workround end_buffer_async_write undefine issue in GKI 5.4
workround end_buffer_async_write undefine issue in GKI 5.4:
ERROR: "end_buffer_async_write" [../../motorola/kernel/modules/fs/exfat/exfat.ko] undefined!
and moto code enable "end_buffer_write_sync" as defual.

Change-Id: I4851ca61e661cbe300b394ef4b7a01f8bc87fec5
Reviewed-on: https://gerrit.mot.com/1783223
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-10-25 20:17:25 -05:00
dengwei1
69d8ad4ae9 guamp: input touch fix esd lock issue
touch ilitek
fix esd lock issue
NO_PROP_NEEDED

Change-Id: Ic18b6839078f8a0efe2ad830f7ef8569ea9b8da6
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1783255
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2020-10-23 03:42:31 -05:00
wuwl10
6f7c8f5bda dlkm: chipone: fix build error on kernel 5.4
$TOP was not defined on Kernel msm-5.4.
Need to update Kbuild to fix the build error.

Change-Id: I6cb80d3e0eff819572b7eb82fad97fc6d3b7a36e
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1779665
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-10-22 20:55:55 -05:00
weimh1
d2c353851a driver/sar-sensor: add sx937x base driver
1.semtech sx937x support multi channels(6/7/8)
  2.add sx937x to bo common branch

Change-Id: If434ed22b6c92fe3612bda882bee8eb7405fe8f7
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1779278
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-10-19 22:57:17 -05:00
huangjq9
72bc40a410 hall: stylus bu520xx: Fix wakeup_source event API change
Refer to https://gerrit.mot.com/#/c/1721469/
On latest kernel wakeup_source_init API remove,
Need to use wakeup_source_register for the same.

This fix replaces wakeup_source_init to wakeup_source_register
wakeup_source_trash to wakeup_source_unregister

Change-Id: I0ae76f3f942237fc89c943fbd65ed48eefd9b698
Signed-off-by: huangjq9 <huangjq9@motorola.com>
Reviewed-on: https://gerrit.mot.com/1778411
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-10-19 04:21:27 -05:00
hujing3
2aadc564c3 touch:nt36xxx: add ESD config
Capri: NT36525b touch driver need enable ESD
Add ESD config support
NO_PROP_NEEDED: needn't for shm2018

Change-Id: I964e4260c833655ce19b6c010b86Montana46d0e8246
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1778506
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-10-19 04:20:42 -05:00
huangjq9
bd5bc163eb hall: stylus bu520xx: fix the compilation errors
- TOP -> ANDROID_BUILD_TOP to solve the error that the hearder file
cannot be found.

Change-Id: Ib383de11808ea3f2f36638379abc35c8b4e6ce0b
Signed-off-by: huangjq9 <huangjq9@motorola.com>
Reviewed-on: https://gerrit.mot.com/1778434
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-10-19 04:20:29 -05:00
jixj
f2c049533f mmi_info: export API for dynamically match mmi device
After flashing GKI, https://gerrit.mot.com/#/c/1439246/ is not available.
Export API to match "mmi,status" rules, the other modules can use this
API to check if driver is available at the begining of probe() function.

Change-Id: I58413e071e32b82037c72c688a7bbbadce28007c
Reviewed-on: https://gerrit.mot.com/1772580
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-10-18 20:32:10 -05:00
yuedl1
371fad72cb exfat:fixed exfat compliling failed on kernel 5.4
fixed exfat compliling failed on kernel 5.4 , due to MS_RDONLY and
MS_NODIRATIME flag is just used for mounting, if file system need
used SB_*.

Change-Id: Icf8bb0595bd2aacefcc3bbf6bc81c48f103af6bf
Signed-off-by: yuedl1 <yuedl1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1773673
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dongliang Yue <yuedl1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-10-14 20:44:32 -05:00
hujing3
df5ea75b7d touch:nt36xxx: NT36525c improvement
Capri plus: support NT36525c IC
enlarge rbuf in ts_data
NO_PROP_NEEDED: needn't for shm2018

Change-Id: Iedc76223f0f53a6baf66b1d323132a263e40bf97
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1769818
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-10-08 23:10:51 -05:00
hujing3
09ea12df43 touch:nt36xxx: support panel ic info
Capri plus: support NT36525b NT36525c both in evt
Add ic config to match fw name with ic info
NO_PROP_NEEDED: needn't for shm2018

Change-Id: I83a33b8770dbbd0a10c4500323e20ef94e7dc386
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1766028
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-10-08 20:21:09 -05:00
quebs2
d35baa02e7 Force Trustonic TEE schedule run in Silver cores.
Cherry-picked from (CR)
Probably on the Gold Core, Athene is not applicable to the nq
handler when Trustonic TEE sheduler is being called. As per the
test results, device will be hung if the tbase is working on e.g
core#6 which belongs to QC Kryto Gold core. workaround to bind
the TEE scheduler with CPU core #0, #1, #2, and #3.

Included logic to select silver CPU and clock mode based on device config:
- RSU_SELECT_SILVER_CORES is set to force Trustonic TEE schedule
run in Silver cores.

- RSU_INTERNAL_CLOCK is set for platforms that use internal clock for
qcom_seecom. Example: In lagoon.dtsi, node
"qcom_seecom: qseecom@c1700000" has entry "qcom,no-clock-support;"

Change-Id: I7d767d42070fbbbd26859ce1a9dca8ead0664dd6
Reviewed-on: https://gerrit.mot.com/1765894
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2020-10-02 14:37:09 -05:00
hujing3
16f3f2dac8 ili9882_mmi: capri txd/tm ili9882 touch bringup
Capri: input touch ili9882 bringup
txd ili9882h & ili9882n
NO_PROP_NEEDED: needn't for shm2018

Change-Id: I92f1462237056aaf1a9eeaeaa1ca69af43354bef
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1764221
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2020-09-30 05:01:26 -05:00
Jing Hu
13690ff10a Revert "(CR) ili9882_mmi: capri txd/tm ili9882 touch bringup"
Revert for build.
NO_PROP_NEEDED: needn't for shm2018

This reverts commit 442a93a5551cb91084dae1514b88c5454165be5c.

Change-Id: I7631e27f57b898e6bb95e914a7d5c503dc902960
Reviewed-on: https://gerrit.mot.com/1764157
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Reviewed-by: Xianhong Li <lixh8@lenovo.com>
Submit-Approved: Jira Key
2020-09-30 03:49:16 -05:00
hujing3
0afb0fbeb6 ili9882_mmi: capri txd/tm ili9882 touch bringup
Capri: input touch ili9882 bringup
txd ili9882h & ili9882n
NO_PROP_NEEDED: needn't for shm2018

Change-Id: I622299f653b3b79fc9b8f53f07374b08680b01df
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1764048
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-09-30 01:31:49 -05:00
liuwang2
4e7f43b4e8 denver: modify wl2864c driver
[detail]
use gpiod to eanble gpio, fix build error in Android R.

Change-Id: I6ebf639b2f90ab1c66d1d7b4e5d78d2c85a09d37
Signed-off-by: liuwang2 <liuwang2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1763843
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Reviewed-by: Long Cheng <chengl1@motorola.com>
Submit-Approved: Jira Key
2020-09-29 23:10:36 -05:00
hujing3
5fbaf3f0b4 touch:nt36xxx: support nt36525c
Caprip: 1st djn+NT36525c
nt36535c touch driver support
NO_PROP_NEEDED: needn't for shm2018

Change-Id: I8b609a7e0c6e050ddff12c8675e68e4488ca721d
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1763079
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-09-29 04:04:22 -05:00
hujing3
9e84ff86b7 touch:nt36xxx:support panel config
Some products support multiple panels with different FW
Add config to support panel check
NO_PROP_NEEDED: needn't for shm2018

Change-Id: I6dab4ce7812bfce24f1a3adb7b6d7acb2dc98bb4
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1762616
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-09-29 03:53:37 -05:00
wengjun1
c07628d21e dlkm: bo: Bringup touch driver for novatek
- Fixed kernel_read/kernel_write error.
- Since input_get_new_minor has been removed from the whitelist
of GKI, so change the new api to alloc_chrdev_region for compatibile
with all kernel version.

Change-Id: Ia232358a283f9f26d0602f50e063f2ddb5c5c24d
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1761835
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-09-28 21:02:55 -05:00
litong
0dfe5d60b7 Modify the compilation error of the device_create function
Error:
1. /focaltech_ts.c:1055:3: warning: misleading indentation; statement is
   not part of the previous 'if' [-Wmisleading-indentation]
2. focaltech_ts.c:2543:11: warning: format string is not a string
   literal (potentially insecure) [-Wformat-security]

Change-Id: I78772d7fc6fcdd12c91e0cd4e49e4b1287e69dc4
Reviewed-on: https://gerrit.mot.com/1760981
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
Tested-by: Jira Key
2020-09-27 20:55:34 -05:00
litong
2e64a2b0e5 Use alloc_chrdev_region instead of input_get_new_minor
Because the input_get_new_minor function is not in the whitelist, and
Google thinks that a normal input driver should not use those functions,
so use the alloc_chrdev_region function to obtain the device number,
which is used to create node under the path /sys/class/touchscreen/.

Change-Id: Iedd2abdc6b772b62ea95c1edcd9eabc4b1256eec
Reviewed-on: https://gerrit.mot.com/1758757
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-09-27 20:55:14 -05:00
xuwt2
e3a1842549 the battery should be charged in taper-charger until iterm
the battery charge is considered complete when the charge current
reaches the iterm value, but before that it should be charged in
taper-charger until current actually reaches iterm.
However, https://gerrit.mot.com/#/c/1731691/ from smith changed
mmi_has_current_tapered() which use to confirm whether to reach iterm
that cause the battery charging was cut-off immediately after the SOC
was reporting 100%

Change-Id: I3f2b8134624ceca471c4cd5eecfd817002c4e865
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1761003
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-09-27 05:26:35 -05:00
wengjun1
5ff1939898 dlkm: bo: Bringup touch driver for novatek
- Support for kernel 5.4.0.
- Support for new panel notifier api.
- Sync below changes from bq-sm2019
(CR) Minsk: Pen status notification to touch for novatek.
(CR) dlkm: add palm rejection for nova_0flash_mmi.
(CR) dlkm: add interface for plam rejection.
(CR) Minsk: Improve palm event handler

Change-Id: Ia8bec432561e3d717baab5e54e3ffd43736e045c
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1760990
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-09-27 02:34:10 -05:00
Ryan Lattrel
a5576289fd sx933x: Add a dummy flush function
Add a flush function that returns success.  This is
needed to pass VTS testing.

Change-Id: I0550eb39694b4bf33ed7ba872107a135edf27a71
Reviewed-on: https://gerrit.mot.com/1759290
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-09-25 14:10:46 -05:00
tnlizd
a88706793f sx9338: sar sensor bring up
caprip:
1. add sx9338 sar sensor support

Change-Id: If1357134f8b0e4b2d420c3ff444aedde31ed243d
Reviewed-on: https://gerrit.mot.com/1758991
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jiyue Cui <cuijy2@lenovo.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-09-25 01:40:12 -05:00
liujian24
6fbd18d1d5 Capri:Add compability of chipone driver
WHY: Chipone fps driver should be working on different Android version
WHAT:Add compability support in chipone driver

Change-Id: Ic3d3cf0fafd11b5dbd600170ca0044bc4c70b3a9
Reviewed-on: https://gerrit.mot.com/1758615
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: liujian <liujian24@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-09-23 20:24:17 -05:00
liujian24
50ec4655fb Capri:Add support for Chipone FPS
WHY: Need support chipone fps on capri/caprip
WHAT:Add necessary for driver based on Android R

Change-Id: Ib826c6bfd1d3a328b6d56a175e46e18a98076d6e
Reviewed-on: https://gerrit.mot.com/1757677
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-09-23 05:19:14 -05:00
wangyq13
707ee16fb1 input: ilitek_0flash_mmi: change memcpy wlen value
ilitek_0flash_mmi:
Change memcpy wlen value, to avoid memory access issue
for KASAN check.
NO_PROP_NEEDED: <New IC for NPI>

Change-Id: I847ec5f6c8c57fafed4e9b9119c77162ee39e682
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1756549
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
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
2020-09-23 00:43:57 -05:00
Bruno Oliveira
352a0f8435 Fixing factory kill function
orderly_poweroff is a function from kernel/reboot.c that does not work since
poweroff binary was removed from /sbin/.

Factory Kill still worked because qcom smb5 power supply driver disables
motorola factory kill and implements its own (with kernel_power_off). Since
they removed their own implementation it falls back to the broken one.

This commit replace orderly_poweroff by kernel_power_off the same way qcom
used to do.

Change-Id: Iee78e729add3e31b29c192adc7bcfbab46b1462e
Reviewed-on: https://gerrit.mot.com/1753065
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-09-18 06:04:54 -05:00
Drew Abbott
075b3e8095 Flip sign of current during taper check
On Smith, charging current is positive and discharging current is
negative. The flipped sign would always report discharging, so the
current would always report as tapered.

Change-Id: Ia2b93a1e943d20a52956e6068acae879d1934a8d
Reviewed-on: https://gerrit.mot.com/1731691
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Bernie Moreno <berniem@motorola.com>
2020-09-17 17:02:26 -05:00
Drew Abbott
53da186cbb Add battery profile v5
v5 increases the taper rate of flip battery to 140mA and decreases that
of the main battery to 80mA. This will allow for reaching 100% around 20
minutes earlier than the charger stops.

Change-Id: Ia2f6a9997c41e1a1dca1c755982125b3635c4096
Reviewed-on: https://gerrit.mot.com/1731692
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
2020-09-17 17:02:21 -05:00
Drew Abbott
794911eaba Print all Ra tables
The driver currently only prints the first 8 Ra tables, this will allow
for printing all 15.

Change-Id: I3524dd73789d8fba274e6e96f1254bf400189335
Reviewed-on: https://gerrit.mot.com/1750383
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
2020-09-17 17:02:02 -05:00
xizx
f72a6ed083 watchdogtest: fix kallsyms_lookup_name issue in GKI 5.4
kallsyms_lookup_name is not exported in kernel 5.4 and the driver should
work for qcom , samsung and MTK, so use a specially way to distinguish it.

Change-Id: Ic9d89a1af48b4e03481f2aaf38f3bf5dbdafc2cd
Reviewed-on: https://gerrit.mot.com/1689258
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2020-09-16 02:32:16 -05:00
xizx
c55f0b7ef4 touchscreen_mmi: import correct Modules.symvers in GKI build mode
When importing the Modules.symvers in fix path, the GKI module will import an
incorrect one and cause module load fail in boot-gki kernel mode.

Change-Id: Ie17e494821dafcc1fad147202dae445b9250875b
Reviewed-on: https://gerrit.mot.com/1743517
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2020-09-15 23:06:42 -05:00
xizx
a11e15b275 tzlog_dump: use ioremap to map ram from kernel 5.4
1.dma_remap is not supported from kernel 5.4, so use ioremap to map
the memory address.

2.solve build error:
ERROR: "mmi_annotate" [../../motorola/kernel/modules/drivers/tzlog_dump/tzlog_dump.ko] undefined!
ERROR: "bi_powerup_reason" [../../motorola/kernel/modules/drivers/tzlog_dump/tzlog_dump.ko] undefined!

Change-Id: Ib5d45f0b21d7afb1debba0d591b51da0c828f596
Signed-off-by: xiaoy3 <xiaoy3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1696955
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2020-09-15 23:05:56 -05:00
xizx
72d8c8b9cb tzlog_dump: workaround msm_dump_data_register undefine issue in GKI 5.4
workaround the compile error during GKI kernel 5.4:
ERROR: "msm_dump_data_register" [../../motorola/kernel/modules/drivers/tzlog_dump/tzlog_dump.ko] undefined!

Change-Id: I86d0ee261f5bbfe064165df7614ecf408Montana8697
Reviewed-on: https://gerrit.mot.com/1707351
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2020-09-15 23:05:53 -05:00
Drew Abbott
c3c086fb78 Add battery number to logging
Adding the battery number in log messages allows for determining which
charger produced the log output.

Change-Id: Ie3394185626fdc2181e2c2e3d734fd6c1725ce30
Reviewed-on: https://gerrit.mot.com/1731690
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-09-15 14:45:24 -05:00
Drew Abbott
7ee9f8bcff fix ITPOR and CFGUPMODE logging
Values were not being set properly after initializatoin, this change
will update them for proper logging

Change-Id: I09675258e2c7acf6d5724a5211dc0d593d27ef53
Reviewed-on: https://gerrit.mot.com/1731689
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-09-15 14:45:16 -05:00
xizx
b2bceb7a6d sec_mmi: import ANDROID_GKI_VFS_EXPORT_ONLY namespace for kernel_read
kernel_read and kernel_write are exported with specific ANDROID_GKI_VFS_EXPORT_ONLY
namespace, so the DLKM should import the namespace.

error log:
[   35.634756] sec_mmi: module uses symbol (kernel_read) from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it.
[   35.648698] sec_mmi: Unknown symbol kernel_read (err -22)

Change-Id: Ic333a4c66115c15aa0994c1d2210eea62db88d32
Reviewed-on: https://gerrit.mot.com/1749485
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-09-15 04:29:42 -05:00
xizx
ca04a28583 utags: import ANDROID_GKI_VFS_EXPORT_ONLY namespace for kernel_read
kernel_read and kernel_write are exported with specific ANDROID_GKI_VFS_EXPORT_ONLY
namespace, so the DLKM should import the namespace.

error log:
[   12.547678] utags: module uses symbol (kernel_read) from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it.
[   12.561432] utags: Unknown symbol kernel_read (err -22)

Change-Id: I14607da4198c41ddb989d63cc02e560ffc50be11
Reviewed-on: https://gerrit.mot.com/1749451
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2020-09-15 04:29:25 -05:00
Eduardo Ferreira
f5e8a94c75 Refactoring code to use new wake API
There was a build error due to wake API changes, so we took the
oportunity to refactor it to use the new API from linux/mmi_wake_lock.h

Change-Id: I19854604e339d1e986f434be4afd78fac584adda
Signed-off-by: Eduardo Ferreira <edufb@motorola.com>
Reviewed-on: https://gerrit.mot.com/1737197
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-09-10 08:23:18 -05:00
Rafael Ortolan
60afa605f4 himax_0flash: fix driver resume issue
Driver was not resuming from suspend as it was using a panel event
that is not reliable. Use PANEL_EVENT_DISPLAY_ON instead.

NO_PROP_NEEDED: <only applies to bo>

Change-Id: I435686b53453e18fbcfd864ab355c8817779f27a
Reviewed-on: https://gerrit.mot.com/1737310
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Eduardo Ferreira Barbosa <edufb@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-09-10 08:22:04 -05:00
hujing3
41db0f7754 focaltech_0flash_mmi: add reg log when tp not in normal mode
GIN: focaltech touch driver update
add reg log when tp not in normal mode, for better issue analysis

Change-Id: I3a9f6d0ca1c469ebf432d1552a5949e5bbfdb145
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1745700
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-09-10 00:47:03 -05:00
dengwei1
1b1a75d0d4 guam: input touch ilitek set deep sleep mode
input touch ilitek set deep sleep mode
chipone enable esd
NO_PROP_NEEDED

Change-Id: Iebfdd06a6b88b2691309e9b23b0de152a88bd3c3
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1745616
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-09-09 22:28:48 -05:00
Jefferson Capovilla
a23c1813fc Add Trustonic TEE driver module
Cherry-picked from: (CR)
Updated mcp.c, mcp.h and platform.h to make driver
compatible to kernel 4.19.
Add the Trustonic TEE driver module to the kernel.  This is needed
to run trusted applications in the Trustonic TEE.
Updated Kbuild with current files.

Kinibi version t-base-QC8996-Android-410a-V106.

Change-Id: Id237e0acb2b0e6fe37045796106e3d1e5cb4b1b0
Reviewed-on: https://gerrit.mot.com/1685214
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Joel Voss <jvoss@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2020-09-09 18:21:28 -05:00
wangyq13
98284045a9 input: ilitek_0flash_mmi: add ic_ver sys node for MotoCare
input/ilitek_0flash_mmi:
Add ic_ver sys node for MotoCare.
NO_PROP_NEEDED: <New IC for NPI>

Change-Id: I7b8a63349fec7f51f02a64bd323ab00ebc5b8bbe
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1744827
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-09-09 04:55:30 -05:00