Commit graph

1,355 commits

Author SHA1 Message Date
yangjq
242ee480c8 aw869x: Support different rtp files playing
Play different rtp files for different ringtone music.

Change-Id: Id3bf01b057fc404183351e6a1cb646675d023436
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1241110
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Master Yoda
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-09-12 08:21:32 -05:00
huangys
9830e98ff4 cs35l41: workaround for fixing speaker low volume issue
- once cirrus new 96k firmware is ready, revert this
- not sending mailbox command to firmware, instead of mute/unmute command

Mot-CRs-fixed: (CR) (CR)

Change-Id: I22b6d368499edd99da5238f0e7393eb8d5c79fcc
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1241093
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-09-12 07:20:54 -05:00
wunan3
86c7f835b1 sx9311/sx9325: New log structure for SAR sensor
Make the log info can be configable and printf the info which vendor needed

Change-Id: I1df779d7bd2092c441644fc868ceb7bc0e67dd60
Signed-off-by: wunan3 <wunan3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1241013
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2018-09-12 05:03:21 -05:00
Kenny Kessler
9ca6564ee7 input: misc: Add qpnp-power-on-mmi
MMI version of qpnp-power-on that uses KPDPWR Bark.

Works with qpnp-power-on so there is no need to disable
its config in the base kernel.

Change-Id: Ied2d04db1ec1687a5cf37be7ef908ad1382d14d9
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1240652
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dong-Hua Yan <a18317@motorola.com>
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-09-11 12:08:37 -05:00
xizx
08fe691b6a utags:change the proc utag dir node permission
dac avc error on "echo 1 > proc/hw/reload" in the init.oem.hw.sh
audit: type=1400 audit(3738101.426:12): avc:  denied  { dac_override } for  pid=495 comm="init.oem.hw.sh" uid=0 capability=1  scontext=u:r:init_hw:s0 tcontext=u:r:init_hw:s0 tclass=capability permissive=0

dac avc error on "echo 1 > proc/config/.reboot/ascii" in the init.oem.hw.sh
[   13.771240] init.oem.hw.sh: reset reboot counter
[   13.775002] type=1400 audit(1536562770.017:341): avc: denied { dac_override } for pid=1140 comm="init.oem.hw.sh" uid=0 capability=1 scontext=u:r:init_hw:s0 tcontext=u:r:init_hw:s0 tclass=capability permissive=0

Change-Id: I9392366183b32b260f0792ab3e7293ca55f9bcc1
Signed-off-by: xizx <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/1239642
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-10 17:18:12 -05:00
Konstantin Makariev
4a8d7928a8 synaptics_mmi: panel API with probe status
Change-Id: I94c7cbc0de9f7c3d1bdbd4f82e873c29345b366d
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1239579
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-07 18:03:16 -05:00
Konstantin Makariev
ae1c786b2e raydium_mmi: support DRM signaling
This change adds support for DRM signaling of touch IC probe and
suspend/resume

Change-Id: I8a237216c492ed79b259314b064f9bb4281272e1
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1239530
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-07 18:03:08 -05:00
xuwt2
5fae1f06aa power: adjust 27w charge policy, optimize charge performance
-1, For the float voltage, add compensation voltage.
-2, add compensation current during the supper charging step.

Change-Id: I78079231e0b9fcb3079de2cc39406eb22ff8e2ce
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1239054
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-09-07 02:17:41 -05:00
Dharmeshkumar Patel
a840de95fa Restore "(CR): mmi_muc_uart: set gpio 35 and 59" This is to fix issue caused in daily #47"
This reverts commit c2c9659e5ff889f5a390fae5b0fdd6b4683336db.

Change-Id: I9f43e2c4f172dc3c2af8bf3e02326b53dcd2f455
Reviewed-on: https://gerrit.mot.com/1239005
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2018-09-07 00:16:43 -05:00
Konstantin Makariev
7f8309a7f2 synaptics_mmi: use panel enable API
DRM not sending unblank notification when splash screen enabled.
This commit makes delays IC init until panel status reported as
enabled. This behavior is controlled by device tree option
synaptics,splash-screen-mode

