Commit graph

1,355 commits

Author SHA1 Message Date
kalathik
883a4be12e misc: ets_fps: Replace wakeup_source API with macro
Use common mmi_wake_lock macros instead directly using kernel API,
which is version specific.

Change-Id: I7d5d13f150e8f1474fab980109ee9baaa8baa647
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/1727590
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-08-20 22:33:33 -05:00
kalathik
175215b12c touch: synapticsi_dsx: Fix wakeup_source event API change
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: I6a5e1aa0bd567709d24efc2c08ef3956ac3f18b4
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/1721469
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-08-20 22:32:44 -05:00
kalathik
9fb93a4743 wakeup_source: Choose wakeup_source API based on version
Its required to choose the wakeup source API depends
on Linux kernel version.

Added new mmi_wake_lock.h file to select the API, depends
on kernel version.

Change-Id: I066e679e2f923f47b51b288ca0196e2c8dbd86d2
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/1727382
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-08-20 22:30:37 -05:00
Gilberto Gambugge
c515a56926 aw8624: Fix build error due to wakeup API changes
On latest 4.14 kernel update, wakeup_source_register API has changed.
Handle kernel versions properly.

NO_PROP_NEEDED: <only applies to bo>

Change-Id: I2a32c95ef6194ccba6704e0f90e0a609610fd445
Reviewed-on: https://gerrit.mot.com/1725210
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-08-20 16:43:18 -05:00
Gilberto Gambugge
bffb70175c nt36xxx: Fix build error due to wakeup API changes
On latest 4.14 kernel update, wakeup_source_register API has changed.
Handle kernel versions properly.

NO_PROP_NEEDED: <only applies to bo>

Change-Id: I57a38470f79e29b406ec578b52f624f1bf39beae
Reviewed-on: https://gerrit.mot.com/1725211
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-08-20 16:43:17 -05:00
litong
ace7a4d3d7 Specify the dependency of sec_mmi on touchscreen_mmi
Specify the dependency of sec_mmi.ko on touchscreen_class.ko to ensure
the order of compilation.

Change-Id: I2e2024b5fbedd641192126796e25813c624a9cd1
Reviewed-on: https://gerrit.mot.com/1728238
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2020-08-20 05:32:21 -05:00
litong
a722fdb3f9 Slove the compile error of of_drm_find_panel function
CONFIG_DRM_PANEL -> CONFIG_DRM_PANEL_NOTIFICATIONS
Because CONFIG_PANEL_NOTIFICATIONS is already defined in other project,,
the <drm/drm_panel.h> file is not included, but because DRM_PANEL is
defined by default, the code compilation fails. so Modify the
configuration CONFIG_DRM_PANEL to CONFIG_DRM_PANEL_NOTIFICATIONS.

Change-Id: I2c341a0db33501158d602888c86bdb60127d62d9
Reviewed-on: https://gerrit.mot.com/1728347
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2020-08-20 05:31:20 -05:00
Gilberto Gambugge
7786db3533 himax_v2_mmi: fix build failure
Declare zf_info_arr as a pointer and allocate it.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Build error:
motorola/kernel/modules/drivers/input/touchscreen/himax_v2_mmi/himax_ic_incell_core.c:2910:6: warning: comparison of array 'zf_info_arr' equal to a null pointer is always false [-Wtautological-pointer-compare]
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

NO_PROP_NEEDED: <only applies to bo>

Change-Id: Ibd68878ebab7652f96366e71a0077203ec840e1d
Reviewed-on: https://gerrit.mot.com/1722677
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Tested-by: Jira Key
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
2020-08-20 00:16:17 -05:00
litong
5db8ba69b3 Modify samsung compilation errors for v(CR).
TP:
do_gettimeofday function is not in google whitelist. And all interfaces
returning a 'struct timeval' or 'struct timespec' have been replaced
because the tv_sec member overflows in year 2038 on 32-bit architectures.

Change-Id: I9659d84485f29b47d722bca8c0b3a2fe8d4974d2
Reviewed-on: https://gerrit.mot.com/1718149
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-08-19 21:44:09 -05:00
litong
779f28b622 Temporarily modify the value of device minor
Because the input_get_new_minor and input_free_minor function are not in
google white list, so we can't use these functions in ower driver code.
We have submitted an application to google to add these two functions,
so add the temporary modification just for bring-up.

