Commit graph

1,073 commits

Author SHA1 Message Date
weimh1
83241cceff nairobi/sensor: set CONFIG_CAPSENSE_USB_CAL
1.enable usb_cal for nairobi
  2.optimize the script to minimize the length of Kbuild

Change-Id: If417dd38e6b7f95e8a8c25defd8d43c279af8385
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1527449
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-04-07 01:32:20 -05:00
zhongling1
7cb19d1ac8 dlkm: ets_fps: Set up double tap feature
1. Add new macro for double tap if define
2. Disable slide nav
3. Enable swipe nav
4. Set up double tap at HAL

Change-Id: Ibab4d2670980ee76ef03fc82b4c23886cf19a871
Signed-off-by: zhongling1 <zhongling1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1522953
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-04-07 01:18:12 -05:00
dengwei1
33e0f840c1 guam: add touch chipone support
add touch chipone
support
NO_PROP_NEEDED

Change-Id: I9f30cb25d4cd53c1c15c7b499acc65d239d4c64c
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1525843
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-04-01 21:11:57 -05:00
VijayKumar Gn
bcf903f738 Re-Enable DRM Event Notification
Kernle 4.9 doesnt support Panel Notification
Current Touch driver removed DRM Event Notification
Re Enable the support to support legacy upgrade product

Change-Id: Icd74b3554c3075fe44bcdb1ed9244eecc99e3fb6
Signed-off-by: VijayKumar Gn <vijaygn@motorola.com>
Signed-off-by: Ashwin Pathmudi <jfxr63@motorola.com>
Reviewed-on: https://gerrit.mot.com/1523810
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-03-30 19:28:56 -05:00
litong
bc2d1b90b2 Solve the problem of charge mode setting when power off
1. Initialize the value of the charge-mode and refresh-rate when 
the touchscreen resume.


Change-Id: If09a10c6fad241e47b98aea8a5dd75aae78ede11
Reviewed-on: https://gerrit.mot.com/1522920
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-03-27 04:25:56 -05:00
yangjq
fa1bb52314 racer 5G: aw8695: Add new ringtone waveform
Add new waveform binary for new "Zero Hour" default
ringtone

Change-Id: I29e830e97a48160151dc7de908d7fc25fcf896f0
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1522633
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-03-26 23:30:41 -05:00
Weilong Wu
89d457fad9 dlkm: st21nfc: update driver
Check of IRQ signal before i2c reading action.
The feature will avoid reading action at unwanted times.

Change-Id: I93bf13109f58e2e950dcc84781e448581a8ae80d
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1520108
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-03-26 03:27:20 -05:00
xiewen3
326be4e3fc DLKM/sar: Add fw mode detection for A96T346HW.
guam sar bringup:
abov_sar_ptr is null pointer in abov_tk_fw_mode_enter function.

Change-Id: Id336171d17fe1ad5a376fd079f206d688d23afd4
Signed-off-by: xiewen3 <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1521635
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-03-26 01:01:40 -05:00
jixj
176d2f2dc0 mmi_sigprint: add death signal debug feature driver
Move death signal debug feature driver from kernel to DLKM.
Ported from (CR)

Change-Id: Icbab4faaa58710a6f99433db7807cc175e5f38d8
Reviewed-on: https://gerrit.mot.com/1519314
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-03-25 20:54:06 -05:00
Wen Xie
321c070657 DLKM/sar: Add fw mode detection for A96T346HW.
guam sar bringup:
Add fw mode detection for A96T346HW.

Change-Id: I81a0f4802fda3b276b870a3fa758528871d31a4a
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1509854
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-03-25 03:56:55 -05:00
Konstantin Makariev
8454073236 fixup! (CR) sec_mmi: support holding grip detection
Function added in the original commit needs to have a stub when
touchscreen class driver is not used to avoid unknown symbol
DLKM loading error