Change-Id: I70dc846ee2914fdb592feddf27c3ad313f2955aa
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1229386
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:38:26 -05:00
Konstantin Makariev
9278264b01 raydium_mmi: make module successfully loadable
This commit makes necessary changes to allow successfully
insmod/rmmod raydium_mmi DLKM. Includes support for in-cell mode

Change-Id: I2e34c4dd87f38975b999e0cc65287b57270f1b5f
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1232896
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:38:21 -05:00
Vlad Karpovich
672d95c8cf ASoC: cs35l41: Change master clock rate if using SCLK
This is a port of following cs35l36 change:
From: Paul Handrigan <Paul.Handrigan@cirrus.com>
Date: Mon, 12 Feb 2018 13:51:32 -0600
Subject: [PATCH] ASoC: cs35l36: Change master clock rate if using SCLK
If the device is using SCLK for the master clock, it is
possible for the SCLK rate to change if the master changes
the format, sample rate, and number of channels. This patch
will calculate the from those parameters if using SCLK.

Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: I6815a075884ded0ebd352fed14259b575ade51ef
Signed-off-by: Vlad Karpovich <Vlad.Karpovich@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1220283
Tested-by: Jira Key
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:35:12 -05:00
Paul Handrigan
f432b989c4 ASoC: cs35l41: Add boost converter control
Add boost converter control to either enable it or
set it in bypass mode.

Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: I3736b1d68bdd21421e23f6a790f0eeae99f2e3c7
Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1238851
Tested-by: Jira Key
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:35:10 -05:00
Paul Handrigan
da0b8a2915 ASoC: cs35l41: Change OTP trim registers to volatile
Change the OTP trim registers to volatile so they the
driver will always read the registers from the device.

Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: If7eae9910483ac95030ddd98ceb35423c8babfaf
Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1238850
Tested-by: Jira Key
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:35:07 -05:00
Paul Handrigan
023a74d64a ASoC: cs35l41: Change devid register to be volatile
Change the devid register to be volatile since cannot be
read from cache.

Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: Id8c15245ef71df4f0e12afd9997babe92813aa1a
Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1238849
Tested-by: Jira Key
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:35:04 -05:00
Adam Brickman
cd72ed7a2a ASoC: cs35l41: Rev B0 register defaults
* Fix register defaults that changed with chip revision B0.

* regmap_register_patch() has a bug which will cause register writes
to be delivered to the chip, but NOT the regcache. This can cause the
regcache to become out of sync with the actual state of the registers.
Changed the usage of this function to regmap_multi_reg_write() to
avoid this problem.

SQA-860

Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: I512cffd656fdf942b7fcafc2a0473a7449cf2547
Signed-off-by: Adam Brickman <Adam.Brickman@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1238848
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
SLTApproved: Slta Waiver
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:35:01 -05:00
Li Xu
5ec000c5dc ASoC: cs35l41: Implement support for dynamic DMA
Implement support for dynamically allocating DMA buffer
in CSPL firmware for firmware.

SQA-1029

Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: I0ff90e85e96ff5029e276f00e82f0503913fb9f1
Signed-off-by: Li Xu <li.xu@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1238847
Tested-by: Jira Key
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:34:58 -05:00
Li Xu
0c614b6196 ASoC: cs35l41: Remove CSPL_COMMAND from header file
Remove CSPL_COMMAND from header file,
because CSPL_COMMAND should not be called from driver.

SQA-1029

Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: I5e2d386aac05cd6a3765c3849239513306a6d9a9
Signed-off-by: Li Xu <li.xu@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1238846
Tested-by: Jira Key
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:34:55 -05:00
Li Xu
1c0a68cd89 ASoC: cs35l41: Implemented managed low-power transition
Implemented managed low-power transition
to nicely change firmware state when powering down and up.

More details at:

https://docs.cirrus.com/display/PRNC/Managed+transition+to+low+power+mode

SQA-1029

Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: I84ed2e788abac6c2e3ffb676ac7194abb4693fc5
Signed-off-by: Li Xu <li.xu@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1238845
Tested-by: Jira Key
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:34:52 -05:00
Li Xu
225c258621 ASoC: cs35l41: Remove useless register write
Remove useless register write.
The register writes are ignored by firmware.

