diff options
author | Liam Girdwood <liam.r.girdwood@linux.intel.com> | 2014-07-30 08:08:18 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-30 08:16:58 -0400 |
commit | d7d7d1eda0a2baaa4f6e02f0d58e81ea71dcbea2 (patch) | |
tree | dafcc2c08509c8d3212e2ca3c77463f388141183 | |
parent | ee4a6ce6cd74a9eace247656c5b109f31c73ab8d (diff) |
ASoC: Intel: Add macros for SST shim register bits.
Add some register definitions for other shim register bits.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Jie Yang <yang.jie@intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | sound/soc/intel/sst-dsp.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sound/soc/intel/sst-dsp.h b/sound/soc/intel/sst-dsp.h index 21a85eb196f1..3165dfa97408 100644 --- a/sound/soc/intel/sst-dsp.h +++ b/sound/soc/intel/sst-dsp.h | |||
@@ -77,6 +77,8 @@ | |||
77 | #define SST_CSR_S0IOCS (0x1 << 21) | 77 | #define SST_CSR_S0IOCS (0x1 << 21) |
78 | #define SST_CSR_S1IOCS (0x1 << 23) | 78 | #define SST_CSR_S1IOCS (0x1 << 23) |
79 | #define SST_CSR_LPCS (0x1 << 31) | 79 | #define SST_CSR_LPCS (0x1 << 31) |
80 | #define SST_CSR_24MHZ_LPCS (SST_CSR_SBCS0 | SST_CSR_SBCS1 | SST_CSR_LPCS) | ||
81 | #define SST_CSR_24MHZ_NO_LPCS (SST_CSR_SBCS0 | SST_CSR_SBCS1) | ||
80 | #define SST_BYT_CSR_RST (0x1 << 0) | 82 | #define SST_BYT_CSR_RST (0x1 << 0) |
81 | #define SST_BYT_CSR_VECTOR_SEL (0x1 << 1) | 83 | #define SST_BYT_CSR_VECTOR_SEL (0x1 << 1) |
82 | #define SST_BYT_CSR_STALL (0x1 << 2) | 84 | #define SST_BYT_CSR_STALL (0x1 << 2) |
@@ -96,6 +98,14 @@ | |||
96 | #define SST_IMRX_DONE (0x1 << 0) | 98 | #define SST_IMRX_DONE (0x1 << 0) |
97 | #define SST_BYT_IMRX_REQUEST (0x1 << 1) | 99 | #define SST_BYT_IMRX_REQUEST (0x1 << 1) |
98 | 100 | ||
101 | /* IMRD / IMD */ | ||
102 | #define SST_IMRD_DONE (0x1 << 0) | ||
103 | #define SST_IMRD_BUSY (0x1 << 1) | ||
104 | #define SST_IMRD_SSP0 (0x1 << 16) | ||
105 | #define SST_IMRD_DMAC0 (0x1 << 21) | ||
106 | #define SST_IMRD_DMAC1 (0x1 << 22) | ||
107 | #define SST_IMRD_DMAC (SST_IMRD_DMAC0 | SST_IMRD_DMAC1) | ||
108 | |||
99 | /* IPCX / IPCC */ | 109 | /* IPCX / IPCC */ |
100 | #define SST_IPCX_DONE (0x1 << 30) | 110 | #define SST_IPCX_DONE (0x1 << 30) |
101 | #define SST_IPCX_BUSY (0x1 << 31) | 111 | #define SST_IPCX_BUSY (0x1 << 31) |
@@ -125,6 +135,18 @@ | |||
125 | /* HMDC */ | 135 | /* HMDC */ |
126 | #define SST_HMDC_HDDA0(x) (x << 0) | 136 | #define SST_HMDC_HDDA0(x) (x << 0) |
127 | #define SST_HMDC_HDDA1(x) (x << 7) | 137 | #define SST_HMDC_HDDA1(x) (x << 7) |
138 | #define SST_HMDC_HDDA_E0_CH0 1 | ||
139 | #define SST_HMDC_HDDA_E0_CH1 2 | ||
140 | #define SST_HMDC_HDDA_E0_CH2 4 | ||
141 | #define SST_HMDC_HDDA_E0_CH3 8 | ||
142 | #define SST_HMDC_HDDA_E1_CH0 SST_HMDC_HDDA1(SST_HMDC_HDDA_E0_CH0) | ||
143 | #define SST_HMDC_HDDA_E1_CH1 SST_HMDC_HDDA1(SST_HMDC_HDDA_E0_CH1) | ||
144 | #define SST_HMDC_HDDA_E1_CH2 SST_HMDC_HDDA1(SST_HMDC_HDDA_E0_CH2) | ||
145 | #define SST_HMDC_HDDA_E1_CH3 SST_HMDC_HDDA1(SST_HMDC_HDDA_E0_CH3) | ||
146 | #define SST_HMDC_HDDA_E0_ALLCH (SST_HMDC_HDDA_E0_CH0 | SST_HMDC_HDDA_E0_CH1 | \ | ||
147 | SST_HMDC_HDDA_E0_CH2 | SST_HMDC_HDDA_E0_CH3) | ||
148 | #define SST_HMDC_HDDA_E1_ALLCH (SST_HMDC_HDDA_E1_CH0 | SST_HMDC_HDDA_E1_CH1 | \ | ||
149 | SST_HMDC_HDDA_E1_CH2 | SST_HMDC_HDDA_E1_CH3) | ||
128 | 150 | ||
129 | 151 | ||
130 | /* SST Vendor Defined Registers and bits */ | 152 | /* SST Vendor Defined Registers and bits */ |
@@ -134,11 +156,16 @@ | |||
134 | #define SST_VDRTCTL3 0xaC | 156 | #define SST_VDRTCTL3 0xaC |
135 | 157 | ||
136 | /* VDRTCTL0 */ | 158 | /* VDRTCTL0 */ |
159 | #define SST_VDRTCL0_APLLSE_MASK 1 | ||
137 | #define SST_VDRTCL0_DSRAMPGE_SHIFT 16 | 160 | #define SST_VDRTCL0_DSRAMPGE_SHIFT 16 |
138 | #define SST_VDRTCL0_DSRAMPGE_MASK (0xffff << SST_VDRTCL0_DSRAMPGE_SHIFT) | 161 | #define SST_VDRTCL0_DSRAMPGE_MASK (0xffff << SST_VDRTCL0_DSRAMPGE_SHIFT) |
139 | #define SST_VDRTCL0_ISRAMPGE_SHIFT 6 | 162 | #define SST_VDRTCL0_ISRAMPGE_SHIFT 6 |
140 | #define SST_VDRTCL0_ISRAMPGE_MASK (0x3ff << SST_VDRTCL0_ISRAMPGE_SHIFT) | 163 | #define SST_VDRTCL0_ISRAMPGE_MASK (0x3ff << SST_VDRTCL0_ISRAMPGE_SHIFT) |
141 | 164 | ||
165 | /* PMCS */ | ||
166 | #define SST_PMCS 0x84 | ||
167 | #define SST_PMCS_PS_MASK 0x3 | ||
168 | |||
142 | struct sst_dsp; | 169 | struct sst_dsp; |
143 | 170 | ||
144 | /* | 171 | /* |