Commit graph

780 commits

Author SHA1 Message Date
haojl2
2ee82ec09e DLKM: touch: Sync nova_0flash_mmi code with bq-sh2019
Add following patches for sync with bq-sh2019,

- (CR): nova_0flash_mmi: Add double tap function
- (CR): nova_0flash_mmi: Add update sys entry
- (CR): nova_0flash_mmi: enable irq when double tap is enabled.
- (CR): nova_0flash_mmi: add touchscreen class

Change-Id: I8586ab7cb9652d0320ad535aab698b67e2f2b2f0
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1414361
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-09-03 20:51:50 -05:00
huangjq9
a143cdade2 sar-sensor: fix some issue about a96t
- fix the sensors enable/disable confusion;
- fix the initial mode is not in stop mode for a96t;
- fix the issue about the update work;
   the initialize(this) no calling under mutex_lock;
- fix the detection about above_detect(), the max time is 75ms.
   so, we need set the detct time to 100ms.

Change-Id: I070c908fcb8edadb4dad51fa7a749e912d19f0a1
Signed-off-by: huangjq9 <huangjq9@motorola.com>
Reviewed-on: https://gerrit.mot.com/1414619
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-09-03 09:22:49 -05:00
haojl2
bcb048ad74 focaltech_0flash_mmi: clear flag after lazy enable done
TP:
After laze enable is done, clear this flag.

Change-Id: I7bcfce54f4976f962a6443fe9962c1e2968b1ba1
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1414062
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2019-09-02 07:15:46 -05:00
haojl2
1d06f84613 himax_v2_mmi: clear flag after lazy enable done
TP:
After laze enable is done, clear this flag.

Change-Id: I378d5d33ab44f669f386f641342356ac24a63109
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1414061
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2019-09-02 07:15:44 -05:00
yanyh2
cf6288f94f stmvl53l1: support calibration data dynamic loading
In order to support run-time power management with dynamic
power on/off, it has to support calibration data loading after
power on TOF.
if not,xtalk calibration data will change after ranging
and override correct xtalk calib data

Change-Id: Ia67e3bb806ea8295bb7829888c201f22a0c0b59d
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1407816
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit 799a22316b6c3b8809a448ff1fb37db9514db9ab)
Reviewed-on: https://gerrit.mot.com/1408713
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
2019-09-02 01:39:34 -05:00
wengjun1
a372d9688e DLKM: touch: Improve novatek 0flash driver
- Add dts configuration for change different resultion accroding
to different projects.

Change-Id: I5cb65dbeee24a450296c09a5df5145c017933fe0
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1413351
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-09-01 20:59:01 -05:00
yangjq
3d0a6b21a6 aw8695: Fix an concurrent error rarely happen
When vibrating stop is received too soon after a start, the
vibrator may fail to work normally, which can be fixed l(CR) this.

Change-Id: I7400ed5616d18d02520de2affeae6556d5fc7f1c
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1413414
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-08-31 19:14:57 -05:00
haojl2
4c7d69b4f2 focaltech_0flash_mmi: report 0 when enable called
TP:
For palm sensor, report 0 when enable called.

Change-Id: Ib2d10a78abe41d02da731ccce75c449d30bf3175
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1412576
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-08-29 03:40:37 -05:00
haojl2
84dde58033 himax_v2_mmi: report 0 when enable called
TP:
For palm sensor, report 0 when enable called.

Change-Id: I6a3c554f0fdc4adbc4d46d8d3035664682e95222
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1412577
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-08-29 03:40:25 -05:00
wangyq13
48aa94e713 input: nova_0flash_mmi: add nt36526 code changes
nova_0flash_mmi:
Add nt36526 codes changes.

Change-Id: Ibc585e3d227f9df36f923ac73bc4ed0f195caf62
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1412021
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hongshu Lou <louhs1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-08-28 21:46:36 -05:00
haojl2
9f8659ac96 nova_0flash_mmi: Novatek TP 0flash driver.
TP:
Initial release for Moto Defender based on SVN V4.18.

