Commit graph

77 commits

Author SHA1 Message Date
huangys
8c267475d3 madera: remove some code on runtime resume
It's a workaround solution, these removed codes cause
spi communition error and need to be reviewed by cirrus..

Change-Id: I6632023de8c874bfabecf81ffef27c368e4a18f9
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1182137
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-05-30 03:03:03 -05:00
haojl2
7d5226f649 synaptics_tcm: Set FB counter to 1.
For river, only 1 FB notification got when boot up.
Set this counter to 1 to enable auto FW update.

Change-Id: I87cc21d481f8790e6b273741cf3236ad5f2c25d9
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1181635
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-05-28 20:03:34 -05:00
haojl2
cf19ec2814 synaptics_tcm: Add init FW to River.
This Patch should be revert.
Add this init Fw only for Factory SW.

Change-Id: Ied7ee9b5e7d716e48a768bfcff743d7dc7c0f690
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1181634
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-05-28 20:03:23 -05:00
Vlad Karpovich
8ae1c8cd2b ASoC: cs35l41: Change from MFD to codec driver.
Remove MFD driver support from cs35l41 codec.

Change-Id: Iffcb54eac647a4aa7e47b37ffda8ded1e06af8cf
Signed-off-by: Vlad Karpovich <Vlad.Karpovich@cirrus.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1177445
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
2018-05-22 12:57:13 -05:00
Lucas Tanure
6448cc8e4d ASoC: wm_adsp: Make ao_dsp a member of struct wm_adsp
To avoid changing the existing API

Change-Id: I926118983af26ed706c246cf04e13d60b1908277
Signed-off-by: Lucas Tanure <tanureal@opensource.cirrus.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1177444
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
2018-05-22 12:57:07 -05:00
Charles Keepax
ee2bf724f7 ASoC: wm_adsp: Switch to listing firmwares per core
Change-Id: I3ce2687dec8159012dcacc38b5867fdcc9a24679
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1177443
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
2018-05-22 12:57:01 -05:00
Charles Keepax
4508482dba ASoC: wm_adsp: Move firmware enums and controls to be DSP local
In situations were multiple devices are using ADSP cores in
the system it is not safe to modify the global list of controls
in the case of custom firmwares. Fix this by creating local
copies of the firmware enumeration and control data structures.

Change-Id: I9acc29397e49ea902819e19ad7e238ffa984136d
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1177442
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
2018-05-22 12:56:56 -05:00
Vlad Karpovich
159458d35b ASoC: wm_adsp: split coeff control read into smaller chunks
If the control contains any large regions and memory is
heavily fragmented the allocation of a single buffer for
the region data can fail. Avoid this by splitting the
data into page-sized chunks.

Change-Id: I10cc9312a80bf863e00b6ba63dc737212d756339
Signed-off-by: vkarp <Vlad.Karpovich@cirrus.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1177441
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
2018-05-22 12:56:52 -05:00
Richard Fitzgerald
ea4e2b8f67 ASoC: wm_adsp: split binfile load into smaller chunks
If the binfile contains any large regions and memory is
heavily fragmented the allocation of a single buffer for
the region data can fail. Avoid this by splitting the
data into page-sized chunks.

Change-Id: I45c62ae04409bbcfbc5280f89ef0da5e68dc1bf4
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1177440
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
2018-05-22 12:56:46 -05:00
Richard Fitzgerald
366b99b81c ASoC: wm_adsp: factor out writing wmfw block data
Move the loop which buffers and writes wmfw data out
into a separate function so that it can be re-used for
other purposes.

SQA-952

Change-Id: I19b5666d974bd5db5b08b2081a61d39da0af0e83
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1177439
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
2018-05-22 12:56:39 -05:00
Vlad Karpovich
1664a31151 ASoC: cs35l36: Update to womack driver
Merge recent changes from Moto kernel 4.4 branch

Change-Id: I40a8374bfd11717642265147696b8796700ca7ee
Signed-off-by: Vlad Karpovich <Vlad.Karpovich@cirrus.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1177438
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
2018-05-22 12:56:34 -05:00
Vlad Karpovich
23e33a0c4d ASoC: wm_adsp: Update Cirrus ADSP driver
Add support for HALO DSP Core.

