diff options
author | Guneshwor Singh <guneshwor.o.singh@intel.com> | 2017-06-30 09:06:07 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-06-30 13:28:03 +0100 |
commit | 09e914d6b647cf23d81a226e1f1c4464bafdeb2d (patch) | |
tree | f6e9dc13538665ba439df2e7f316965de7317ff0 /sound/soc/intel/skylake/bxt-sst.c | |
parent | d14700a01f9101c2bc75c24fc859c8d85ba7e623 (diff) | |
download | blackbird-op-linux-09e914d6b647cf23d81a226e1f1c4464bafdeb2d.tar.gz blackbird-op-linux-09e914d6b647cf23d81a226e1f1c4464bafdeb2d.zip |
ASoC: Intel: Skylake: Add sram address to sst_addr structure
SRAM address and memory window size differ for different platforms.
So add members to sst_addr structure and initialize them in the
respective dsp_init().
Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com>
Acked-By: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/skylake/bxt-sst.c')
-rw-r--r-- | sound/soc/intel/skylake/bxt-sst.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/intel/skylake/bxt-sst.c b/sound/soc/intel/skylake/bxt-sst.c index f5e7dbb1ba39..cf11b84888b9 100644 --- a/sound/soc/intel/skylake/bxt-sst.c +++ b/sound/soc/intel/skylake/bxt-sst.c @@ -573,6 +573,10 @@ int bxt_sst_dsp_init(struct device *dev, void __iomem *mmio_base, int irq, sst->fw_ops = bxt_fw_ops; sst->addr.lpe = mmio_base; sst->addr.shim = mmio_base; + sst->addr.sram0_base = BXT_ADSP_SRAM0_BASE; + sst->addr.sram1_base = BXT_ADSP_SRAM1_BASE; + sst->addr.w0_stat_sz = SKL_ADSP_W0_STAT_SZ; + sst->addr.w0_up_sz = SKL_ADSP_W0_UP_SZ; sst_dsp_mailbox_init(sst, (BXT_ADSP_SRAM0_BASE + SKL_ADSP_W0_STAT_SZ), SKL_ADSP_W0_UP_SZ, BXT_ADSP_SRAM1_BASE, SKL_ADSP_W1_SZ); |