MLK-17481-3: ASoC: fsl: Fix DSP memory mappings
authorDaniel Baluta <daniel.baluta@nxp.com>
Wed, 23 May 2018 06:40:55 +0000 (09:40 +0300)
committerLeonard Crestez <leonard.crestez@nxp.com>
Thu, 18 Apr 2019 00:00:38 +0000 (03:00 +0300)
commit7683dd1237f40f89b35df49e8d907bf442e3fed8
tree92e1cd8d8f0b1524d11af213b5cf46946867cf6e
parent5d94e05503a029a77f815566186ee0826451ac0c
MLK-17481-3: ASoC: fsl: Fix DSP memory mappings

We load DSP firmware from the ARM side at 0x556e8000 but because the
compiler generated memory layout starts at 0x596e8000 we need to do
some fixups.

Thus, each address (in DSP local memory) generated by the compiler
needs to be substracted an offset = 0x596e8000 - 0x556e8000 = 0x4000000.

Because this only happens on QM we will use dts to specify the offset.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
(cherry picked from commit 8d4518d2a5d956549e829470af15003d7adff841)
(cherry picked from commit 513befc82cd9b622ec145b3886f49f8551301c08)
sound/soc/fsl/fsl_dsp.c
sound/soc/fsl/fsl_dsp.h