Change-Id: Id9a83206d775d8d45c5542b61696879de912dc1e
Reviewed-on: https://gerrit.mot.com/1724565
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2020-08-19 21:43:48 -05:00
litong
eb09216ede Add mmi_bl_bootmode function to get boot mode.
In order to reduce the dependence on other modules, mmi_bl_bootmode is
added for touchscreen.

Change-Id: Ic77772fd155baf3b0af234141257e3062597b02e
Reviewed-on: https://gerrit.mot.com/1725851
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-08-19 21:41:31 -05:00
litong
681210f2b8 Add DRM PANEL notifications to touchscreen
TP:
Kernel 5.4 support DRM PANEL notification mechanism to report
blank/unblank event. So add DRM_PANEL notifications to touchscreen
MMI class suspend and resume.

Change-Id: I53861dd33a6a9d3d6a7b3112e667b06c102a2328
Reviewed-on: https://gerrit.mot.com/1708453
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: <litong20@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2020-08-19 21:41:16 -05:00
Gilberto Gambugge
f3325baae2 tas2562: fix build failure
Fixing the misleading indentation build failure

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Build error:
motorola/kernel/modules/sound/soc/codecs/tas2562-regmap.c:658:3: error: misleading indentation; statement is not part of the previous 'else' [-Werror,-Wmisleading-indentation]
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

NO_PROP_NEEDED: <only applies to bo>

Change-Id: Ifde783bd51eba163fe96e181b5a9dca62c0d0ff4
Reviewed-on: https://gerrit.mot.com/1722676
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-08-19 13:55:05 -05:00
wangyq13
853418d845 input: ilitek_0flash_mmi: add usb charger detection
ilitek_0flash_mmi:
Add usb charger detection function.
Enabled by kernel dtsi.
NO_PROP_NEEDED: <New IC for NPI>

Change-Id: I2c8349444032e28badee766236adaefb35f04b85
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1720309
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-08-19 04:34:22 -05:00
litong
fbe4fb48e4 Modify touchscreen class compilation errors on V(CR).
1. TOP -> ANDROID_BUILD_TOP to solve the error that the .h file cannot
be found.
2. touchscreen_class depended on sensors_class module symbol, so it must
define the dependency in makefile.

Change-Id: Ibdc7a761b1cdce2678375719f0fe34748639f8fc
Reviewed-on: https://gerrit.mot.com/1718150
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2020-08-19 02:31:21 -05:00
yanyh2
90049fc45a vl53l5: add stmvl53l5 init and deinit functions
Add init and deinit functions to prepare power and IO pins
for module init and exit.

Change-Id: Iaf8d26409f71998bb52b63873237198adef7a0cb
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1708657
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Submit-Approved: Jira Key
2020-08-18 07:30:57 -05:00
yanyh2
7f7b934af4 vl53l5: initial version of vl53l5 sensor driver
Porting vl53l5 tof sensor driver to Moto platforms
from vendor st.

Change-Id: I57da832527369802d8f05d6e695ef31ef4e81ee6
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1694821
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-08-18 07:29:46 -05:00
yanyh2
ec1e89f49d usbnet: fix GKI compliance issue on sock access
The API inet_ioctl() is not allowed to be used
in Android R for GKI compliance.
There should use sock_create_kern() instead
of dummy socket.

Change-Id: I37515cf8eece5be12a8cc2b91081f53bef5cd3ae
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1715791
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-08-18 04:14:31 -05:00
daiss1
4889cd93b0 dubai: bring up goodix fingerprint for android R
Modify:
bring up goodix fingerprint for android R
mq@@r-shm2018.xml *NOT* needed on the branch(es) above just ignore R2D2.

Change-Id: I4e488dc03830f8dc00eac9b9e9cd745680db28fc
Signed-off-by: daiss1 <daiss1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1724630
Tested-by: Jira Key
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2020-08-17 21:40:12 -05:00
dengwei1
c8d928e984 guam: input add touch ili9882n factory support
input add touch ili9882n
factory support
NO_PROP_NEEDED

Change-Id: Icaa26768e3ca53d726855b97f2a689e8f2f10fde
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1722559
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-08-14 07:43:42 -05:00
dengwei1
6d473cd9b0 guam: input add touch ili9882n support
input touch ili9882n
support
NO_PROP_NEEDED