SQA-1029

Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: I9c18c3ec095140d3ec3c4535fc83c982f5f5d5c4
Signed-off-by: Li Xu <li.xu@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1238844
Tested-by: Jira Key
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:34:48 -05:00
vkarp
ea40ea0ace Revert "ASoC: cs35l41: Specify CSPL_CMD address"
This reverts commit dedc905d09d87794b2d5040e1ae8c82f75e1ab9b.
Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: Ia7a8ae1bd6d8dfc483ecbc19ed0e984c515fb7f9
Reviewed-on: https://gerrit.mot.com/1238843
Tested-by: Jira Key
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:34:44 -05:00
Kaio Karam Galvao
c4b60083bd Add CCI debug tool as DLKM
Port CCI debug tool code to a dynamic loadable
kernel module.

Change-Id: Ia77903c637456322a7f9531b05d93c47ab3a16a8
Reviewed-on: https://gerrit.mot.com/1236349
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Reviewed-by: Sumit Jamadar <xkbr38@motorola.com>
Submit-Approved: Jira Key
2018-09-06 11:39:14 -05:00
Dharmeshkumar Patel
ccde239e71 Revert "(CR): mmi_muc_uart: set gpio 35 and 59"
This is to fix issue caused in daily #47

This reverts commit cdd5543e7c24f7240aac278aad549789843eab44.

Change-Id: I3d35a3d8a2b1e909bd83128280d02180eb91390f
Reviewed-on: https://gerrit.mot.com/1238352
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Sanjay Dhar <sanjaydhar@motorola.com>
SME-Granted: Sanjay Dhar <sanjaydhar@motorola.com>
Submit-Approved: Sanjay Dhar <sanjaydhar@motorola.com>
2018-09-05 20:17:02 -05:00
Pratik Kamdar
1f5630eba7 ASoC: wm_adsp: Add support for old DTS config
Use old device tree configuration for DSP if wlf,wmfw-file tag
is present.

Change-Id: I1168edd2ea66eadcdef013fb01b40810bb1860fa
Signed-off-by: Prat(CR) Kamdar <djc637@motorola.com>
Reviewed-on: https://gerrit.mot.com/1238183
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-05 12:34:11 -05:00
wengjun1
afe045cddc DLKM: Improve focaltech touch driver
- Prevent potential risk that the touch has been updated
successful but display initial code isn't written fully which
will cause display can't work on ft8006u.

Change-Id: I0dd8232a79fb1ced88deb748f656a195d97908ac
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1232123
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
2018-09-05 03:18:17 -05:00
liugy11
3c0d28d4cf capsensor sx9331: add suspend irq shielding
Change-Id: I24f762b45b5b792c659b167fd311e957258a8a03
Signed-off-by: liugy11 <liugy11@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1237354
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jiyue Cui <cuijy2@lenovo.com>
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2018-09-05 00:58:19 -05:00
yangjq
8c77f5b3ff aw869x: Disable rtp data changing with battery voltage
RTP data would overflow when being changed according to battery voltage,
so disable this feature.

Change-Id: I457b9ae0b25fa99acc1b2ba05c675d68167d5afb
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1237566
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-04 19:19:03 -05:00
Ryan Lattrel
534b70fd13 mmi_muc_uart: set gpio 35 and 59
Set gpio 35 and 59 to indicate kernel entry
to the muc.

Change-Id: I6c2c2999ff4cedb75191d2a2d1d0b0aa49348449
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1235964
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2018-09-04 09:42:36 -05:00
wengjun1
fbf658b188 Ocean: DLKM: Improve ili9881h touch driver
- Add retry times for unexpected communication errors.
- Change suspend & resume flow for current drain issue.
- Fixed the communication errors when accessing node.

Change-Id: I61db5696637082dd6d576b486b45172c5426a256
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1236756
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2018-09-03 06:08:53 -05:00
haojl2
d28d818543 himax_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: Id7023e8952ee7df46b5b77ad564be51dc9e74511
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1235525
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-09-03 04:35:48 -05:00
xizx
560dffb172 utags:sync same owner permission for group
utags needs to be read-write in tcmd daemon whose group id is
system,many operation need group write permission l(CR) root user.

