Commit graph

661 commits

Author SHA1 Message Date
Konstantin Makariev
572485df96 synaptics_mmi: remove unnecessary logs
Reduce amount of debug logs printed out from detection work

Change-Id: Ib195680ea65a0cb7c035a99ff32393624de01bb0
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1377866
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-07-02 15:11:55 +00:00
haojl2
84df22401f fpc1020: Add reset function if defined in dts.
If dts defined reset pin, kernel driver reset FPC IC.
If dts not defined this pin, reset function will do nothing.

Change-Id: I59c413c519bd030efa5d3f1ba4a223681db06cdc
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1379449
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Lei Chen <chenl18@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-07-02 12:10:54 +00:00
haojl2
e98ba6016d himax_v2_mmi: Enable TP reset in resume.
TP:
Enable TP reset in resume. This can ensure TP panel working normal.
If panel is 0flash panel, we can decrease delay time

Change-Id: I880a4e82e845c79c37ed5be74d59a9e4d9f5105d
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1380206
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-07-02 12:09:48 +00:00
haojl2
b3e5067a9b himax_v2_mmi: support set touch info in dts.
TP:
Support set touch_info in dts.

Change-Id: I14e0fecff77bd5c17b022823d8ae351f0986ec88
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1380183
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-07-02 12:09:17 +00:00
wangdw10
8740f92e79 input: vl53l0: update TOF driver
- update vl53l0 driver to ver 1.1.23
- remove platform driver and cci depence

Change-Id: Ic71c3e59f2aeb9cb196e998c42824248700dca36
Signed-off-by: wangdw10 <wangdw10@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1374391
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Chuanxin Guo <guocx4@motorola.com>
Reviewed-by: Bolei Shang <shangbl1@lenovo.com>
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-07-02 09:17:09 +00:00
Kenny Kessler
2a00b5a4da power: qpnp-smbcharger-mmi: Disable PM660 JEITA
JEITA Hard Limit is getting in the way of MOTO Charging
Algorithm so disable it l(CR) other products do.  Should be safe
since it is the same changem as other products.

Change-Id: I63c7a2897ab5dbe498fad30def258a9b1d3d6a9f
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1379724
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2019-07-01 20:28:20 +00:00
haojl2
0e4a7efa52 himax_v2_mmi: Fix kernel dump issue when cat debug entry.
TP:
Resove himax crash problem when cat debug.

Change-Id: I5f11b75dad4a6b9022896f886aab04f57e092e40
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1379481
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-07-01 10:35:48 +00:00
haojl2
2bf8b17e78 focaltech_0_flash_mmi: Add fts_reg_raw sys entry
TP:
Add a sys entry that can read raw register value.

Change-Id: I437ada8649e3838e233d40384b68019cecb3600f
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1379281
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-07-01 02:58:30 +00:00
Kenny Kessler
bf7648c4b9 power: max17xx: Force POR in Factory
The SOC can become corrupted on battery insertion so
in the factory mode force a POR so it can be recalculated.

Change-Id: Ie16f1cdcd64bc42dc84d70ead95862d2ca080269
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1376496
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2019-06-27 08:19:17 -05:00
Kenny Kessler
fefaa0821c power: qpnp-smbcharger-mmi: Wait for FG Ready
IF the Max FG report -EAGAIN then it has not completed
the init of the battery profile and values could be
inaccurate.  So stop processing and reschedule heartbeat
if this is seen so a fresh 1st run of data can be taken.

Change-Id: I2070ba9e90338b7eb2ba8eb4f395739170810012
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1376495
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2019-06-27 08:18:53 -05:00
yangjq
27e6137294 aw8695: Set the default gain to 0x80 for aw8695
Set the default gain to 0x80 instead of 0x20 for aw8695, otherwise
the vibrating strength would be weak.

Change-Id: Iaa539ba26a8bbf6aa2a65e4d46496909792b721f
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1375582
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-06-24 07:32:13 -05:00
haojl2
be0e719a6b himax_v2_mmi: Stop probe if get power failed
TP:
If TP power request failed, no need go on probe driver.

Change-Id: I999a3b6a8d2381b1cde17b013050db43bbc2ae2a
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1375139
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-06-24 00:13:27 -05:00
haojl2
8822ea0b48 himax_v2_mmi: SetSPI transfer size to 4096
TP:
To ensure download FW speed. Set spi transfer size to 4096

Change-Id: Id12efa82dcfb8c9c5429b71d4669a15ac191b590
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1374552
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-06-23 23:25:15 -05:00
haojl2
de510fcccc himax_v2_mmi: Set panel info in code.
For 0 flash panel, read IC info when power-on is not stable.
So set those parameters in driver code.