Change-Id: I121bebedd5ecc10ea517b8ac6b2282214e36a291
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1722171
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-08-14 04:03:23 -05:00
chenlj2
fdf039ac31 DLKM/Sar:remove CONFIG_CAPSENSE_CONTROL_VDD for borneo NA
-revert https://gerrit.mot.com/#/c/1718145/
-the power supply of Sar sensor need to be always on

Change-Id: I3106922212b0286146b7119f23b4b4c95b7ec62a
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1720921
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guoyue Liu <liugy11@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2020-08-13 00:52:27 -05:00
chenlj2
6cb005d0f4 DLKM:modify capsensor_enable_flag_t enum for abov
abov chip works abmormal in Qsensortest APK
branch:bo

Change-Id: I66a1bdef56162c46e4c5fa094394e15cd4f88d47
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1718306
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2020-08-12 03:06:12 -05:00
huangys
3206acefcc aw869xx: Fix build issue on V(CR)
- mask unused pm_ops to fix warning error
- add function do_gettimeofday which was removed in kernel 5.4

Change-Id: I33aae44467bc306fc2eed827e518d12c6ad0bad9
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1719561
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-08-11 21:35:17 -05:00
huangys
54a7b0f3cf aw869xx: Add awinic 869xx haptic driver
Coparing with the last generation product, It add I2S interface
to support realtime stream vibration. It includes a sound component
driver for audio system.

Change-Id: I567dafd1ceedeecacd5e23a935c18a9bcf01920e
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1719560
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-08-11 21:34:38 -05:00
liuwang2
052253ef4b regulator: modify slg5bm43670 driver to support kernel 5.4
There are some changes in linux kernel 5.4:
- struct regulator_config lack of ena_gpio member, now should use ena_gpiod.
- struct regulator_dev's member mutex, its type changed from struct mutex to
  struct ww_mutex, so should use regulator_lock() rather than mutex_lock().
- rdev_get_id does not allow to use, remove it.

Change-Id: I10fdf7de2e5e9fe4d64177b120bea4be0bd109de
Signed-off-by: liuwang2 <liuwang2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1679026
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-08-11 20:39:36 -05:00
Yan Zhang
94bc6e4086 : fir: update for coefficient read
1. update for coefficient read.
2. add the emissivity calculation equation.
Change-Id: I87ee50484ca72830d150632b605f2c228671ce7c
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/1710799
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-08-11 00:57:18 -05:00
liuwang2
19985adeb3 cci: modify cci_intf driver to support kernel 5.4
[detail]
add kernel 5.4 path in Kbuild.

Change-Id: I16a01fee110770040e442031a0995ccfbae56fe7
Signed-off-by: liuwang2 <liuwang2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1679108
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Shanghui Zhang <zhangsh@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-08-10 21:27:40 -05:00
chenlj2
6bcd3fe49e DLKM:control VDD off when sar sensor is off
It's used to save power.
It's only used on Borneo NA

Change-Id: I2aa60149f0a362dc29fc0eded5c509a9fd4ddc7c
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1718145
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Guoyue Liu <liugy11@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2020-08-10 02:26:39 -05:00
litong
cda4965add Modify the compilation error of ST touchscreen on V(CR)
TP:
Modify the compilation error of ST touchscreen on V(CR)

Change-Id: I3be9bad60a8dc59aedfcb4fe944260da43220864
Reviewed-on: https://gerrit.mot.com/1715761
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-08-09 20:33:38 -05:00
dengwei1
25d81de375 guamna: input touch himax runin debug
input touch himax
runin debug
NO_PROP_NEEDED

Change-Id: Ibf2f496b845b58f447e495ff45e7d18fee0a0437
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1717090
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2020-08-07 05:01:51 -05:00
Konstantin Makariev
263d69391c aw8697: play weak haptic on implicit setup
Vibration request (RTP excluded) comes in forms of duration or waveform
ID. Adding code to invalidate duration after playing haptic to
distinguish the case when duration has not been explicitly set. This
allows to play preset wave form (e.g. weark short haptic) in case when
vibration request is missing waveform ID or duration info.

Change-Id: I5bc548ff5a50c81ab3302976a9eb1f11028fa41b
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1707674
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2020-08-05 12:31:16 -05:00
Konstantin Makariev
34aa364e6c aw8697: improve latency
When updating register value by mask, avoid write transfer when old
and ne values are identical.