Change-Id: I66825b8962c6f4a187fa4eea4364015124118b40
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1412019
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hongshu Lou <louhs1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-08-28 21:46:31 -05:00
haojl2
fc40897dd4 focaltech_0flash_mmi: release fingers in palm suspend
TP:
When panel suspend by palm sensor enabled, release all fingers.

Change-Id: I496b6b81bc87e553fea1a6acd720b15b1ddaeab9
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1411993
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2019-08-28 21:40:11 -05:00
haojl2
e3eebc917d himax_v2_mmi: Make sure SPI bus not suspend when TP acvice
TP:
When Palm sensor is enabled, make sure device is in active state.
Because in this situation, TP interrupt is active, and data need read
from SPI bus.

Change-Id: I611df4787632bf8f80ec01ddb1c45dc05baa4648
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1411955
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2019-08-28 21:40:02 -05:00
haojl2
14cb51b3f8 focaltech_0flash_mmi: Make sure SPI bus not suspend
TP:
When Palm sensor is enabled, make sure device is in active state.
Because in this situation, TP interrupt is active, and data need read
from SPI bus.

Change-Id: I5769a987d278a299b5a7de9ea19ac421cb3c9fe3
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1411932
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2019-08-28 21:40:00 -05:00
haojl2
36cfaa8942 focaltech_0flash_mmi: delay palm opt when TP suspended
TP:
When TP in suspend state, palm sensor operation is not need to be set.
Delay this opt when TP resume

Change-Id: Ifb8ee4d10543b935c390ab6a7e6a0768d00680ba
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1411931
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2019-08-28 21:39:26 -05:00
haojl2
55de2a981c :himax_v2_mmi: delay palm opt when TP suspended
TP:
When TP in suspend state, palm sensor operation is not need to be set.
Delay this opt when TP resume

Change-Id: I5247f9711f376ce81ac547046969331c38c5bdad
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1411822
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2019-08-28 21:39:24 -05:00
haojl2
8eb26142f2 focaltech_0flash_mmi: Add suspend resume mutex
TP:
Add a mutex to lock suspend and resume function
This is used by touch virtual sensor

Change-Id: I816fa9347299313a392ad9e0b4e4991aac74fef3
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1411930
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2019-08-28 21:39:11 -05:00
haojl2
beb3720917 himax_v2_mmi: Add suspend resume mutex
TP:
Add a mutex to lock suspend and resume function
This is used by touch virtual sensor

Change-Id: If7cc2dab9a5b1550a46ee4b5679d4451b1d944cd
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1411821
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2019-08-28 21:39:08 -05:00
haojl2
55ee1068f3 himax_v2_mmi: Do not report points when IC suspend
TP:
Do not report points when IC suspend.

Change-Id: I4f896764eb40f100b29c26b1c7923bd6e464a0d5
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1409611
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2019-08-28 21:38:30 -05:00
huangjq9
862d3dc87e cap-sensor: fix some issues for a96t346.
- change the sensor name to top/bottom_left/bottom_right.
- if the upper layer doesn't disable capsensor, we should let it enter sleep in suspend.
about the average current of abov's a96t346:
active mode:  1.8 mA;
sleep mode:   160 uA;
stop mode:     2 uA;

Change-Id: I4ce68cb428d225a7843424e2a3b11f925392de2e
Signed-off-by: huangjq9 <huangjq9@motorola.com>
Reviewed-on: https://gerrit.mot.com/1411693
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-08-27 21:32:10 -05:00
Konstantin Makariev
83030db619 sec_mmi: product info when stuck in bootloader
Firmware update can go wrong causing touch IC unable to enter Apps
mode. In this case touch IC stuck in Bootloader mode and only
Device ID info in register 0x22 is available. Make driver deriving
value reported in productinfo from Device ID register regardless
what mode touch IC is in. That will help init.mmi.touch.sh to
find matching firmware file and recover touch function.