Mot-CRs-fixed: (CR)

Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Change-Id: I1b9891c24a18ec97ac4b171ecfe928b6e6a608de
Reviewed-on: https://gerrit.mot.com/1520688
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-03-24 14:16:46 -05:00
kumarv
8d4593af7b SDM710: Reduce the spam charger related logs
When charger plugged in or not, Below logs are seen
flooded in the kernel logs accordingly.
One log for every 10 seconds would get printed even when
there is no change in the charger rate state.

Solution:
dump the logs when there is actual change in charger present state
and charge rate.

03-09 08:52:14.869     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:52:35.527     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:52:46.024     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:52:56.460     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:53:05.426     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=None
03-09 08:53:05.532     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=None
03-09 08:53:08.230     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:53:08.578     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:53:09.392     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:53:09.890     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:53:20.267     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:53:30.528     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:53:40.112     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:53:50.360     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal

NO_PROP_NEEDED for bq-shm2018.

SDM710 is under project bq-sh2018. Hence this change propagation not needed for branch bq-shm2018.

Change-Id: I840a8c242c8478fc6221763c67f9246dda607f4e
Signed-off-by: kumarv <kumarv@motorola.com>
Reviewed-on: https://gerrit.mot.com/1514199
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-03-24 01:57:39 -05:00
litong
a99b6a9213 Fixup! Check the value to be written
1. Check if the previous firmware supports this gs-distance feature
2. Solve the problem that buf is not initialized in gs-distance

Change-Id: I114d218bafdd1585251c4788b8b02f8de6d06d6c
Reviewed-on: https://gerrit.mot.com/1520031
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2020-03-24 01:14:33 -05:00
litong
b08bd2b676 Check the value to be written
TP:
If the value need to be written is the same as the previously saved 
value, no longer access I2C and return size directly..



Change-Id: I6a7942e4bba3c1a219d1052a3a0377895da10a40
Reviewed-on: https://gerrit.mot.com/1517835
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-03-23 04:46:20 -05:00
litong
bcabfcd7b2 Add synaptics major and minor
TP:
Add synaptics major and minor events reporting.

Change-Id: Iaff3ee25c7e96d81b5d5694481f55633d6112cdc
Reviewed-on: https://gerrit.mot.com/1501279
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-03-23 04:40:40 -05:00
Konstantin Makariev
32c34e9aff sec_mmi: support holding grip detection
Driver provides access to holding grip info reported by firmware via
sysfs entry. Driver notifies HAL about holding grip info changes.

Change-Id: Ifff66d0a06b904e43dc88432b930e51478c4fa59
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1517457
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-03-20 09:34:30 -05:00
Konstantin Makariev
3e7c7ab6a3 touchscreen_mmi: export class kobject
When driver exports sysfs entries to the class, they are created
under class' kobject. If driver needs to notify HAL about some
changes that happen asynchronously, it needs pointer to kobject
to call sysfs_notify. For that purpose pointer to kobject added
to class imports structure.

Change-Id: I05e72ee3a30cccce089ec571837b25df2fd07346
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1517618
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-03-20 09:33:58 -05:00
Ryan Lattrel
3a6490db06 qpnp-smbcharger-mmi: Fix getting stuck in adaptive mode
If you go into adaptive mode, you cannot get out.  Go to
STEP_NONE and let the state machine sort it out if adaptive
mode is exited.

Change-Id: I9a21f96a92438be1ad909d2a81eca197879c5b34
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1508042
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2020-03-18 17:26:14 -05:00
Ryan Lattrel
48c97a9726 sec_mmi: add grip supp distance register
Add store/show functions to the grip supp distance register
at 0xAC.

Change-Id: I522bc2de32a1dcbe5af1ade338646babaedcd923
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1514568
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-03-18 16:38:21 -05:00
Ryan Lattrel
8816d3dac8 sec_mmi: Fix default prop reset on resume
When the post resume runs it stores the values set in init
if the values were updated when the chip was on instead of the
new values.

Copy the new values to the buffer regardless of the state.

Change-Id: I6ab9bf709746f2ac67eee786c4c5f36e9fcb1b72
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1516061
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-03-18 13:14:37 -05:00
dengwei1
4380bf72fd guam: add touch module support
add touch module
support
NO_PROP_NEEDED: this is for guam