Change-Id: Ie9a1a51684b106ee05b893805d2a3a468aa1b812
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1701667
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2020-08-05 12:30:44 -05:00
Konstantin Makariev
baebf33071 synaptics_mmi_class: remove handler fix
External function insertion can be delayed due to ongoing firmware
update. However, detection work will still run remove handler if
function needs to be re-inserted. Check handle for NULL in remove
handler to avoid kernel panic.

Change-Id: I87282155d375548b140b8086cee59dde9a552884
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1714293
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2020-08-05 12:30:36 -05:00
Konstantin Makariev
9d501e96ea fts: support touchscreen class
Make initial driver's code buildable in MMI products. Added initial
support for touchscreen class.

Change-Id: Iabe4b047b8fbe7f1d1c4f0991ff9b261e4dbf673
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1682834
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2020-08-05 09:11:49 -05:00
liugy11
d9b9cd7244 Sx933x:use ANDROID_BUILD_TOP in Kbuild
fix the compile error during GKI kernel 5.4
can not find base.h

Change-Id: I4b01d7dd958b67c0e291d7e36eeedaedc7f19c7b
Signed-off-by: liugy11 <liugy11@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1714836
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2020-08-05 05:04:11 -05:00
xizx
0a83041298 utags.ko: force this module unloadable
Because the proc entry tree of utags cannnot be removed when
the module is unloaded, and there is no whitelist ABI to unload
all utags tree, so make this module unloadable when probe success.

Change-Id: I4c49c733419521aa7f871a971701c06e7c5c048e
Reviewed-on: https://gerrit.mot.com/1708415
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-08-03 20:29:31 -05:00
Raja Phani K
72fd26a744 Revert "(CR): qpnp-smbchrgr-mmi: Optimize charger current over Temp"
This reverts commit 8ccd0ad9716abe8c567fd05700e3936ab1f8f5fc.

Revert Type : Compile
Reverted by : ECSCM (a16821)
Root Cause : To resolve compilation issue by this fix.

Change-Id: Ia7c30d3e164735744d8e8e834db919ecf4936c29
Reviewed-on: https://gerrit.mot.com/1711831
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Raja Phani K <a16821@motorola.com>
Submit-Approved: Raja Phani K <a16821@motorola.com>
Tested-by: Raja Phani K <a16821@motorola.com>
2020-08-02 23:43:53 -05:00
Drew Abbott
5bc9693efa fg: Add Golden Profiles v4
dm_ver = 4 profiles with changed properties:
- Dsg Current Threshold 40mA -> 80mA
- Chg Current Threshold 60mA -> 125mA
- Quit Current 25mA -> 50mA
- Taper Rate 25mA -> 100mA

Add chemid 2766 and 2767 into each profile and committed the raw chemid
files for archival
Add cc_gain to the Golden Profiles and removed the temporary function
Add external thermistor as temperature source to Golden Profile

NO_PROP_NEEDED specific to smith fuel gauges

Change-Id: I4b4a8f1b0ef1b25ea6662caf2fe1c654955a5cbf
Signed-off-by: Drew Abbott <drewa@motorola.com>
Reviewed-on: https://gerrit.mot.com/1710233
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-31 20:27:53 -05:00
Bernie Moreno-BERNIEM
24869da37b qpnp-smbchrgr-mmi: Optimize charger current over Temp
Charger is over current at start of charge and between Temp and State
changes. Detect early overcurrent and scale down target threshold to
maintain currents within battery spec limits.

NO_PROP_NEEDED: Applies to smith and Olson dual battery archs.

