From 34175f16b5aaf1090b1a1882e42e459d2690b1f2 Mon Sep 17 00:00:00 2001 From: Tu Nguyen Van Date: Fri, 18 Oct 2024 08:56:38 +0700 Subject: [PATCH] drivers: psi5_s: add guard for DMA add guard for DMA since PSI5S driver is not suppored DMA Issue: AZ-2540 Signed-off-by: Tu Nguyen Van --- s32/drivers/s32ze/Psi5_S/src/Psi5_S_Ip.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/s32/drivers/s32ze/Psi5_S/src/Psi5_S_Ip.c b/s32/drivers/s32ze/Psi5_S/src/Psi5_S_Ip.c index 868e6660e..54e407dc7 100644 --- a/s32/drivers/s32ze/Psi5_S/src/Psi5_S_Ip.c +++ b/s32/drivers/s32ze/Psi5_S/src/Psi5_S_Ip.c @@ -170,7 +170,9 @@ VAR_SEC_NOCACHE(g_psi5_s_sram_mailbox) static uint32 g_psi5_s_sram_mailbox[PSI5_ #define PSI5_START_SEC_VAR_CLEARED_UNSPECIFIED_NO_CACHEABLE #include "Psi5_MemMap.h" -VAR_SEC_NOCACHE(STcd) VAR_ALIGN(static Dma_Ip_SwTcdRegType STcd[4], 32U) +#if (STD_ON == PSI5_S_IP_DMA_IS_USED) +VAR_ALIGN(static Dma_Ip_SwTcdRegType STcd[4], 32U) +#endif #define PSI5_STOP_SEC_VAR_CLEARED_UNSPECIFIED_NO_CACHEABLE #include "Psi5_MemMap.h"