Change-Id: I4e29bdf86dec0d35990004960ca06d4f6e454528
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1411635
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-08-27 17:58:00 -05:00
Konstantin Makariev
08dbfb3e64 sec_mmi: control reset gpio state
Driver cannot set RST gpio direction and state explicitly in pictrl
config dur to compatibility reason. Thus adding the code setting
RST gpio high every time pin control switches from Off to On state

Change-Id: I4217b7546f48ec20204bf93b12a15baf95905475
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1411555
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-08-27 17:57:56 -05:00
Ravi Vembu
30c1fc9a33 cci_intf: Kbuild: Fix kernel version check
Change-Id: Ifb4abc6b2d1609546ebeef2c7498d5aa22bf5341
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-Fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1411653
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
2019-08-27 16:58:48 -05:00
Ravi Vembu
bf7f61e0de cci_intf: Update driver for 4.19 kernel
Update the cci_intf driver used for sending CCI commands from
the shell to the Linux 4.19 kernel

Change-Id: I5de934badc2ad2b25cb7148e9abbc95492ba48d5
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-Fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1411444
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: <timwang@motorola.com>
Submit-Approved: Jira Key
2019-08-27 14:52:50 -05:00
Jianqiu Huang
70666d5d9b Revert "(CR) cap-sensor: Optimize power consumption issue."
ABOV_CTRL_MODE_RET is defined in abov_sar.h,
and in abov_sar_a96t.h file, the register name has changed to ABOV_CTRL_MODE_REG.

It will cause build error. Now revert it, and resubmit it.

This reverts commit 16143ccfc41d9c80827615fdd060fd6f72a41c82.

Change-Id: I3605f0df5c3d6b3c1e38f01c8111bcd536044948
Reviewed-on: https://gerrit.mot.com/1411231
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-08-27 04:18:50 -05:00
huangjq9
6e404eb973 cap-sensor: Optimize power consumption issue.
about the device of abov's a96t346:
active mode: the average current is 1.8 mA;
sleep mode: the average current is 160 uA;
stop mode: the average current is 2 uA;

if the upper layer doesn't disable capsensor,
we should let it enter sleep in suspend.

Change-Id: I0821280e6f52335badcd7dfc0e2c15a08a1eee0b
Signed-off-by: huangjq9 <huangjq9@motorola.com>
Reviewed-on: https://gerrit.mot.com/1411125
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-08-27 03:41:30 -05:00
haojl2
b38f0056ad himax_v2_mmi: Add wakelock before SPI operation
If palm detect function is enabled, interrupt will not disable,
IC works in normal mode.
But in case touch event is reported to input subsystem, skip touch event
when suspend flag is true. So input subsystem will not take wakelock
because no one report event.
In this case, we still need read data from IC, so AP can not enter
suspend. Add a 10ms wakelock when this function is enabled.
(TP report rate is around 100Hz).

Change-Id: I867a90844edc2d9372bf6b15f776f6b1a66ef51a
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1409612
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2019-08-24 19:49:28 -05:00
haojl2
68dbd702e8 focaltech_0flash_mmi: Add wakelock before SPI operation
If palm detect function is enabled, interrupt will not disable,
IC works in normal mode.
But in case touch event is reported to input subsystem, skip touch event
when suspend flag is true. So input subsystem will not take wakelock
because no one report event.
In this case, we still need read data from IC, so AP can not enter
suspend. Add a 10ms wakelock when this function is enabled.
(TP report rate is around 100Hz).

Change-Id: I381a13fca6dedfcb68e0c3048291610da2554f17
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1409610
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2019-08-24 19:49:11 -05:00
chenlj2
aba32185b9 motorola alkm:solve parameter size error
issue: linux kzalloc min malloc size is 64byte,
as sizeof params error,current code only malloc 64bit,
that means will malloc 64byte when probe exec,
but struct is more than 64byte(72byte),
so kernel panic would be triggerd.

solve: change sizeof params to fix this issue.
hese Sarsensor chips have this issue.
Such as Sx9325,Sx9310,Abov chips.

Change-Id: I4c479c0365b91bf86afc0633ce941948703d6912
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1407942
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2019-08-23 01:55:28 +00:00
haojl2
1a5c660338 himax_v2_mmi: Add wakelock before leave event
TP:
Add a wakelock when leave event reported.
The wakelock timeout time is same as leave report timer.

