Skip to content

Commit

Permalink
imx: sdma: Fix sdma firmware selection
Browse files Browse the repository at this point in the history
CONFIG_SDMA_SCRIPT_CODE is always defined (even if not selected
it defaults to empty string) so this is not a good way of including
sdma script code header file.

Make use of HAVE_SDMA_FIRMWARE boolean config in order to select
the sdma script code header.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
  • Loading branch information
dbaluta committed Sep 20, 2023
1 parent b608ec8 commit 1b337ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/drivers/imx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ config IMX_INTERRUPT_GENERIC
It enables NXP platforms-specific features.

config HAVE_SDMA_FIRMWARE
bool
bool "Enable SDMA firmware load"
default n
help
Select this to load SDMA firmware to enable additional functionality
Expand Down
2 changes: 1 addition & 1 deletion src/include/sof/drivers/sdma.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
#define SDMA_SCRIPT_SHP2MCU_OFF 893
#define SDMA_SCRIPT_MCU2SHP_OFF 962

#ifdef CONFIG_SDMA_SCRIPT_CODE
#if CONFIG_HAVE_SDMA_FIRMWARE
#include "sdma_script_code_imx7d_4_5.h"
#endif

Expand Down

0 comments on commit 1b337ef

Please sign in to comment.