summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/sta350.h
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2014-05-05 11:49:23 +0200
committerMark Brown <broonie@linaro.org>2014-05-05 12:52:59 -0700
commit7c2fcccc323909c1a4e56b79fc882168a0880146 (patch)
treec9e7f7e82a702e176055160dd04c325511f384d2 /sound/soc/codecs/sta350.h
parent09af62ff184bfeae4a72874ab28ed637a2329ee4 (diff)
ASoC: sta350: add support for bits in miscellaneous registers
Add support for RPDNEN, NSHHPEN, BRIDGOFF, CPWMEN and PNDLSL, and add DT bindings to access them. Signed-off-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/sta350.h')
-rw-r--r--sound/soc/codecs/sta350.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/soc/codecs/sta350.h b/sound/soc/codecs/sta350.h
index c3248f0fad2c..fb7285290779 100644
--- a/sound/soc/codecs/sta350.h
+++ b/sound/soc/codecs/sta350.h
@@ -225,4 +225,14 @@
#define STA350_C3_MIX1 60
#define STA350_C3_MIX2 61
+/* miscellaneous register 1 */
+#define STA350_MISC1_CPWMEN BIT(2)
+#define STA350_MISC1_BRIDGOFF BIT(5)
+#define STA350_MISC1_NSHHPEN BIT(6)
+#define STA350_MISC1_RPDNEN BIT(7)
+
+/* miscellaneous register 2 */
+#define STA350_MISC2_PNDLSL_MASK 0x1c
+#define STA350_MISC2_PNDLSL_SHIFT 2
+
#endif /* _ASOC_STA_350_H */