diff options
author | Zhang Peng <peng.zhang_8@nxp.com> | 2020-10-15 13:35:04 +0800 |
---|---|---|
committer | Zhang Peng <peng.zhang_8@nxp.com> | 2020-10-15 19:29:15 +0800 |
commit | e8bd78d46608774d9de81a957213f84a178e94f4 (patch) | |
tree | 977759e11fd3266e5485fce137817e380e0c557e /sound/soc/fsl/fsl_dsp.c | |
parent | dd2aefcf94fa7c8aa24c79dd166db07374473783 (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.c | 5 |
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)), |