Adjust the makefile to be compatible with Android S
version.
Change-Id: Ica70b178ae1b84dce47221c9018a4d35ff6c4363
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1992143
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haichao Li <liuhc3@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
1. Add DRM_PANEL_EVENT nofification for Andorid S.
2. support touchscreen_mmi and related modules build in kernel-5.10.
3. Use timespec64 instead of timespec function.
Change-Id: If0252015e10bff24c10d54b13df2e0f6aa156a6e
Reviewed-on: https://gerrit.mot.com/1965128
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
sometimes ps_notify_callback will be called
after reg_notifier immediately
at this time global_sx937x is NULL
will cause kernel panic
change global_sx937x initialization position earlier
Change-Id: I2379ea3113563268d36d5ddc0bb2cb5a510b15e7
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1990372
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hong Zhang <zhangh12@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
ps_notify_callback warnning for block function usb_psy_get_prop()
mv ps_get_state to work callback
Change-Id: I856879ccd0d727660bc92c945445a64b4a03fddb
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1977442
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hong Zhang <zhangh12@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
In QCOM 7350/8350, the kernel doesn't provide pmic-vote to control
battery charging.
the mmi_charger is an intermediate layer that forwards charging control
to ADSP Battmngr from the application layer.
By using USE_MMI_CHARGER macro definition that qpnp-adaptive-charge can be use
mmi_charger's func to control battery charging
Change-Id: I4da0604eabdadfc483143360ef7b7aad174cda47
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1983612
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
Add vote mechanism support for mmi charger so that
other modules can engage mmi charger interoperation.
Change-Id: I1772007c3acec199bd319601e3486bc7542c663f
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1984291
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Add missing sysfs to allow Factory to re-enable charging while in
factory mode or when using factory software.
Change-Id: If39b3d5f56495b7d89445629bc1541f0b22a296a
Reviewed-on: https://gerrit.mot.com/1949637
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
SC8551A charge pump will reverse voltage to usbC while plug
out usb cable, So force disable sc8551 to prevent reverse
after quit charge policy.
Porting from https://gerrit.mot.com/#/c/1945421/
Change-Id: Iebfcf055850da29e40e37bd8220ed5d99581cbcb
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1982527
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
Do charger state sync when boot completed in case missing
some charger state change.
Change-Id: Iec128382d5edb98cda47752d07e606a6b66316be
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1982792
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
As the reverted patch may cause panic for race resource batt_uenvp
when it accesses batt_uenvp which was just freed in heartbeat work.
Mot-CRs-fixed: (CR)
This reverts commit 715a9d18d8fa6b7acfc9540f5e3df2c4332baf28.
Change-Id: I07f3bf2cba6f30b345988231d0ee8ea18da27e4f
Reviewed-on: https://gerrit.mot.com/1982785
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
The kernel does not have permission to access the /data/vendor
partition, so send the update firmware notify to touchUpg service
on resume for zero-flash touch IC.
avc: denied { search } for name="param" dev="dm-6" ino=275
scontext=u:r:kernel:s0 tcontext=u:object_r:param_data_file:s0
tclass=dir permissive=0
Change-Id: I5d5c9f39bab25a8d3377e0475e79a0411d93b56b
Reviewed-on: https://gerrit.mot.com/1979786
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Submit-Approved: Jira Key
Support to upgrade TP firmware through the
Parameter APK.
Change-Id: I370e175db38ab7f5de3aa4cc5aabae7ea2f219c6
Reviewed-on: https://gerrit.mot.com/1979783
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Submit-Approved: Jira Key
Support st21nfc ko build in kernel-5.10
for rogue bring up
Change-Id: Ib55455435f68170db931cf779e3d8fe2ae25a63c
Signed-off-by: zhuangnk1 <zhuangnk1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1966273
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zishang Zhou <zhouzs1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
At hvdcp more than 15w project.
AICL threshold will set to higher than 5V
which result pmic charging current unstable.
Change-Id: If1a0e9174dbaf5df656442bbdd1247b231636c48
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1980875
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
add enable CP api for ESR.
disable all CP before ESR and switch to PMIC
enable all CP after ESR
Porting from (CR)
Change-Id: Ie2eafab9002b85982b359124c007dc939642fe14
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1978514
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Submit-Approved: Jira Key
Control gpio switch and regulator of fingerprint according to
the configuration of device node.
1. Use gpio switch if fp-gpio-ven is defined and valid.
2 .Use regulator control if rgltr-ctrl-support is defined and relevant
vdd, voltage range is valid.
Change-Id: Ia5e71c08306835e4d93552dbc037beb78fca39db
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/1971796
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Control gpio switch and regulator of fingerprint according to
the configuration of device node.
1. Use gpio switch if fp-gpio-ven is defined and valid.
2 .Use regulator control if "rgltr-ctrl-support" is defined and relevant
"fp,vdd" and voltage range is valid.
Change-Id: I40acd3abdba285a41f258d51b62f92a59c6796c7
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/1971397
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
-In the current logic,the camera process is after setting the vibrator timer.
The camera will take some time,which cause the vibration duration to be shorter.
Especially when we use launch_lens to move lens step-by-step.
-So move camera process before setting vibrator timer.
Change-Id: Ib8115444015f6160c25177e9065aa0f6a2fcede3
Signed-off-by: wangshuo18 <wangshuo18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1976296
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Xingyun Fu <fuxy7@motorola.com>
Reviewed-by: Qiang Guo <guoq8@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
- Add support for 2nd source galaxy core gc7372.
- Add support for touch class for moto.
- Need to be improverd since this is initial code.
Change-Id: Ib75619df4f97be6a4ec2c5f3df8714cbac341fc1
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1974591
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
When vibrating with pattern [0,200,0,50], the vibrating will be started with
200ms duration first, when 200ms timeout, vibrator will be stopped with
duration 50ms which will not be considered as long vibrating, then AF will
not be turned off after that. This change is for fixing above issue, though
we haven't got evidence pointing to above metioned vibrating pattern is user
really encounted issue.
Change-Id: Iadc8ff7b9e00a11dc1d3e89b822e6cb8adb76116
Signed-off-by: chenglong1 <chenglong1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1973075
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Zhilong Wang <wangzl30@motorola.com>
Reviewed-by: Darong Huang <huangdra@motorola.com>
Reviewed-by: Jian Zhang <zhangjo@motorola.com>
Reviewed-by: Shuo Wang <wangsh18@motorola.com>
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Add sense off process berfore sense on to avoid
the problem that tp firmware cannot exit the
gesture mode normally.
Change-Id: Ibb7a8572c168f8c4427c868fd8075ea086138243
Reviewed-on: https://gerrit.mot.com/1973335
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
1. Provide debugfs interface to collect battery manager ADSP log in AP side.
2. Provide debugfs interfaces to configure log level and category for log mask.
3. Provide exported APIs for other Moto battery charger DLKM to get battery
charger ADSP log and output to Kernel log or IPC logging.
Change-Id: I93cb18542414b21084a09218366d6d675beeb807
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1971297
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
- Since the uncertainty of the loading time of the display
module when using gki, so change the logic of read panel
name in touch module.
Change-Id: I82d519bb96a8c82b1eff7044949ab270263a648c
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1956524
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
the panel name can be captured from the bootargs, then define the correspoding
regs in dts of sensor.
Change-Id: Ia25da8afad4fd6c710a3f8d62333350278cdfb78
Signed-off-by: zhangh12 <zhangh12@motorola.com>
Reviewed-on: https://gerrit.mot.com/1967050
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Jiyue Cui <cuijy2@lenovo.com>
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
-move camera start interface into aw8695_haptic_play_go to cover all
vibratoring cases
-add camera func called in aw8695_haptic_get_f0,to handle resonance
during phone boot case
Change-Id: I17e39debfabca1a812ac2728f10714eff08bdf9d
Signed-off-by: wangshuo18 <wangshuo18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1967255
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Zilong Zhang <zhangzl7@lenovo.com>
Reviewed-by: Wang Liu <liuwang2@lenovo.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key