1.tcmd needs to add new node by lock and new operation
2.tcmd needs to access node /proc/config/all/new etc

Change-Id: I6ba335a9490e5cba8ead04a8144b9bdbca8ebba2
Signed-off-by: xizx <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/1236562
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Tao Sun <suntao2@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2018-09-03 01:58:31 -05:00
Yoon (Seungyoon) Lee
56920f6b13 modules: cspl: use QDSP/LPASS multiple tuning tables
make QDSP/LPASS multi tuning tables accessible since LPASS module is
ready for multiple internal tuning tables.

Change-Id: Ic611edb33746b21d316761b30d5b032cc9631fee
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1235228
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2018-08-31 20:26:19 -05:00
Kenny Kessler
0cdf7d66c4 power: qpnp-smbcharger-mmi: Add UPDATE_NOW
Add the update_now property so that batt_health can
read and get its polling rate for generic logging.

Change-Id: Ie415fe244d214d09fefedd298b899da0a753ad12
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1234254
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-08-30 16:14:08 -05:00
Kenny Kessler
8d1389d574 mmi_muc_uart: Report Charging
Check the status field on the battery power supply
and then report if charging is occurring.

Change-Id: Iae8a8270264a2ca7d18ea125f95be56c53042554
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1235231
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-08-30 08:52:54 -05:00
xizx
8cbbe2f26d utags:assign access permissions for tcmd
tcmd daemon needs to read and write some node with
system group permission:
1. read reload status
2. write ascii node

subtask:(CR)

Change-Id: Ie6740e1aab5292fe6984f7f12656aeac6d70cde4
Signed-off-by: xizx <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/1235016
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haichao Li <liuhc3@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-08-30 04:54:29 -05:00
haojl2
e1dcbeffdf himax_mmi: suspend IC when EARLY_EVENT_BLANK triggered
LCD driver will turn off VDD power after EARLY_EVENT_BLANK event sent.
So TP driver need suspend IC when got this event.
Otherwise, I2C transfer timeout will happen.

Change-Id: I181377fc88a00ffed2e7fefd305ff2e2e4e04ade
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1223414
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-08-30 01:34:47 -05:00
Wen Xie
ffc0a5711c sx9325: When system suspend,disable hardware irq scan.
- the current driver only disable system irq,
  and not disable hardware irq,maybe cause irq imbalances;
- update reset method.

Change-Id: I14bea213005916ae858f492f6893a08c2d821fd3
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1233351
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Nan Wu <wunan3@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2018-08-29 03:08:45 -05:00
xizx
ccbbd6e0d0 mmi_info:print the boot sequence when system boot
Change-Id: Ida8a1e4d5b89a4056b094a25896ca112d7d71781
Signed-off-by: xizx <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/1234151
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2018-08-28 22:33:47 -05:00
Kaio Karam Galvao
07978a2509 Update VL53L1 ToF makefiles
Adjust VL53L1 ToF driver makefiles to build
as a loadable kernel module.

Change-Id: If9e414e4a9c9e17dee6ebf5c31532aac0cbadb26
Reviewed-on: https://gerrit.mot.com/1233053
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Sumit Jamadar <xkbr38@motorola.com>
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
2018-08-28 16:05:40 -05:00
Kaio Karam Galvao
3ce14a4680 Apply mot changes
Mot changes ported from 8998 Android O:
(CR): 8998: ToF sensor VL53L1 bring up
(CR): change netlink protocol ID
(CR): moto change for TOF_INT
(CR): update pinctl and regulator for power
(CR): 8998: To make laser sensor work on Nash DVT1B
(CR): moto changes on 7.2.1
(CR): implement sar function
(CR): turn off l22 when sensor is off
(CR): Apply moto changes based on new ST driver 8.0.0_b4.1.0_1268
(CR): adjust xtalk value per ST's request
(CR): fix laser autonomous mode issue
KSWN-43010: fix black target at 0mm range issue
(CR): [CTS] Nash ATT: 4 failures on Module CtsSensorTestCases
(CR): unlock ipp_mutex in ipp_in_process to avoid deadlock.
(CR): Set timing budget for SAR mode
(CR): Add default calibration