Change-Id: Id2071f4a9f55066a0e6bdb42f51a051023731540
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1711305
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-31 20:25:13 -05:00
wangyq13
e53ef34098 DLKM: himax_v2_mmi: fix compile error
himax_v2_mmi:
Fix compile error when change AndroidKernelModule.mk.
(https://gerrit.mot.com/#/c/1706097/)
Following warnings as errors:
[-Wunused-const-variable]
[-Wpointer-bool-conversion]
[-Wformat-security]

NO_PROP_NEEDED: <fix compile error for new change>

Change-Id: I051335ac9fc4dcaa8ae3ea7f6f51965bd794ee5c
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1709606
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Submit-Approved: Jira Key
2020-07-31 01:38:12 -05:00
xizx
9ec97ffd6f AndroidKernelModule.mk: use Qcom dlkm file for GKI products
In order to keep compatability with current Moto products, GKI products
should use qcom dlkm files for GKI compile.

Including original qcom dlkm file will also easily sync with Qcom's changes.

Change-Id: I2373003e8149a2cfb9a2fbb4bf4784297d30d7e1
Reviewed-on: https://gerrit.mot.com/1709604
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2020-07-30 20:32:40 -05:00
Konstantin Makariev
ebf8bf9d1c sec_mmi: add clip area
Mechanicals shortcomings require touch events from the bottom of the
screen to be suppressed to avoid unwanted side effects. Adding clip
area option controlled via device tree to support this.

Change-Id: I744197e8db6f595ea77e482f53f29e48e0497e2d
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1707675
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
2020-07-30 14:40:48 -05:00
dengwei1
9ab23c6239 guamna: input fix touch himax allocate memory
input fix touch himax
allocate memory
NO_PROP_NEEDED

Change-Id: I0dff94fbf7107ca8b538fa5b2ca94a48b71d0784
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1709569
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-07-30 04:40:06 -05:00
xizx
cf7a662832 Revert "(CR): AndroidKernelModule.mk: sync the file with qcom dlkm"
This reverts commit f7086a2737502e42fa690fb7bf6b1685816cdeb7.

The previous commit will cause doha, rav, buron-r jenkins job failure, because
some drivers have many warning as error. so revert the new patch

Change-Id: Iec55a038cdf8a844f023128fc84294d05e64e861
Reviewed-on: https://gerrit.mot.com/1709428
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Raja Phani K <a16821@motorola.com>
Submit-Approved: Raja Phani K <a16821@motorola.com>
2020-07-30 00:30:28 -05:00
xizx
af6219d26e AndroidKernelModule.mk: sync the file with qcom dlkm
fix the compile error during GKI kernel 5.4:
FAILED: ninja: 'out/target/product/jordan/dlkm/lib/modules/gki/utags.ko', needed by 'out/target/product/jordan/vendor/lib/modules/5.4-gki/utags.ko', missing and no known rule to make it

When build user variant, Qcom will build all kernel and modules with both
GKI and QGKI kernel configs, so Moto kernel modules should use the qcom's
latest dlkm's AndroidKernelModule.mk

Change-Id: Id7ca3976e1084474c801822cac07057c4466ba9c
Reviewed-on: https://gerrit.mot.com/1706097
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-07-29 20:48:55 -05:00
Rafael Ortolan
edd16e2517 power: Fix build error due to wakeup API changes
On latest 4.14 kernel update, wakeup_source_register API has changed.
Handle kernel versions properly.

NO_PROP_NEEDED: <only applies to bo>

Change-Id: I9e0bef689106e0707afc8265ef0332719347991f
Reviewed-on: https://gerrit.mot.com/1709017
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-29 16:03:01 -05:00
Rafael Ortolan
2eb5d0bf34 aw8695: Fix build error due to wakeup API changes
On latest 4.14 kernel update, wakeup_source_register API has changed.
Handle kernel versions properly.

NO_PROP_NEEDED: <only applies to bo>

Change-Id: I2495957dd4cfec0313252af52ad5c50d8f6d1741
Reviewed-on: https://gerrit.mot.com/1709016
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-29 16:02:47 -05:00
Rafael Ortolan
5231c892e4 ets_fps: Fix build error due to wakeup API changes
On latest 4.14 kernel update, wakeup_source_register API has changed.
Handle kernel versions properly.

NO_PROP_NEEDED: <only applies to bo>

Change-Id: I335af2e4849c1969eb2d365d4ef6bc4fc098a362
Reviewed-on: https://gerrit.mot.com/1709015
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-29 16:02:29 -05:00
Rafael Ortolan
bebea1711f focaltech_0_flash: Fix build error due to wakeup API changes
On latest 4.14 kernel update, wakeup_source_register API has changed.
Handle kernel version properly.

NO_PROP_NEEDED: <only applies to bo>

Change-Id: Id89adc61f1e0ee00375dab812c636f02a2c06840
Reviewed-on: https://gerrit.mot.com/1709014
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-29 16:02:19 -05:00