Change-Id: Iae25b559d2277bd40241f85d265d1fc2ac9280a6
Reviewed-on: https://gerrit.mot.com/1166692
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yuesheng Huang <huangys@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-05-15 04:17:01 -05:00
Vlad Karpovich
1a6e7dd73c ASoC: cs35l41: Cirrus cs35l41 amplifier driver
11-V Boosted mono class D amplifuer with DSP speaker
protection and equalization

Change-Id: Ic8e2fe2a5a024e6b19fd97db9ece814a8764523c
Reviewed-on: https://gerrit.mot.com/1166691
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yuesheng Huang <huangys@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-05-15 04:16:52 -05:00
Vlad Karpovich
0253d73bba ASoC: cs47lxx: Update audio codecs
Make codec drivers work with new wm_adsp driver.

Change-Id: I800999dd518301c026096c32cbfbf444f6b0a155
Reviewed-on: https://gerrit.mot.com/1166690
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yuesheng Huang <huangys@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-05-15 04:16:43 -05:00
Ryan Lattrel
7c9c5ae6ce modules: create watchdog_cpu_ctx modules
Port watchdog_cpu_ctx functions to SDM845 and also
make it a loadable module.

Change-Id: I35f53a75b4e58ae0a59fe14491e9c70bc69a19a0
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1144236
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-05-09 13:52:57 -05:00
haojl2
fc1e19450c input: synaptics_tcm_mmi: Fix some warning
Fix some warning when build synaptics_tcm code.

Change-Id: I9876078e22ded85a0b46f15b66ef51d4d24098f1
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1171050
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-05-08 02:37:36 -05:00
haojl2
0437d00289 input: synaptics_tcm_mmi: Port Synaptics TCM driver.
This patch port synaptics_tcm_v1.0 origin code.
First line of release_notes.txt is:
v1.0 Mar 09, 2018 scott.lin@tw.synaptics.com

Change-Id: I0f83d23bce4375c609d09ef1f413627fce5f60b7
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1171049
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-05-08 02:37:18 -05:00
haojl2
1b0013ece1 misc: Port TPS61280 regulator driver
Port TPS61280 regulator driver in DLKM.

Change-Id: I5cf990e9811204dc1d8356718fb694adff687370
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1171100
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-05-04 02:18:27 -05:00
Ryan Lattrel
6cf41b0c79 modules: create usbnet gadget module
Port the usbnet motorola gadget driver for
factory to a loadable module.

Change-Id: I6713b97d6e6c2e2dfb90b703a7a17694d44bdccb
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1147494
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-04-25 13:26:02 -05:00
huangys
d648dbbb5f ospl: fix build error of header files absence
pippen and ali-shm2018 audo kernel directory is not same,
include differenct header file directory according directory
exist or not

Change-Id: I721fe66e659945caa3cae39d579c6f3a754dc0f7
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1167714
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-04-25 01:05:56 -05:00
huangys
eb96306f27 propagate ospl module from bomr1-8998 kernel branch
copy base from bomr1-8998: f2668732ab262c40c81286418aec9e8122aa690f

Change-Id: I25b4097dee29afce11121ef1211c7460c3980c1e
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1166270
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-04-24 05:02:20 -05:00
huangys
4c11484538 report headphone plug as input event
Change-Id: I294e2646d7cf81bef6be9e2c96bb7bd74f62350d
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1166091
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-04-20 04:12:45 -05:00
huangys
1ae601bb04 correct MADERA_HP_DONE value
According CS47L35 spec and cirrus github code

Change-Id: I31678be931c4e30356ad45abdf72730e43da0c69
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1165494
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-04-19 23:42:23 -05:00
Ryan Lattrel
1f97a5cf46 modules: tzlog_dump: write to mmi_annotate
Change module to write to the mmi_annotate space
instead of having a procfs entry to read.

Change-Id: I0931f7c1ef1305ebe23dfa2bb56fdb5a95948330
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1145135
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-04-12 08:32:09 -05:00
Ryan Lattrel
dbbb62ecaa modules: mmi_info: write to mmi_annotate
Write info to the mmi_annotate driver to save
information to be printed in the case of a
watchdog or panic.

Change-Id: I5681a1a2da18419e46d03b0dfe33b51a7f336019
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1144994
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-04-12 08:32:01 -05:00
Ryan Lattrel
f99876f575 modules: create mmi_annotate driver
Add a driver to replace the pstore annotated
region additions in the kernel.

