summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt5682-sdw.h
diff options
context:
space:
mode:
authorOder Chiou <oder_chiou@realtek.com>2020-02-19 18:28:57 +0800
committerMark Brown <broonie@kernel.org>2020-02-26 18:14:14 +0000
commit03f6fc6de9192f4e4209ceee0e92f5947d44fc0a (patch)
treee517352f840ba90afc89d17d4e085d33b0dd3a0c /sound/soc/codecs/rt5682-sdw.h
parent6b8e4e7db3cd236a2cbb720360fb135087a2ac1d (diff)
downloadlinux-03f6fc6de9192f4e4209ceee0e92f5947d44fc0a.tar.bz2
ASoC: rt5682: Add the soundwire support
This patch adds the soundwire support for ALC5682. Signed-off-by: Oder Chiou <oder_chiou@realtek.com> Link: https://lore.kernel.org/r/20200219102858.20166-1-oder_chiou@realtek.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5682-sdw.h')
-rw-r--r--sound/soc/codecs/rt5682-sdw.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5682-sdw.h b/sound/soc/codecs/rt5682-sdw.h
new file mode 100644
index 000000000000..76e6f607066e
--- /dev/null
+++ b/sound/soc/codecs/rt5682-sdw.h
@@ -0,0 +1,20 @@
+/* SPDX-License-Identifier: GPL-2.0-only
+ *
+ * rt5682-sdw.h -- RT5682 SDW ALSA SoC audio driver
+ *
+ * Copyright 2019 Realtek Semiconductor Corp.
+ * Author: Oder Chiou <oder_chiou@realtek.com>
+ */
+
+#ifndef __RT5682_SDW_H__
+#define __RT5682_SDW_H__
+
+#define RT5682_SDW_ADDR_L 0x3000
+#define RT5682_SDW_ADDR_H 0x3001
+#define RT5682_SDW_DATA_L 0x3004
+#define RT5682_SDW_DATA_H 0x3005
+#define RT5682_SDW_CMD 0x3008
+
+#define RT5682_PROBE_TIMEOUT 2000
+
+#endif /* __RT5682_SDW_H__ */