This is a workaround for this issue. Need revert later.

Change-Id: Ie61c2f90ddc5889f814be3d11f98770d073e7Montana
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1375005
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-06-22 08:41:09 -05:00
xuwt2
0199f360d0 haptics: awinic: add haptic context while flat-up
-1, add haptic context whild flat-up reduce the gain of vibration
-2, disable this feature when the bootmode is factory

Change-Id: I75a871cf94af54f375a42be54ddcd1d380972797
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1374681
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-06-21 07:27:30 -05:00
Yonghua Yan
ab148d38d5 power: charger presence bases on usb and pc_port online
Typec mode is not a sufficient condition for USB charger presence
detection, in the cases that typec mode is not source type.
Here takes audio adapter with charger port support for example.

It is reasonable to keep consistent with QC SMB charger driver charger
presence report.

Change-Id: I43b795d142aa75cbdd372b288d64c83b85075f3a
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1371201
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2019-06-21 05:24:53 -05:00
cuijy2
267e494d0f sar:add usb cal for doha
add add usb cal for doha
sx9331 capsense

Change-Id: Ia02f7e8cacd98f8b8a38b21156aea4d8ceadf3c3
Signed-off-by: cuijy2 <cuijy1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1373871
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guoyue Liu <liugy11@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2019-06-20 03:04:23 -05:00
wangdw10
22bbe96e87 doha: add vl53l0 laser driver
Change-Id: I1e8d7e74727ee1a654463440afaa78b10cb75b51
Signed-off-by: wangdw10 <wangdw10@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1371958
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Chuanxin Guo <guocx4@motorola.com>
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2019-06-19 01:15:29 -05:00
haojl2
e409ca8038 focaltech_0flash: share gpio with LCD if defined in dts
TP:
For TDDI IC, TP reset is controled by LCD, LCD request reset gpio.
But focaltech IC still need HW reset in TP driver.
So we can control reset GPIO without request it, this GPIO is shared
with LCD

Change-Id: I65bbdb614ce7d9fd4f510ea4e23690072903bcf7
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1372626
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-06-18 04:32:53 -05:00
haojl2
4e0522f3d0 himax_v2_mmi: Enlarge SPI transfer size.
Enlarge size, use DMA to translate.
This can speed up FW download.

Change-Id: I1aabea23ba8f64c7227d78525720b0e4e180bc12
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1372032
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-06-17 21:30:45 -05:00
haojl2
0f7489aa09 himax_v2_mmi: Clear SRAM after download firmware.
After fw download finished, SRAM data is not stable.
Send command to clear SRAM data after fw download.

Change-Id: I298c070c39cdb3c743a277e2276183b424cc9f94
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1372031
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-06-17 21:30:37 -05:00
Konstantin Makariev
93551370c6 synaptics_mmi: keep only one input
Re-creating input device on firmware upgrade is not necessary and
confuses the InputReader. Regardless whether firmware gets upgraded
or not, driver will keep the same input device (and thus associated
with it /dev/input/eventX file).

Change-Id: Ieafb2cecc934e74323081bfd97c33b990f7dea40
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1372155
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-06-17 16:58:02 -05:00
wengjun1
ed79ab6246 Sofia: Sofiap: Focaltech ft8756 touch bringup
- Initial bringup for ft8756
- Will need to compatible with ft8719

Change-Id: I6b5b2f68f219c44875d820b0450ecb41382f091d
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1370467
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit f8fdcedac1475f932c81ed8894fd4eb827f9649e)
Reviewed-on: https://gerrit.mot.com/1372040
2019-06-17 06:01:24 -05:00
haojl2
f3c7f1769e focaltech_0flash: Release events in suspend
TP:
Release all input event before detachedvice go to suspend.

Change-Id: I0f6513cb5075a7dc5afd9ff3a1e3fd104cebc582
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1371914
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-06-17 01:59:58 -05:00
haojl2
a121ea51c3 defender: TP: Fix 8719 support in driver version to V3.1
TP:
fix FT8917 support in driver version v3.1

Change-Id: I76a05fb43d3f37c92b7a6bf368a3774359d003c5
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1370995
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1371913
2019-06-17 01:59:49 -05:00
haojl2
409f18bb04 defender: TP: Seperate focaltech_flash.c
TP:
Download function for different touch IC is different.
Seperate flash function info common part and IC unique part