Change-Id: If0fc6e46fe14562e846b8f356e6b75b71ae43307
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1132069
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-04-12 08:31:53 -05:00
guocx4
f90880f2f8 Add stm laser modules
1. Add vl53L0
2. Add vl53L1

Change-Id: Ib98cbddb95f1ec2ba2aaee79e215d0a5e0b7ffb4
Signed-off-by: guocx4 <guocx4@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1160804
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haichao Li <liuhc3@motorola.com>
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zilong Zhang <zhangzl7@lenovo.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2018-04-11 21:42:39 -05:00
huangys
08e4828a96 update cs35l35 driver from Payton
the old came from github site of cirrus driver v4.9-cs35l35 branch

Change-Id: I182e2bb0d1e041c72307c6b9541a7b2755e64ad2
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1160165
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-04-09 01:20:41 -05:00
xiaoy3
fa3cc721ff tzlog_dump: support TZ_DIAG_LOG different version
support tzlogdump on shm2018

Change-Id: Idb3de736f4f3b8b8808f08da0fe7e4744b0e6db2
Signed-off-by: xiaoy3 <xiaoy3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1157390
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2018-04-08 01:23:07 -05:00
huangys
4296ab05d2 ASoC: add cs35l35 driver
Change-Id: I3675d255f6c472ff0d781981b9184a265d389596
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1159946
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-04-08 01:04:50 -05:00
huangys
5fdd35cce4 enable support CS47L35 dynamically.
Change-Id: I5720f102a0be1d71a573aec8565d98693c126afb
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1159925
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-04-07 23:45:31 -05:00
Paul Handrigan
38c2d139aa ASoC: cs35l36: Update device tree checks for L37
Update device tree checks for cs35l37 12V.

Change-Id: Ic84f46a29d902522bf4faf9be331f1b1825313ca
Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1140353
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Vladimir Karpovich <vkarp@motorola.com>
Submit-Approved: Jira Key
2018-02-26 19:26:56 -06:00
Brian Austin
accfca81ba SoC: cs35l36: K1/2 coeff update for performance
The defaults for Boost Coeff K1 and K2 values
are to be updated to give better performance

Change-Id: I1c8a757fc0358e9e7ad0a878307dbe192143adcb
Signed-off-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1140352
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Vladimir Karpovich <vkarp@motorola.com>
Submit-Approved: Jira Key
2018-02-26 19:26:53 -06:00
Brian Austin
2fe9ab40a5 ASoC: cs35l36: Correct mask for L37
Correct the mask to check for L37 12V

Change-Id: I4ffb47940f1169e7d1d5667718ab9146d246775c
Signed-off-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1140351
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Vladimir Karpovich <vkarp@motorola.com>
Submit-Approved: Jira Key
2018-02-26 19:26:50 -06:00
Brian Austin
9492d0299c ASoC: cs35l36: remove regpatch for fixed boost
With the L37 now 12V we have to fix the boost based
off of that. Remove the default reg_patch call in
bus probe to utilize the newer method of handling
this case

Change-Id: I1f7db9c7c5335297b374be60e17693770739cfd3
Signed-off-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1140350
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Vladimir Karpovich <vkarp@motorola.com>
Submit-Approved: Jira Key
2018-02-26 19:26:47 -06:00
Brian Austin
66d3a850b9 ASoC: cs35l36: Move OTP PAC call to B0
We should do the PAC OTP trim kickoff if
we are only B0, so place the call where
we determine it is in fact B0

Change-Id: Ida17815c68f8a5785b6cc1f802903c40659ead8f
Signed-off-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1140349
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Vladimir Karpovich <vkarp@motorola.com>
Submit-Approved: Jira Key
2018-02-26 19:26:38 -06:00
Brian Austin
6f876f892e ASoC: cs35l36: adjust 10V/12V part distinction
Decided it would be best to check in bus probe
and print out what the real part number is.
Also, eliminate function and just hit the
test space in codec_probe

Change-Id: I2d02c8b57c1651cc2656d7f2561aee338d602025
Signed-off-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1140348
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Vladimir Karpovich <vkarp@motorola.com>
Submit-Approved: Jira Key
2018-02-26 19:26:33 -06:00
Brian Austin
e347400993 ASoC: cs35l36: Add revB 10v and 12v support
CS35L36 comes in 2 flavors for B0
10V L36 and 12V L37
If L36, clamp down certain boost features
for safety purposes

