diff options
author | Guneshwor Singh <guneshwor.o.singh@intel.com> | 2017-06-30 05:36:07 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-06-30 14:28:03 +0200 |
commit | 09e914d6b647cf23d81a226e1f1c4464bafdeb2d (patch) | |
tree | f6e9dc13538665ba439df2e7f316965de7317ff0 /sound/soc/intel/skylake/skl-sst.c | |
parent | ASoC: Intel: Skylake: Debugfs facility to dump module config (diff) | |
download | linux-09e914d6b647cf23d81a226e1f1c4464bafdeb2d.tar.xz 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 '')
-rw-r--r-- | sound/soc/intel/skylake/skl-sst.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/intel/skylake/skl-sst.c b/sound/soc/intel/skylake/skl-sst.c index 155e456b7a3a..aba9ea11ac74 100644 --- a/sound/soc/intel/skylake/skl-sst.c +++ b/sound/soc/intel/skylake/skl-sst.c @@ -553,6 +553,11 @@ int skl_sst_dsp_init(struct device *dev, void __iomem *mmio_base, int irq, sst = skl->dsp; sst->addr.lpe = mmio_base; sst->addr.shim = mmio_base; + sst->addr.sram0_base = SKL_ADSP_SRAM0_BASE; + sst->addr.sram1_base = SKL_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, (SKL_ADSP_SRAM0_BASE + SKL_ADSP_W0_STAT_SZ), SKL_ADSP_W0_UP_SZ, SKL_ADSP_SRAM1_BASE, SKL_ADSP_W1_SZ); |