Change-Id: Ieebb105bf64706d3ef6df9141a0ba8d1989290ac
Reviewed-on: https://gerrit.mot.com/1233052
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Sumit Jamadar <xkbr38@motorola.com>
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
2018-08-28 16:04:56 -05:00
Kaio Karam Galvao
9b0351c110 Add ST VL53L1 driver code
Initial VL53L1 driver code from ST
Maintenance 2 release.

Change-Id: I348d99b48ae0b528a70a87f0ac93b813a1df8d0c
Reviewed-on: https://gerrit.mot.com/1233051
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Sumit Jamadar <xkbr38@motorola.com>
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
2018-08-28 16:04:02 -05:00
Kaio Karam Galvao
140506b2cd Remove vl53l1 ToF test driver
VL53L1 test driver was added to fix TCMD compilation
errors. ST shared official Maintenance release #2
driver, so test driver not needed anymore.

Olson is the first program to use ToF as DLKM, so it
will not impact any NPI/legacy programs in 'bo' branch.

Change-Id: Idf4add39ca9fcf77b27296e0ca6a82ec40c08a59
Reviewed-on: https://gerrit.mot.com/1233050
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Sumit Jamadar <xkbr38@motorola.com>
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
2018-08-28 16:02:59 -05:00
Wen Xie
e5ac8247cd sx9310: When system suspend,disable hardware irq scan.
the current driver only disable system irq,
and not disable hardware irq,maybe cause irq imbalances.

Change-Id: I95bbad30e4940fb9665f8c02de8e7a75a9f54191
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1233341
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2018-08-27 23:49:35 -05:00
wengjun1
e2ca76c9c2 DLKM: input: Improve novatek touch driver
- Remove the ret=0 since it may potentially overwrite the
error code.

Change-Id: Iaf4669f4caa75938daf7fb13b268dea3b4c2b67c
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1231504
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
2018-08-27 00:42:35 -05:00
cuijy2
61853faa7e Sensors:add capsense sx933x usb and headset calibrate
Change-Id: Iab54aed1244a833adbec8011bbe522f4a074d75e
Signed-off-by: cuijy2 <cuijy1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1230951
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guoyue Liu <liugy11@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-08-24 01:00:31 -05:00
Yoon (Seungyoon) Lee
c8073dc181 ASoC: madera: report QDSP/LPASS SSR to soundcard
Cirrus madera codecs don't have a mechanism to report QDSP/LPASS SSR
to AP over soundcard status change. Add logic to reflect LPASS status
to soundcard, so AudioHAL can monitor and trigger necessary code on SSR.

Change-Id: I93de60b97b8baea0dc6b7cea0fee1f7a4f9219d1
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1219154
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
2018-08-23 15:49:17 -05:00
Konstantin Makariev
9f46f92eb9 utags: assign proper access permissions
Assigning proper access permissions to folders and files

Change-Id: Iea2635faee0b3eae1959d3b0089d9c3f27c3920d
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1231861
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-08-23 15:11:45 -05:00
Konstantin Makariev
282414bc7f fixup! (CR) synaptics_mmi: support splash screen mode
Mot-CRs-Fixed: (CR)

Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Change-Id: Ib485c60e2e4f85fcb4873c2866127d0d581c6b06
Reviewed-on: https://gerrit.mot.com/1228687
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-08-23 08:26:50 -05:00
Kenny Kessler
43ee289a41 power: qpnp-smbcharger-mmi: Merge FG Capacity
If the system has multiple Fuel Gauges and if 2 are defined
with names in the DT then use them to merge a Capacity
so that the combined percentage is reported to upper
layers.

Change-Id: Ic349cd72d088eef3da7a52e847f72a42c8059d33
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1231212
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2018-08-22 11:55:00 -05:00
Kenny Kessler
e6cfa933fc power: qpnp-smbcharger-mmi: Set 5V to 9V
The USB Input voltage should be 5V to 9 V.

Change-Id: I2cd1976feb4c80ff5f02fa232eec3da0ff65cdac
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1231211
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2018-08-22 11:54:57 -05:00