* 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>
* 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>
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>
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>
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>
* 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>
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>
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>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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