Commit graph

1,461 commits

Author SHA1 Message Date
hujing3
fcdea9385f ili9882_mmi: improve RESUME_BY_DDI support
ili9882_mmi: improve RESUME_BY_DDI support
for quick touch response.
NO_PROP_NEEDED

Change-Id: I1a54b94414b64de24d516acd51a5f49a1d3c566b
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1798531
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-11-10 03:20:48 -06:00
hujing3
19dd36166f nova_0flash_mmi: add LCM_FAST_LIGHTUP support
nova_0flash_mmi:
add LCM_FAST_LIGHTUP support
NO_PROP_NEEDED

Change-Id: Ib449bc337ab7690e5fb0de57ca8cbe5714db18f3
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1798386
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-11-10 03:20:34 -06:00
wengjun1
2d92c538ad Support tapTowake feature on android R for novatek
- Since moto display notifier has been changed to common
interface, for implement tap to wake need some changes to
match display.
NO_PROP_NEEDED: needn't for shm2018

Change-Id: I9642787a29e9326e9ac648138e2fe47800783ed0
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1793188
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-11-10 01:14:10 -06:00
hujing3
6622b482a3 chipone_tddi_mmi: ICNL9911C and ESD improve
chipone_tddi_mmi:
ICNL9911C & ESD improve
NO_PROP_NEEDED

Change-Id: I5b40ceda928bf2f49bb4920d7134771d122cba76
Reviewed-on: https://gerrit.mot.com/1797147
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-11-09 00:02:33 -06:00
zhucc2
c920f5bf83 exfat: fix build err on user build.
After SM4350 ES FC rebase, find some API are delete by Google in GKI.
we have to workround as below:
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/../../kernel/
msm-$(MODULE_KERNEL_VERSION)/Module.symvers

ERROR: "truncate_setsize" [../../motorola/kernel/modules/fs/exfat/exfat.ko] undefined!
ERROR: "setattr_prepare" [../../motorola/kernel/modules/fs/exfat/exfat.ko] undefined!
ERROR: "clear_nlink" [../../motorola/kernel/modules/fs/exfat/exfat.ko] undefined!
ERROR: "set_nlink" [../../motorola/kernel/modules/fs/exfat/exfat.ko] undefined!
ERROR: "d_splice_alias" [../../motorola/kernel/modules/fs/exfat/exfat.ko] undefined!
ERROR: "igrab" [../../motorola/kernel/modules/fs/exfat/exfat.ko] undefined!

Change-Id: I9399a691ee70485a157e33243c7095c38ab37290
Reviewed-on: https://gerrit.mot.com/1796098
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-06 04:43:04 -06:00
hujing3
4cc775bdc5 chipone_tddi_mmi: support ICNL9911C
Cebu 3rd panel bringup
Support Chipone new touch IC ICNL9911C
NO_PROP_NEEDED

Change-Id: I4f8bbed3aac151928bdce009bc3b8a787dacc72f
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1794746
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-11-05 03:28:55 -06:00
Ningkai Zhuang
e77bc813ae NFC driver mmi and DLKM support
1 NFC driver will mmi.nfc to decide if need to probe
2 Add NXP SN1xx driver to DLKM
3 Fix ST driver building error on v(CR)

Change-Id: If7f6b1439c7214c4eaaef4ed1368a89988802c67
Signed-off-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1788053
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zishang Zhou <zhouzs1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2020-11-04 03:23:27 -06:00
weimh1
b61eb9bbf2 driver/sar-sensor: build error on user build
build error:
    ERROR: "sensors_classdev_unregister" [../../motorola/kernel/modules
    /drivers/misc/sx937x/sx937x_sar.ko] undefined!
    ERROR: "sensors_classdev_register" [../../motorola/kernel/modules
    /drivers/misc/sx937x/sx937x_sar.ko] undefined!

   sar-sensor based on sensors_class.ko,need add dependency to
   make sure sensors_calss build before sarsensor:
   LOCAL_ADDITIONAL_DEPENDENCIES := $(KERNEL_MODULES_OUT)/sensors_class.ko

Change-Id: Id4f7dbf73e67974fc40612327f473cdbdc9bc417
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1793323
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-04 03:12:59 -06:00
weimh1
5fa133d16c driver/sar-sensor: sx937x bring up
PH3 is used as IRQ,so we should not operate bit3
  or it will geneate too much irq.

Change-Id: I74b13cda139cc7ba8eeb87fe0bfab5d5f05debc3
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1791973
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-03 01:24:11 -06:00
litong
440ca970d5 Continue to probe touch even if no matching panel is found
TP:
1.Continue to probe touchscreen driver even if no matching panel is found
  to ensure the basic functions of the touchscreen.
2.There is no member "id" in drm_panel_notifier at present, so set id to 0
  to ensure touch driver can receive notifications from panel.

Change-Id: I2f8c946304be4511bc7ef3422937bfe8ea927a98
Reviewed-on: https://gerrit.mot.com/1745970
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2020-11-03 01:07:49 -06:00
mahj8
4fd95ed959 DLKM: build error on user build
build error:
ERROR: "power_supply_notifier" [../../motorola/kernel/modules/
drivers/power/mmi-smbcharger-iio/mmi-smbcharger-iio.ko] undefined!
ERROR: "power_supply_class" [../../motorola/kernel/modules/
drivers/power/mmi-smbcharger-iio/mmi-smbcharger-iio.ko] undefined!
ERROR: "class_for_each_device" [../../motorola/kernel/modules/
drivers/power/mmi-smbcharger-iio/mmi-smbcharger-iio.ko] undefined!
ERROR: "kernel_power_off" [../../motorola/kernel/modules/
drivers/power/mmi-smbcharger-iio/mmi-smbcharger-iio.ko] undefined!
ERROR: "alarm_try_to_cancel" [../../motorola/kernel/modules/
drivers/power/mmi-smbcharger-iio/mmi-smbcharger-iio.ko] undefined!