Change-Id: I025ce7955c8ca1f028f0d259c6622db65041d146
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1514875
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-03-18 01:53:18 -05:00
Konstantin Makariev
5323ba6826 fixup! (CR): Solve the problem of I2C error when power off
Fixup for the original change. Resore registers values on resume.

Mot-CRs-fixed: (CR)

Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Change-Id: I40a9b4683e7bd9764fc2f06b341b379faf884729
Reviewed-on: https://gerrit.mot.com/1515374
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-03-17 17:01:41 -05:00
litong
b011085af6 Solve the problem of I2C error when power off
1. In case of touch power off, upper layer access node to set
pill_region and suppression, which generate I2C error.
2. Set power state when power on and power off.

Change-Id: I147c6aacbf215ecba431f9ee15e8a955e346155b
Reviewed-on: https://gerrit.mot.com/1514772
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-03-17 11:13:49 -05:00
chenl18
37b4aa1a48 fps: fixup kernel panic by calling input_free_device
Rmmod goodix_fod_mmi.ko caused kernel panic, 'Kernel panic -
not syncing: refcount_t: underflow; use-after-free.'
Input_unregister_device will internally free the device, so
input_free_device sohuld not be called.

Change-Id: I8b837ded53a734981744ea2310adc67fafe063f0
Signed-off-by: chenl18 <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1513967
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-03-16 04:39:57 -05:00
liaoxl
5459fa2023 FM: support elna module
fix compile faile after kernel upgrade for pinctrl function
not defined errors.

Change-Id: Iac78770789b9646443ced43e97079625fd785b8e
Reviewed-on: https://gerrit.mot.com/1484417
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-03-16 00:35:43 -05:00
wangyq13
0cc57e5d5d input: himax_v2_mmi: change resume timing for hx83102d
HX83102D is a low tier IC, need to create baseline early, so move
resume to early blank, but need to avoid lcd reset conflict, so
add some delay for this.

Change-Id: I3c98e3e41c5a1ee68084b4ffd0e69f76e3b51d8b
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1512722
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-03-13 07:15:51 -05:00
Ryan Lattrel
2856a99e4f sec_mmi: add hold distance register
Add store/show functions to the hold distance register
at 0xAB.

Change-Id: Ic697012de0ec22c4b4ebfbd6c39be159273be858
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1511303
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2020-03-12 01:46:21 -05:00
Weilong Wu
8a49c2bd4f dlkm: aw8695: fix enter standby mode failture
Sometimes we find that the IC can't enter standby mode.
The root casue is that the period between go bit operation
and standby mode operation was less than 2ms.
Add wakelock to avoid this concurrent issue.

Change-Id: I318741acd2e60a019a32da3e91a6b373fe2d3020
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1508966
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-03-10 02:09:12 -05:00
litong20
a1fa86582a Revert:(CR):timeout to wait for wake lock at suspend
TP:
The problem has been fixed in (CR).
This reverts commit e54a92ed077617b745386cee07351c087aac3744.

Change-Id: Iaddf7320f0c9477267c719adb6145e2491f30b2d
Reviewed-on: https://gerrit.mot.com/1507347
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2020-03-05 02:04:43 -06:00
yanyh2
3a181247c4 Support dts property to configure force device on option
Add dts property to configure force_device_on_en_default
so the product can choose this option in dts.
Once this option is set, the TOF device will always be in
on state, the xshut will keep high and avdd will be on all
the time.

Change-Id: I0b74bcafdcb94e5b9356ff94ede4a97c62e57bdc
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1507387
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-03-05 00:40:46 -06:00
Cesar Santos
01ac3daa9f modules: power: Update README document for bq27426 driver
Update bq27426 driver documentation, explaining how to add a battery
profile to a product, as well as the Device Tree parameters.

Additionally, what needs to be done in case it is a Dual Battery-based
product/architecture.

Change-Id: I6ecaf039087a7d83b26abe32c83f4ba96cc248ba
Signed-off-by: Cesar Santos <cmsantos@motorola.com>
Reviewed-on: https://gerrit.mot.com/1494396
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2020-03-04 14:12:41 -06:00
Andrew Abbott
77ce570f4e modules: power: Build with battery profile header files
Add the battery profile header files to makefiles to build with correct
battery profile information