Change-Id: I8bd69815dbf7097393c77216239d644547d4fc22
Signed-off-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1140347
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Vladimir Karpovich <vkarp@motorola.com>
Submit-Approved: Jira Key
2018-02-26 19:26:28 -06:00
Paul Handrigan
bec5057733 ASoC: cs35l36: Add a switch that enables BOOST and CLASS H
Add a switch that enables boost and class h.  By default they
are off.

Change-Id: I68efd2ac2fa0c6837415287a97d720d8776a9acd
Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1140346
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
2018-02-26 19:26:23 -06:00
Brian Austin
ea2b640cb6 ASoC: cs35l36: Add boost control for external supply
If supplying boost voltage externally you have to
put the device in specific setting or damage may occur

Add DAPM_POST events to setup the correct up/dn
Add DT boolean to specify external or internal boost

Change-Id: I449b18601757127d6570d6e5bca1db3f2c7938ae
Signed-off-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1140358
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
2018-02-26 19:25:40 -06:00
Konstantin Makariev
dd32b850b7 input: synaptics_mmi: fix rmmod
This change allows successfully perform rmmod of Synaptics touch
driver modules: synaptics_mmi, synaptics_dsx_fw_update and
synaptics_dsx_rmi_dev

Change-Id: Ieb11465697165d2d096417311e51470b9749227a
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1130510
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-02-12 15:26:27 -06:00
Jason Knopsnyder
182d3dc4b9 modules: mmi_sys_temp: Add system temperature module
Add mmi system temperature module.

Change-Id: I68cf431c4a693ce54cd07e9a248cbb09be7f9082
Reviewed-on: https://gerrit.mot.com/1133749
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-02-12 14:42:09 -06:00
Konstantin Makariev
d269f977a0 input: ldc2114: run config in workqueue
Apply config work is done in workqueue now. Same thread is used to
schedule polling and irq works. Added sensor detection to support
PCB w/o inductive keys flex connected.

Change-Id: Ied612528513ea14aed15c2b8df0ae18ec7dcfd2e
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1131383
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-02-12 09:46:38 -06:00
Kenny Kessler
1193121550 modules: misc: Include Subfolders
Need the Android.mk files from subfolders as well.

Change-Id: I97fb12df4732da9798e8e403cbaa72d60fedfd1d
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1132962
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-02-08 16:36:45 -06:00
Ryan Lattrel
a1d4d757ef create mmi_info module
Convert mmi_ram_info mmi_soc_info mmi_storage_info
and bootinfo into a single loadable module.

Change-Id: I8de7933904f66573b0d5c70c8a7dd154911f354e
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1114526
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Shi-Yong Li <a22381@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-02-08 09:30:02 -06:00
Ryan Lattrel
bd7e15a394 modules: moto_f_diag: add tty diag module
Add module to override the f_diag gadget module
with tty calls for factory mode.

Change-Id: I208dcebdf00e629847b4ed3b7e597f968cb324ae
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1128711
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-02-08 09:29:28 -06:00
Vlad Karpovich
8d6c6a5296 ASoC: madera: Add Cirrus Logic audio drivers
The following drivers are included and modyfied to be run
as DLKM:
Core madera drivers,
extcon driver,
CS47L35 and CS47L90 codec drivers,
CS35l36 AMP driver,
CS40L20 haptic driver.

Change-Id: I7a285d434244e08635a2cfdcd3f21f45c3d8c0f6
Signed-off-by: Vlad Karpovich <Vlad.Karpovich@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1131231
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-02-07 16:23:31 -06:00
Ryan Lattrel
919125f54c modules: cyttsp: fix memory leak
Fix a memory leak in the cyttsp capsense module.

Change-Id: Ie8441cc9593bbc2d05be8438725c0ab903e63258
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1129408
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-02-05 14:32:46 -06:00
Konstantin Makariev
299d64680b utags: add utags support driver
Moving UTAGs driver from kernel to DLKM

Change-Id: Idfd4c3629434bc9b334092463478f7f6af7ed51e
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1125046
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-02-01 16:08:01 -06:00
Konstantin Makariev
0e8c506758 input: ldc2114: fix rmmod
DLKM was not properly unloading in response to rmmod command.

Change-Id: I23b958727cd245edccdf477adbb43183e927abff
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1128638
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-02-01 15:25:17 -06:00