They are defined in boot.img, but they don't defined in google gki.
so we should fix it as below:
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/../../kernel/
msm-$(MODULE_KERNEL_VERSION)/Module.symvers

Change-Id: Iabb4297c3c2a01a2ff57d0e11b61a973eb058184
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1791885
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-03 00:32:36 -06:00
tnlizd
9f2d0a4994 [capsensor] add debug support for cap sensor
Capri: sx9338 sar sensor
load reference phase config from dts

Change-Id: I9aaeb587e87e74a9bb1bedbc31551ffd2c50c8bf
Signed-off-by: tnlizd <tnlizd@motorola.com>
Reviewed-on: https://gerrit.mot.com/1790916
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-11-02 21:29:17 -06:00
Yan Zhang
93e72f7758 Add 5ms delay for wl2864c ramp-up
TOF VDD uses wl2864c pmic, wl2864c needs more
ramp-up time, therefore add 5ms delay according to
hardware team.

Change-Id: I684a4bd434bc026c78ebc4fd80a1d8a274615c7f
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/1790614
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Lei Chen <chenl18@motorola.com>
2020-11-02 01:47:38 -06:00
weimh1
58d20fda48 driver/sar-sensor: build error on user build
build error:
    ERROR: "sensors_classdev_unregister" [../../motorola/kernel/modules/
    drivers/misc/sx937x/sx937x_sar.ko] undefined!
    ERROR: "sensors_classdev_register" [../../motorola/kernel/modules/
    drivers/misc/sx937x/sx937x_sar.ko] undefined!

  These two symbols defined on sensors_class.ko.But it will create gki 
  for user build,so we should fix it as below:
  KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/
  ../../sensors/gki/Module.symvers

  MODPOST = scripts/mod/modpost					\
        $(if $(CONFIG_MODVERSIONS),-m)				\
	$(if $(CONFIG_MODULE_SRCVERSION_ALL),-a)		\
	$(if $(KBUILD_EXTMOD),-i,-o) $(kernelsymfile)		\
	$(if $(KBUILD_EXTMOD),-I $(modulesymfile))		\
	$(if $(KBUILD_EXTMOD),$(addprefix -e ,$(KBUILD_EXTRA_SYMBOLS)))\
	$(if $(KBUILD_EXTMOD),-o $(modulesymfile))		\
	$(if $(CONFIG_SECTION_MISMATCH_WARN_ONLY),,-E)		\
	$(if $(KBUILD_MODPOST_WARN),-w)				\
	$(if $(filter nsdeps,$(MAKECMDGOALS)),-d)

Change-Id: Ib402dcca29637ec77d805200cc768b1b2cd2d961
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1790594
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-01 21:28:34 -06:00
wengjun1
bee54e058c dlkm: bo: Fixed compile error on android R
- Fixed compile error on android R with kernel 5.4.0 when
tap to wake is enabled.
NO_PROP_NEEDED: needn't for shm2018

Change-Id: I1cba236475a89834545b2cae699f5cc0640ae192
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1789144
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-01 20:02:53 -06:00
zhangh12
e222b9be7f [capsensor] add debug info for read_rawdata
venor provide a new driver for adding some debug messages
on read_rawdata().
cmd: adb shell "logcat -b kernel | grep SMTC_D"

Change-Id: I0e0ebc09d48b1d34d40d581f9a3cdf43dcd7cf97
Signed-off-by: zhangh12 <zhangh12@motorola.com>
Reviewed-on: https://gerrit.mot.com/1773854
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Jiyue Cui <cuijy2@lenovo.com>
2020-10-29 22:51:47 -05:00
wengjun1
650168f62c Ibiza: Touch ICNL9911C bringup
- Bringup for touch chipone icnl9911c.
- Add support for kernel 5.4.0 with android R.
NO_PROP_NEEDED: needn't for shm2018

Change-Id: I3e43dca0766637a0544f9e2c43913d752b359121
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1788257
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-10-29 20:39:01 -05:00
jixj
69539ee2e0 Revert "(CR): utags.ko: solve the unused remove_proc_subtree symbol definition"
This reverts commit ad7449af9ac7fd5418a6eb0462b74633b2f1dcca.

It is not needed anymore because remove_proc_subtree has been added to
GKI whitelist

Change-Id: Ic1cf38cfe215357b958de509f9bbf6e80116f564
Reviewed-on: https://gerrit.mot.com/1788234
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-10-29 03:09:09 -05:00
jixj
3396f59b2f Revert "(CR): utags.ko: force this module unloadable"
This reverts commit 298e2347dfc445415663afbfc2ff1e8e7053a905.

It is not needed anymore because remove_proc_subtree has been added to
GKI whitelist

Change-Id: Ieee190e012ab338b613c81358298a86443d6944b
Reviewed-on: https://gerrit.mot.com/1788233
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-10-29 03:09:04 -05:00
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