Change-Id: I0c1b1e5f0e7be588c98fe3f9e37ee1aa64374a9b
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1407159
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
(cherry picked from commit 046c02edca7b8de7dc998743d4c3ba0af474bf17)
Reviewed-on: https://gerrit.mot.com/1407897
Reviewed-by: Jianqi Yang <yangj@motorola.com>
2019-08-22 10:00:14 +00:00
haojl2
3bd6f5e7ad focaltech_0flash_mmi: Add wakelock before leave event
TP:
Add a wakelock when leave event reported.
The wakelock timeout time is same as leave report timer.

Change-Id: Ifd3859eac54758ee3c1463f2e09b7c146d4ee5e3
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1407158
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Submit-Approved: Jira Key
Tested-by: Jira Key
(cherry picked from commit 31dce07c39958c7f4dbca9531766e7dddddee2fe)
Reviewed-on: https://gerrit.mot.com/1407894
Reviewed-by: Jianqi Yang <yangj@motorola.com>
2019-08-22 09:52:24 +00:00
haojl2
1f89e2ea9d focaltech_0flash_mmi: Add delay when palm leave.
TP:
Add 850ms delay when palm release found.

Change-Id: I765b00ac2d698e285832b983ddb3d70ec271f7fc
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1406031
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-08-22 09:39:12 +00:00
haojl2
73db173204 focaltech_0flash_mmi: Do not report points when IC suspend
TP:
Do not report points when IC suspend.

Change-Id: I9950bbc29b09fcc3ca6820cb4293a02bd394c8f1
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1406042
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-08-22 09:39:00 +00:00
haojl2
130f4f86f6 focaltech_0flash_mmi: Add palm detection function
TP:
If palm detection option is enabled
Create a virtual sensor for moto app.


Change-Id: Iad3962083f3a4a3abf89b91082f8513a1c04d6c2
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1405384
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-08-22 09:38:16 +00:00
haojl2
a4e60c194c focaltech_0flash_mmi: Add double tap function
TP:
If double tap option is enabled, create a virtual sensor for moto app.

Change-Id: I7e1f5119a3979419b58775f653622859341975e5
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1401525
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1405303
Reviewed-by: Jianqi Yang <yangj@motorola.com>
2019-08-22 09:38:06 +00:00
haojl2
fa99fed1fe himax_v2_mmi: Add delay when palm leave.
TP:
Add 850ms delay when palm release found.

Change-Id: Ie7bde3057c2655e421d7ea0887d7c00cdcc133c6
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1406178
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-08-22 09:37:56 +00:00
haojl2
2a04696a64 himax_v2_mmi: Add palm detection function
TP:
If palm detection option is enabled
Create a virtual sensor for moto app.

Change-Id: I8065fccc5da638dde3f2ece9c41470d28cc5c7c3
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1405365
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-08-22 09:37:40 +00:00
haojl2
692eebb123 input: ets_fpc_mmi: prevent irq not been processed.
1. Remove irq timer handler which is used by outdated IC.
2. Skip irq close request send from HAL. For now, HAL open and close
irq in very high freq, and at last, irq will be set to open state.
When HW report IRQ, but HAL set irq state to close. This will cause
missing IRQ issue.

Change-Id: I5448ef89cfe988197d4204b17e4764b730ec1ad4
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1407246
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-08-22 07:48:32 +00:00
haojl2
0a20697470 focaltech_0flash_mmi: Fix flash recover issue
TP:
8719 use different boot_state when do recover check

Change-Id: I78d4d9f1a0632c7f5ef29ef4265d5aa00bb7161a
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1407800
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-08-22 07:48:27 +00:00
Konstantin Makariev
b4c2d1596c sec_mmi: enable panel mappings
Both panel suppliers: BOE and CSOT are changing Tx/Rx layout while
switching from EVT to DVT revision of HW. LSI provides no facility
in their firmware to distinguish HW variants. Thus driver will be
matching panel id and version in chosen node with id and version
for EVT provided as a mapping table in LSI device tree.

