Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: SOF: Intel: hda: add SSP info to the chip info struct

add SSP info of APL and CNL, to the sof_intel_dsp_desc
structure. The max SSP count the platform support and
the SSP base address.

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>

authored by

Zhu Yingjiang and committed by
Mark Brown
b095fe47 df7e0de5

+10
+2
sound/soc/sof/intel/apl.c
··· 105 105 .ipc_ack_mask = HDA_DSP_REG_HIPCIE_DONE, 106 106 .ipc_ctl = HDA_DSP_REG_HIPCCTL, 107 107 .rom_init_timeout = 150, 108 + .ssp_count = APL_SSP_COUNT, 109 + .ssp_base_offset = APL_SSP_BASE_OFFSET, 108 110 }; 109 111 EXPORT_SYMBOL(apl_chip_info);
+2
sound/soc/sof/intel/cnl.c
··· 246 246 .ipc_ack_mask = CNL_DSP_REG_HIPCIDA_DONE, 247 247 .ipc_ctl = CNL_DSP_REG_HIPCCTL, 248 248 .rom_init_timeout = 300, 249 + .ssp_count = CNL_SSP_COUNT, 250 + .ssp_base_offset = CNL_SSP_BASE_OFFSET, 249 251 }; 250 252 EXPORT_SYMBOL(cnl_chip_info);
+4
sound/soc/sof/intel/hda.h
··· 345 345 /* Host Device Memory Size of a Single SSP */ 346 346 #define SSP_DEV_MEM_SIZE 0x1000 347 347 348 + /* SSP Count of the Platform */ 349 + #define APL_SSP_COUNT 6 350 + #define CNL_SSP_COUNT 3 351 + 348 352 #define HDA_IDISP_CODEC(x) ((x) & BIT(2)) 349 353 350 354 struct sof_intel_dsp_bdl {
+2
sound/soc/sof/intel/shim.h
··· 162 162 int ipc_ack_mask; 163 163 int ipc_ctl; 164 164 int rom_init_timeout; 165 + int ssp_count; /* ssp count of the platform */ 166 + int ssp_base_offset; /* base address of the SSPs */ 165 167 }; 166 168 167 169 extern const struct snd_sof_dsp_ops sof_tng_ops;