From db3e0ece7157181a3529d14172368003eb63dc30 Mon Sep 17 00:00:00 2001 From: Yann Gautier Date: Thu, 17 Sep 2020 11:38:09 +0200 Subject: [PATCH] fix(stm32mp1): restrict DEVICE2 mapping in BL2 Only NAND memory map area can be of interest for BL2 in the DEVICE2 area. Map DEVICE2 under STM32MP_RAW_NAND flag. Change-Id: I7e3b39579e4a2525b25cb1987d6ec38038d0de2b Signed-off-by: Yann Gautier --- plat/st/stm32mp1/stm32mp1_private.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plat/st/stm32mp1/stm32mp1_private.c b/plat/st/stm32mp1/stm32mp1_private.c index e58528e91..0bed12a27 100644 --- a/plat/st/stm32mp1/stm32mp1_private.c +++ b/plat/st/stm32mp1/stm32mp1_private.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2021, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2015-2022, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -82,7 +82,9 @@ static const mmap_region_t stm32mp1_mmap[] = { MAP_SEC_SYSRAM, MAP_DEVICE1, +#if STM32MP_RAW_NAND MAP_DEVICE2, +#endif {0} }; #endif