From b7d0058a3a9153a3863cf76a6763ea751b3ab48d Mon Sep 17 00:00:00 2001 From: Yann Gautier Date: Wed, 21 Oct 2020 18:15:12 +0200 Subject: [PATCH] feat(stm32mp1): use only one filter for TZC400 on STM32MP13 On STM32MP13, there is only 1 DDR port, hence only 1 TZC400 filter. Change-Id: I4f6750022cdaf658cd209a4bf48a6cdb0717020e Signed-off-by: Yann Gautier --- plat/st/stm32mp1/stm32mp1_def.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plat/st/stm32mp1/stm32mp1_def.h b/plat/st/stm32mp1/stm32mp1_def.h index 080bf01dd..b65488968 100644 --- a/plat/st/stm32mp1/stm32mp1_def.h +++ b/plat/st/stm32mp1/stm32mp1_def.h @@ -375,8 +375,13 @@ enum ddr_type { ******************************************************************************/ #define STM32MP1_TZC_BASE U(0x5C006000) +#if STM32MP13 +#define STM32MP1_FILTER_BIT_ALL TZC_400_REGION_ATTR_FILTER_BIT(0) +#endif +#if STM32MP15 #define STM32MP1_FILTER_BIT_ALL (TZC_400_REGION_ATTR_FILTER_BIT(0) | \ TZC_400_REGION_ATTR_FILTER_BIT(1)) +#endif /******************************************************************************* * STM32MP1 SDMMC