Change-Id: I31637e889e2d0cb789d53d21418e1f3a1532ae12
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1369612
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1371168
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-on: https://gerrit.mot.com/1371912
2019-06-17 01:59:38 -05:00
haojl2
fd3d2b00a6 defender: TP: Update driver version to V3.1
TP:
Update driver version to support 8756.

Change-Id: I8dbcae57f1d0b95f7db9cb512d78cd04309182e9
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1369383
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/1371167
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-on: https://gerrit.mot.com/1371911
2019-06-17 01:59:28 -05:00
haojl2
c8155b8f80 focaltech_0_flash_mmi: Add ft8756 support
Add FT8756 IC support for defender
Fix some build warning on Android Q test function.

Change-Id: I6514f149045e605d5fd5d0adde1c22b12f13824d
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1361859
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1369643
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-on: https://gerrit.mot.com/1371910
2019-06-17 01:59:17 -05:00
Yonghua Yan
359208a01a moto_f_usbnet: increase usbnet transport speed
Enlarge USB MTU and tx/rx bulk size to 10 times
of its original size.

The kernel version may not support member max_mtu
in net_device so remove the code to set the max_mtu
to avoid compile issue on some kernel version.

Change-Id: I2756a7153e9211e2560d0efa186466095a17d271
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1371702
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianhong Wang <wangjhn@motorola.com>
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Submit-Approved: Jira Key
2019-06-17 00:17:34 -05:00
Yonghua Yan
133f27fb9f usbnet: fix compile issue caused by Kernel version
The kernel version may not support member max_mtu in net_device
so remove the code to set the max_mtu to avoid compile issue on
some kernel version.

Change-Id: I32f0f80b41f72ae4be2db207d37b5c1d135af9bc
Reviewed-on: https://gerrit.mot.com/1371694
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-06-15 10:02:30 -05:00
Yonghua Yan
8047521635 moto_f_usbnet: increase usbnet transport speed
Enlarge USB MTU and tx/rx bulk size to 10 times
of its original size.

Change-Id: I041ff0ce434fbc49e87352850cff57eb1d94e560
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1371106
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2019-06-15 05:53:58 -05:00
huangys
5fe048dccc ASoC: move cirrus playback driver to QC audio-kernel
This driver is hard to share on all QC platform. But this project
is hoped to common for as most as product. Move it to QC audio kernel.
It's seperated on different QC platform.

Change-Id: I37202e87bf6174be7aa015ae9566d34739ed7d87
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1370172
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2019-06-14 03:27:39 -05:00
haojl2
4d96a0bf80 himax_v2_mmi: Return error code when selftest failed
When selftest failed in some test case.
Return corresponding error number.

Change-Id: I429132e02f49a58b7ff11336ba24e22ae0f5c58c
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1369661
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2019-06-12 06:36:07 -05:00
haojl2
47cc662c86 himax_v2_mmi: Change self_test entry permission
Add write permission for self_test sys entry.
This entry is used by TCMD

Change-Id: I662d949d24918915b56e25fb19bb55f30e05dfd5
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1369369
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2019-06-11 21:29:03 -05:00
haojl2
cf1a1d78e9 himax_v2_mmi: Add touchscreen device class for himax driver
Add touchscreen sys class.
This class contains vendor and IC info.

Change-Id: Ifb671720b26131c5d7b0cf4355597fe8c6b0af32
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1369368
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2019-06-11 21:28:57 -05:00
Yonghua Yan
101f05d8b6 power: read the usbin suspend state from 0x110B
The usbin suspend may be triggered by sw command, AICL or
light flashing.
So it may cause auto power off for factory kill when test
the camera flash LED.

The bit6 of register 0x110B can indicate usbin suspend
state in all above cases.

Change-Id: I91d0412cc7bfcbb64e65711869e519a32740964a
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1368541
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-06-11 04:21:56 -05:00
daiss1
4254d42b21 doha: TP: FocalteckTP Update DAM
FocalteckTP Update DAM
Use drm_notifier_callback

Change-Id: Iafbf80cab6aea4041d0a782cfa4876729a3762a7
Signed-off-by: daiss1 <daiss1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1364929
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/1367088
Reviewed-by: Jianqi Yang <yangj@motorola.com>
2019-06-10 21:31:30 -05:00
haojl2
8a19f9b376 input: ets_fpc_mmi: fix rmmod issue
When rmmod called,
Clear input device regisgered for navigation function.
Remove navigation sys entries.

Change-Id: I4f101c6f08a81f8c53206edfe5883480ed28cc42
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1339672
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1367087
2019-06-10 21:31:18 -05:00
haojl2
a376df2ff9 Fix navigation function build issue
Only enable FPS_NAVI function if CONFIG_INPUT_EGISTEC_FPS_NAVI defined.
if not defined, do not build ets_navi_input.c

