summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm_adsp.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-11-28 18:20:32 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-11-28 18:36:23 +0100
commit973838a030d2a91fbd524c95281991510ed0a865 (patch)
treeadc37d441edd6f7cf9d565a17bb51e9a4936966a /sound/soc/codecs/wm_adsp.h
parentASoC: adsp: Add ADSP base support (diff)
downloadlinux-973838a030d2a91fbd524c95281991510ed0a865.tar.xz
linux-973838a030d2a91fbd524c95281991510ed0a865.zip
ASoC: wm_adsp: Enable DVFS for ADSP2
Some ADSP devices can make use of DVFS to optimise power consumption depending on the operating frequency of the DSP core. Implement support for this in the generic ADSP code. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm_adsp.h')
-rw-r--r--sound/soc/codecs/wm_adsp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm_adsp.h b/sound/soc/codecs/wm_adsp.h
index b303b1f29c49..ffd29a4609e2 100644
--- a/sound/soc/codecs/wm_adsp.h
+++ b/sound/soc/codecs/wm_adsp.h
@@ -18,6 +18,8 @@
#include "wmfw.h"
+struct regulator;
+
struct wm_adsp_region {
int type;
unsigned int base;
@@ -34,6 +36,8 @@ struct wm_adsp {
const struct wm_adsp_region *mem;
int num_mems;
+
+ struct regulator *dvfs;
};
#define WM_ADSP1(wname, num) \
@@ -46,6 +50,7 @@ struct wm_adsp {
.shift = num, .event = wm_adsp2_event, \
.event_flags = SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD }
+int wm_adsp2_init(struct wm_adsp *adsp, bool dvfs);
int wm_adsp1_event(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *kcontrol, int event);
int wm_adsp2_event(struct snd_soc_dapm_widget *w,