NO_PROP_NEEDED: change only necessary for smith battery. Does not affect
Olson
Change-Id: I73f32af18d91ffa573edb285d850cd3c450e9c7c
Signed-off-by: Andrew Abbott <drewa@motorola.com>
Reviewed-on: https://gerrit.mot.com/1494276
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2020-03-04 14:10:01 -06:00
Andrew Abbott
dfac45c7a0 modules: power: Add battery profile files from TI
Add *.fs files from TI for smith batteries and the *.h files generated
by converting the raw *.fs files using convbqfs.pl
Add *.fs and *h files for defender from defender branch
Separate "raw" and "imported" battery profile files into subdirectories

NO_PROP_NEEDED: change adds battery profiles for defender and smith.
Olson does not use these battery profiles.
Change-Id: Ida5d1a937f8046b4d926d3dd8e851f5a205e0bdf
Signed-off-by: Andrew Abbott <drewa@motorola.com>
Reviewed-on: https://gerrit.mot.com/1493722
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2020-03-04 14:09:57 -06:00
Andy White
22bbf73078 Revert "(CR) aw8697: boost ram loop mode playback"
Using boost mode for long vibrations leads to desense issues.
The long vibration waveform will be modified to increase power
instead.

This reverts commit e5c9b40ce9f6d9abf83dfde7da4adbd0f52664ef.

Change-Id: Idb38ad2fd1f51578ee3c1610ef13c90628b5dbb1
Signed-off-by: Perry White <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1505515
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2020-03-04 14:08:42 -06:00
zhongling1
822b255465 Disable navigation in driver
Since fps slide event is published  in hal,
so, disable egis navigation driver when fps slide nav enable.

Change-Id: I9f8ed0994f0755dea35c83a1780916e3e3206c58
Signed-off-by: zhongling1 <zhongling1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1502311
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianlin Nie <niejl1@motorola.com>
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-03-03 20:21:55 -06:00
Shiyong Li
9db2172413 sec_mmi: timeout to wait for wake lock at suspend
As sec_mmi_pre_suspend() is called in the path of display-off, too long
blocking would possibly cause user space module "Display Controller" to
be out of syncing display power state.

Set a timeout for checking wake lock instead of waiting for forever.

Change-Id: Ie72bda93eaaf66e89ed34d33911ec1fdfea5b0cb
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1506510
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2020-03-03 15:41:21 -06:00
litong
b4a82b4f75 Take a long time to enter pre_suspended
1. Create a separate lock for gesture event reporting to solve the 
problem of blocking pre_suspend and then blocking the next wake-up.
2. According to BSP test, it takes 1500 ms for the touch to receive 
the gesture event and the upper layer to complete the processing.


Change-Id: I93a18399876beba49100b41a0561103b2b9fa86d
Reviewed-on: https://gerrit.mot.com/1505298
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-03-03 01:46:32 -06:00
xuwt2
ea3b1a99b2 modules: power: Add a long heartbeat delay for discharging
when the batttery is discharging, if the hearbeat work schedule time is
too short, and work frequently will lead to power consumption problems.

Change-Id: Id9120295ee1452b14e790d6bc5876fd5fd94c6c2
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1504442
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-03-01 22:22:17 -06:00
wengjun1
1388befd5a dlkm: Nairobi single tap bringup for TDDI
- Add configuration and lib for wakeup gesture.
- Apply for display new interface to implement single tap for TDDI.

Change-Id: I404229ca6268094566076587ee7803759eddedf4
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1503785
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-03-01 19:41:41 -06:00
Cesar Santos
e0bffcc463 modules: power: Add Adaptive Charging feature
This feature allows to put device in Adaptive Charging. It has three modes:
- Auto (charger until upper SoC, and goes to 100% on a predefined time)
- Manual scheduled (same as Auto, but user defines predefined time)
- Manual (user defines upper and lower SoC limits, l(CR) an extended Demo Mode)