Change-Id: Ibd57c719cb33ad7254cb77272e4ac5ee7b8b664a
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1339496
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1367086
2019-06-10 21:31:09 -05:00
haojl2
73e64a0078 Fix wakelock header file issue
<linux/wakelock.h> file is only avaliable if CONFIG_HAS_WAKELOCK is
defined.
If this is not defined, use pm_wakeup_source instead.

Change-Id: I1b70e1420caf1ecfed08016134b6b972ef178663
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1339495
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1367085
2019-06-10 21:30:56 -05:00
haojl2
1f32aed828 himax_v2_mmi: Add support to set csv file name
Add selftest sys entries for TCMD.
TCMD can process selftest and get resule though those entries.

Change-Id: I389601a1a3d3945b0c4b69a75763778b94d0b053
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1366924
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-06-05 22:48:35 -05:00
haojl2
0c22d4ca18 himax_v2_mmi: Fix kernel dump issue.
Fix kernel dump issue after selftest excuted.
Use kzlloc area for DMA translation

Change-Id: Ibe7d32bd924d76481f72cce006f5c6bff5219f93
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1366923
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-06-05 22:48:27 -05:00
haojl2
5b95e58597 himax_v2_mmi: Add edge Inhibition sys entry
Add an sys entry to enable different edge inhibition function.
echo 0,1,2,3 to edge_en.
0 turn_off
1 Vertical inhibition
2 Horizental clockwise inhibition
3 Horizental anticlockwise inhibition

Change-Id: I2f6b0645ecfbe042da537a2fab0f4102278fd5ef
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1366922
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-06-05 22:48:22 -05:00
haojl2
735d3b40a1 himax_v2_mmi: Add DRM notification callback.
Qcom use DRM notification in sm6125 and new platform.
Use config to support both notification callback.

Change-Id: I77b9a72fa67c0f36b9bf9fb61b31a8c44ff11c3c
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1366921
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-06-05 22:48:18 -05:00
haojl2
9b7c8f35b9 himax_v2_mmi: Add himax tp driver code.
Add Himax v2 driver code.
New driver structure for himax IC

Change-Id: Ia15dda49df907958803038c54ba99e314937c682
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1366920
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-06-05 22:48:14 -05:00
haojl2
bb299fa0a5 himax_mmi: Fix wakelock compile issue
Wakelock is not supported by default.
If it is not supported, use wakeup_source instead.

Change-Id: Iae27c6fc6c8f3fd6c0129f0869ae734cec59c067
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1366919
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2019-06-05 22:48:08 -05:00
Kenny Kessler
d69fdb2a67 power: qpnp-smbcharger-mmi: Also Add AICL Rerun to Dual
Dual Battery slgorithm also needs the same AICL rerun.
Otherwise the ICL can drop and stay too low to recharge.

Change-Id: I97236a1342f24c46d14047dd0c1f6cdacd994ddb
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1366736
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2019-06-05 14:38:45 -05:00
Weilong Wu
5ce18e2d3e aw8695: improve vibrator experience
1. Support to vibrate for 1s when boot up.
2. Change f0 calibrate voltage as 1.8v Vrms.

Change-Id: I4f3cbb863d619b6bec343c7db95fc655a8bf06c4
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1351275
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit d0c752bc3b9fdf37c2d86b091b114cbc09f9ad86)
Reviewed-on: https://gerrit.mot.com/1365557
Reviewed-by: Jianqi Yang <yangj@motorola.com>
2019-06-03 21:02:55 -05:00
Weilong Wu
be9b8f9f0c aw8695: make some default change
Change the default value as our requirement:
1.Disable HW trigger by default.
2.Change default activate mode as RAM mode.

Change-Id: I08cd468c282defb14c8ddef09f61aecde364c276
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1339124
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit e937090b6880d02e827386cce95a1a56afb624ad)
Reviewed-on: https://gerrit.mot.com/1365555
Reviewed-by: Jianqi Yang <yangj@motorola.com>
2019-06-03 21:02:51 -05:00
Weilong Wu
798a46b1c7 aw8695: support 205HZ vibrator
aw8695 can support f0 calibration, we need to
add 205HZ configuration to support more vibrator.

Change-Id: I7946bf24794c3b8e74bc909f0a6aebfe2c8454b3
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1333394
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit bd22a3e2235e05bb7434c11686f795bf8b6a8a4f)
Reviewed-on: https://gerrit.mot.com/1365544
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
2019-06-03 20:14:59 -05:00