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 <yann.gautier@st.com>
This commit is contained in:
parent
e537bcdedb
commit
db3e0ece71
|
@ -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
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -82,7 +82,9 @@
|
||||||
static const mmap_region_t stm32mp1_mmap[] = {
|
static const mmap_region_t stm32mp1_mmap[] = {
|
||||||
MAP_SEC_SYSRAM,
|
MAP_SEC_SYSRAM,
|
||||||
MAP_DEVICE1,
|
MAP_DEVICE1,
|
||||||
|
#if STM32MP_RAW_NAND
|
||||||
MAP_DEVICE2,
|
MAP_DEVICE2,
|
||||||
|
#endif
|
||||||
{0}
|
{0}
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue