Skip to content

Commit 1b337ef

Browse files
committed
imx: sdma: Fix sdma firmware selection
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>
1 parent b608ec8 commit 1b337ef

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/drivers/imx/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ config IMX_INTERRUPT_GENERIC
3636
It enables NXP platforms-specific features.
3737

3838
config HAVE_SDMA_FIRMWARE
39-
bool
39+
bool "Enable SDMA firmware load"
4040
default n
4141
help
4242
Select this to load SDMA firmware to enable additional functionality

src/include/sof/drivers/sdma.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
#define SDMA_SCRIPT_SHP2MCU_OFF 893
152152
#define SDMA_SCRIPT_MCU2SHP_OFF 962
153153

154-
#ifdef CONFIG_SDMA_SCRIPT_CODE
154+
#if CONFIG_HAVE_SDMA_FIRMWARE
155155
#include "sdma_script_code_imx7d_4_5.h"
156156
#endif
157157

0 commit comments

Comments
 (0)