summaryrefslogtreecommitdiff
path: root/soc/swr-mstr-ctrl.h
diff options
context:
space:
mode:
authorqctecmdr <qctecmdr@localhost>2019-09-17 00:53:25 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2019-09-17 00:53:25 -0700
commitde5b3da5cabfaa019c4be9b533495523f6304fd1 (patch)
tree9f4068d3c7a5263ae19c0a68bc7929d17d80edfe /soc/swr-mstr-ctrl.h
parente25db41da1b21485f4c90dec9bd4a2f84a46074d (diff)
parent96c842a2611f9002ccec911f2d42f2535b06d761 (diff)
downloadmsm-extra-de5b3da5cabfaa019c4be9b533495523f6304fd1.tar.gz
Merge "SoC: soundwire: Update debug soundwire master read/write functions"
Diffstat (limited to 'soc/swr-mstr-ctrl.h')
-rw-r--r--soc/swr-mstr-ctrl.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/soc/swr-mstr-ctrl.h b/soc/swr-mstr-ctrl.h
index 24bca1b0..321e84f3 100644
--- a/soc/swr-mstr-ctrl.h
+++ b/soc/swr-mstr-ctrl.h
@@ -11,6 +11,18 @@
#include <soc/qcom/pm.h>
#include <soc/swr-common.h>
+#ifdef CONFIG_DEBUG_FS
+#include <linux/debugfs.h>
+#include <linux/uaccess.h>
+
+#define SWR_MSTR_MAX_REG_ADDR 0x1740
+#define SWR_MSTR_START_REG_ADDR 0x00
+#define SWR_MSTR_MAX_BUF_LEN 32
+#define BYTES_PER_LINE 12
+#define SWR_MSTR_RD_BUF_LEN 8
+#define SWR_MSTR_WR_BUF_LEN 32
+#endif
+
#define SWR_ROW_48 0
#define SWR_ROW_50 1
#define SWR_ROW_64 2
@@ -162,6 +174,13 @@ struct swr_mstr_ctrl {
u32 swr_irq_wakeup_capable;
int hw_core_clk_en;
int aud_core_clk_en;
+#ifdef CONFIG_DEBUG_FS
+ struct dentry *debugfs_swrm_dent;
+ struct dentry *debugfs_peek;
+ struct dentry *debugfs_poke;
+ struct dentry *debugfs_reg_dump;
+ unsigned int read_data;
+#endif
};
#endif /* _SWR_WCD_CTRL_H */