This feature is ideal for continuously plugged devices.

Change-Id: Id6fe80d358657c5e0142d8a5cd28b71596510fb3
Reviewed-on: https://gerrit.mot.com/1501961
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-02-28 11:39:28 -06:00
Cesar Santos
18653badcb modules: power: Review SMBMMI log messages
Minor message review (l(CR) changing some to start with uppercase
letters), as well as standardizing to all messages to present
"SMBMMI" text on this driver.

Change-Id: Id05eea39db9853c4d20069e73c393bd921b5c4e4
Signed-off-by: Cesar Santos <cmsantos@motorola.com>
Reviewed-on: https://gerrit.mot.com/1504251
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-02-28 11:27:10 -06:00
Haijian Ma
8b9fb3389b dlkm: support 20W charger
nairobi should support 20w qc3.0 charger (6.6V/3A) and compatible
with 18W and 15W charger.

Change-Id: Ifcffb381a4436e0ec0316c480531540cc0170552
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/1497702
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-02-26 21:13:45 -06:00
zhouwl
2427f2ad26 ASoC: upgrade Aw882xx driver to v0.1.8
This version drvier supports different audio stream use
its own audio effect profile, audio source divides into
music, ring, voice and notification usecase.

usage: tinymix "aw882xx_profile_switch" [usecase]

Change-Id: I85b673be9a683f38d9f84d0a8a6ecefcf534f147
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1502547
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-02-24 04:49:41 -06:00
Ryan Lattrel
3d6bd1a65a qpnp-smbcharger-mmi: Add POWER_SUPPLY_PROP_HOT_TEMP prop
Add POWER_SUPPLY_PROP_HOT_TEMP property, which will be set
to 1 if we are either too hot to charge or in the highest
temp zone.  Otherwise report 0.

Change-Id: I67495fad2da2e30bc99e6ac5629d918d63d917ee
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1499274
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-02-21 15:49:25 -06:00
Ryan Lattrel
38c2b1b771 p938x_charger: Reduce dc current if battery too hot
Reduce the dc current by 100mA if the battery reports
that it has entered a hot temp zone.  Charging is more
efficient if the battery is cool.  Each time the temp zone
is re-entered the current will be reduced. When the temp zone
is exited a timer of 5 minutes will start, and if the high
zone is not entered again the max current will be restored
by triggering dc AICL to rerun.

Change-Id: I5b9ac02410e33a729bcade957d9a5676376a0cb6
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1499273
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-02-21 15:49:24 -06:00
litong
60e7620e60 Modify the output format of the testing node
Modify the output format of the testing node
for synaptics TCMD command execution

Change-Id: I3f6912a129ebc8a827641b34e8839bf72d83fa39
Reviewed-on: https://gerrit.mot.com/1497439
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-02-19 02:35:09 -06:00
litong
1b4657e76a Update synaptics testiong code to V2.1
TP:
Update synaptics testing code

Change-Id: Id8e61b379824d45eb9a42d8e6b27491b23191327
Reviewed-on: https://gerrit.mot.com/1499001
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-02-19 02:27:42 -06:00
chenlj2
a1996d5796 DLKM/sar:modify enable process of abov sar
-there is  a defect when RF location is different
-modify enable process of Sar

Change-Id: Ib018136c6f9ded6f580432d6202f92d6830434c2
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1499395
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
2020-02-18 01:00:05 -06:00
chenlj2
58f3ac5c7a DLKM/sar:optimise driver of Abov 5 channels
log output process
extract name of input and cdev to dts

Change-Id: I554cb2e24be6ea4038d9106e2e7fc85b5b7e24c5
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1498941
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Jiyue Cui <cuijy2@lenovo.com>
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2020-02-17 19:42:02 -06:00
Andy White
afb828d7a6 Racer_turbo: aw8697: Add new entry in ringtone array
Add an entry for the new default ringtone into the RTP
ringtone->waveform map

Change-Id: I1f7faa906ad13b462c5673a88bfbdffe2d50db3c
Signed-off-by: Perry White <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1498409
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-02-14 14:59:47 -06:00