Commit graph

87 commits

Author SHA1 Message Date
Jeff LaBundy
0c7591e6b9 misc: cs40l20: Handle diagnostics interruption
* Preserved device state correctly if new work is scheduled before
  diagnostics is cancelled.
* Removed hard coding of diagnostics trigger index.
* Updated minimum supported firmware revision to 0x000202.

Change-Id: I5b667cf32a588e329eb03face69ad8e7e0a13e71
Signed-off-by: Jeff LaBundy <jeff.labundy@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
2018-06-06 14:15:34 -05:00
Jeff LaBundy
7b0b39679a misc: cs40l20: Update diagnostics sequences
* Rearranged entry into and exit from closed-loop mode
* Checked for mutex lock in f0/ReDC capture function
* Moved mutex init and destroy to probe and remove, respectively

Change-Id: I38d83e9eb3881f833bf000ce760f4a8fda7fa17f
Signed-off-by: Jeff LaBundy <jeff.labundy@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
2018-06-06 14:15:34 -05:00
Jeff LaBundy
c259c6853e misc: cs40l20: Add diagnostics support
Added support for diagnostics stimulus generation as well as f0
and ReDC reporting.

Change-Id: I0a496501cc229026897865cca2333ba0a70f8bf0
Signed-off-by: Jeff LaBundy <jeff.labundy@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
2018-06-06 14:15:34 -05:00
Jeff LaBundy
e637d16c8e misc: cs40l20: Add support for Y memory
Added support for large wavetables that straddle both X memory (XM) and
Y memory (YM).

Change-Id: If946713744228a1010ff12715548c74a76fa3a85
Signed-off-by: Jeff LaBundy <jeff.labundy@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
2018-06-06 14:15:34 -05:00
Jeff LaBundy
4993ca75e1 misc: cs40l20: Add extended-length playback support
Allowed for the MSB of the cp_trigger_index sysfs control to indicate
that playback should be rendered until forcibly stopped.

Change-Id: Ic9c0111a7b4110d482174bfd475697bb2ac2c17a
Signed-off-by: Jeff LaBundy <jeff.labundy@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
2018-06-06 14:15:34 -05:00
Jeff LaBundy
c699185902 misc: cs40l20: sysfs control enhancements
* Added missing mutex lock/unlock around regmap access.
* Changed waveform index store functions to use an unsigned int.
* Added measured-f0 show function and stored-f0 show/store functions.

Change-Id: I00eb137ee65bb863d3208b0a1ab3b5e3f7464fbe
Signed-off-by: Jeff LaBundy <jeff.labundy@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
2018-06-06 14:15:34 -05:00
Jeff LaBundy
b7d20f1700 misc: cs40l20: Fix loop counter sign
Converted loop counters used in for statements from unsigned int to
int as per style guidelines.

Change-Id: I102f9bfc955c8b00adae381854104c04fc7484fa
Signed-off-by: Jeff LaBundy <jeff.labundy@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
2018-06-06 14:15:34 -05:00
Jeff LaBundy
d16628f7b8 misc: cs40l20: Add support for variable register addresses
Replaced references to algorithm control register addresses (which vary
with each firmware build) with their corresponding human-readable
control names (which are fixed).

Change-Id: If373845874353d121470c9071342bb03fa9667ec
Signed-off-by: Jeff LaBundy <jeff.labundy@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
2018-06-06 14:15:34 -05:00
chenlj2
74933c3916 motorola: dlkm: Add Sarsensor sx932x
-Add the Semtech Sx932x DLKM.

Change-Id: Iccf677e1f125de953bde75fd86ae3c3f62de8896
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1187156
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2018-06-06 04:48:25 -05:00
haojl2
12dd3b9089 synaptics_tcm: Remove TCM driver when probe failed.
Remove TCM driver when probe failed. In case unused worker block
others processes.

Change-Id: Ia04006d998c5ca330cba7b7bd80aa307fc7d15c6
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1185594
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Shanshan Dai <daiss1@lenovo.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-06-05 02:56:52 -05:00
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