Change-Id: I265caced054f19ab2f985bf798dd169e09097fa0
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1406669
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-08-21 02:09:03 +00:00
zhouwl
e834c89ab5 ASoC: add tas25xx speaker protection for Rav
Enable CONFIG_TAS25XX_ALGO macro, add TI tas25xx speaker
protection algorithm for Rav.

Change-Id: I9205267a0705dc547c3b6537b139ad8cd8474cd1
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1406322
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-08-20 14:14:44 +00:00
liaohj
65875f2e75 audio:add macro for ti2558 spk protection code
add macro for ti2558 spk protection code
avoid android P projects compile fail.

Change-Id: I637cde4523f9d9d91d0b261cbbd24cec745a3471
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1406276
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-08-20 13:35:37 +00:00
chenlj2
8ad3d7f867 motorola alkm:optimise sx9325 driver
-solve build error according to kernel ver
-optimise sx9325 process

Change-Id: Ic14db2545e67686b974d02a1b9eed20a6dad0380
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1406073
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Nan Wu <wunan3@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2019-08-20 09:46:21 +00:00
liaohj
636b9f2ed8 audio:add ti2558 speaker protection
add ti2558 speaker protection related code.
add ko in kbuild for sofiar

Change-Id: I6c7aa5c53bff4724a4fc3d2a6df07433c7ee71a6
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1405309
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2019-08-20 09:15:49 +00:00
Konstantin Makariev
1e2e9b8b64 sec_mmi: multiple suspend/resume scenarios
Added multiple suspend/resume scenarios to the driver. First option is
to perform HW reset on resume. It implies that touch IC will be put
to sleep mode when suspended. Device tree property sec,reset-on-resume
controls it. Second option is to turn power supplies off when suspended.
Device tree property sec,power-off-suspend controls it. Second option
takes precedence over first one when both enabled in device tree.

Change-Id: I93a99152397ea15f46a01c2f1a0ca8bd68c9f732
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1405038
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-08-17 00:11:11 +00:00
Konstantin Makariev
4833153a23 fixup! (CR) sec_mmi: usb detection support
Adding macro missing in the original commit

Mot-CRs-fixed: (CR)

Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Change-Id: Ib52c7924a80e493f7a3a055a0e28a818e1feec35
Reviewed-on: https://gerrit.mot.com/1405185
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-08-16 22:22:55 +00:00
Konstantin Makariev
147e8b2136 sec_mmi: remove unused features
Clean up some unused macros. Fix charger mode set function

Change-Id: If80fc134db1a2132e30e4b12a1e565fffd0bc197
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1405014
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-08-16 20:35:52 +00:00
Konstantin Makariev
3903271cf3 sec_mmi: usb detection support
Added USB cable detection support to better handle charging noise.
This is optional feature controlled via device tree property
sec,usb-charger-detection. Fixed suspend mode current drain by
using sleep power mode instead LPM.

Change-Id: I53357cd578ec8412006dcf664558776c6cbadb7b
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1403963
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-08-16 20:35:44 +00:00
chenlj2
122e0e1511 motorola alkm:modify irq pin process
-solve that sar sensor of olso-h didn't work
-Compatible with previous projects

Change-Id: I33a2cdd2065205491f78e4f7d111e3bb124fc0af
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1404580
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2019-08-16 08:57:56 +00:00
Ryan Lattrel
337e3fbc91 mmi_info: Update ram info for ddr5
Update ram info to handle ddr5, which uses a new
struct from the bootloader with an extra flag.

Also re-work error handling, previously it was possible
that if a wrong size is returned, the pointer to the
smem struct might not be null and we will still try
to access it, causing a panic. So, do not add the
sysfs entry if it is not correct.

Change-Id: Ib195543175528d0477266281080c4dc4a96abd3c
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1402645
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Dong-Hua Yan <a18317@motorola.com>
Reviewed-by: Curtis Porter <porterc@motorola.com>
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-08-15 21:10:17 +00:00