diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2016-02-11 12:18:14 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-02-20 01:20:18 +0900 |
commit | 71aaa600787faffd72a9b674c9e5c9ded7cd9a82 (patch) | |
tree | d5a3f6ba72c61262fe9db28b058ef33e2d42e20f /sound/soc/qcom/lpass-lpaif-reg.h | |
parent | 39ad0ecd1e26a4138bf299b98265fceab60553a6 (diff) | |
download | linux-stable-71aaa600787faffd72a9b674c9e5c9ded7cd9a82.tar.gz linux-stable-71aaa600787faffd72a9b674c9e5c9ded7cd9a82.tar.bz2 linux-stable-71aaa600787faffd72a9b674c9e5c9ded7cd9a82.zip |
ASoC: qcom: add wrdma register definitions
This patch adds wrdma registers into the lpaif-reg.h.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Acked-by: Kenneth Westfield <kwestfie@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/qcom/lpass-lpaif-reg.h')
-rw-r--r-- | sound/soc/qcom/lpass-lpaif-reg.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sound/soc/qcom/lpass-lpaif-reg.h b/sound/soc/qcom/lpass-lpaif-reg.h index 65997945cc25..760d21905f90 100644 --- a/sound/soc/qcom/lpass-lpaif-reg.h +++ b/sound/soc/qcom/lpass-lpaif-reg.h @@ -145,4 +145,15 @@ #define LPAIF_RDMACTL_ENABLE_OFF (0 << LPAIF_RDMACTL_ENABLE_SHIFT) #define LPAIF_RDMACTL_ENABLE_ON (1 << LPAIF_RDMACTL_ENABLE_SHIFT) +#define LPAIF_WRDMA_REG_ADDR(v, addr, chan) \ + (v->wrdma_reg_base + (addr) + \ + v->wrdma_reg_stride * (chan - v->wrdma_channel_start)) + +#define LPAIF_WRDMACTL_REG(v, chan) LPAIF_WRDMA_REG_ADDR(v, 0x00, (chan)) +#define LPAIF_WRDMABASE_REG(v, chan) LPAIF_WRDMA_REG_ADDR(v, 0x04, (chan)) +#define LPAIF_WRDMABUFF_REG(v, chan) LPAIF_WRDMA_REG_ADDR(v, 0x08, (chan)) +#define LPAIF_WRDMACURR_REG(v, chan) LPAIF_WRDMA_REG_ADDR(v, 0x0C, (chan)) +#define LPAIF_WRDMAPER_REG(v, chan) LPAIF_WRDMA_REG_ADDR(v, 0x10, (chan)) +#define LPAIF_WRDMAPERCNT_REG(v, chan) LPAIF_WRDMA_REG_ADDR(v, 0x14, (chan)) + #endif /* __LPASS_LPAIF_REG_H__ */ |