summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_dsp.c
diff options
context:
space:
mode:
authorZhang Peng <peng.zhang_8@nxp.com>2020-10-15 13:35:04 +0800
committerZhang Peng <peng.zhang_8@nxp.com>2020-10-15 19:29:15 +0800
commite8bd78d46608774d9de81a957213f84a178e94f4 (patch)
tree977759e11fd3266e5485fce137817e380e0c557e /sound/soc/fsl/fsl_dsp.c
parentdd2aefcf94fa7c8aa24c79dd166db07374473783 (diff)
MLK-24883 ASoC: fsl_dsp: Add sections check for dsp firmware
Add to check more sections for dsp firmware due to xtensa tools upgrade, dsp firmware binary adds sections. Signed-off-by: Zhang Peng <peng.zhang_8@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_dsp.c')
-rw-r--r--sound/soc/fsl/fsl_dsp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/fsl/fsl_dsp.c b/sound/soc/fsl/fsl_dsp.c
index 352c8dc599de..88c94c44532a 100644
--- a/sound/soc/fsl/fsl_dsp.c
+++ b/sound/soc/fsl/fsl_dsp.c
@@ -740,7 +740,10 @@ static void dsp_load_firmware(const struct firmware *fw, void *context)
if ((!strcmp(&strtab[shdr->sh_name], ".rodata")) ||
(!strcmp(&strtab[shdr->sh_name], ".text")) ||
(!strcmp(&strtab[shdr->sh_name], ".data")) ||
- (!strcmp(&strtab[shdr->sh_name], ".bss"))
+ (!strcmp(&strtab[shdr->sh_name], ".bss")) ||
+ (!strcmp(&strtab[shdr->sh_name], ".rtos.rodata")) ||
+ (!strcmp(&strtab[shdr->sh_name], ".clib.data")) ||
+ (!strcmp(&strtab[shdr->sh_name], ".rtos.percpu.data"))
) {
memcpy_dsp((void *)(dsp_priv->sdram_vir_addr
+ (sh_addr - dsp_priv->sdram_phys_addr)),