summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorZhu Yingjiang2019-05-01 01:09:20 +0200
committerMark Brown2019-05-03 07:57:08 +0200
commitdf7e0de588252ccb11c2caf320df1dce23219917 (patch)
treeae278df4162058ef0cc6418ca9629c468b4bb150 /sound/soc
parentASoC: SOF: Intel: cnl: add pointer ops to use DPIB position (diff)
downloadkernel-qcow2-linux-df7e0de588252ccb11c2caf320df1dce23219917.tar.gz
kernel-qcow2-linux-df7e0de588252ccb11c2caf320df1dce23219917.tar.xz
kernel-qcow2-linux-df7e0de588252ccb11c2caf320df1dce23219917.zip
ASoC: SOF: Intel: hda: add the SSP Host Device memory space
The DSP SSP device memory can be conditionally accessed by the host(depending on access policy). Add the SSP base memory offset of APL and CNL. Signed-off-by: Zhu Yingjiang <yingjiang.zhu@linux.intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/sof/intel/hda.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/sof/intel/hda.h b/sound/soc/sof/intel/hda.h
index 4efcf85af6b5..c4550f2e493d 100644
--- a/sound/soc/sof/intel/hda.h
+++ b/sound/soc/sof/intel/hda.h
@@ -338,6 +338,13 @@
#define HDA_ADSP_FW_STATUS_SKL HDA_ADSP_SRAM0_BASE_SKL
#define HDA_ADSP_ERROR_CODE_SKL (HDA_ADSP_FW_STATUS_SKL + 0x4)
+/* Host Device Memory Space */
+#define APL_SSP_BASE_OFFSET 0x2000
+#define CNL_SSP_BASE_OFFSET 0x10000
+
+/* Host Device Memory Size of a Single SSP */
+#define SSP_DEV_MEM_SIZE 0x1000
+
#define HDA_IDISP_CODEC(x) ((x) & BIT(2))
struct sof_intel_dsp_bdl {