mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 17:44:19 +00:00
refactor(stm32mp2): remove useless STM32MP_SEC_SYSRAM_SIZE
The macro STM32MP_SEC_SYSRAM_SIZE only redefine STM32MP_SYSRAM_SIZE. Directly use the latter one and remove the STM32MP_SEC_SYSRAM_SIZE. Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I9cca19fda7294be3f31ec74293ce122037541d12
This commit is contained in:
parent
bac623d186
commit
104ec53ed1
2 changed files with 4 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2023-2024, STMicroelectronics - All Rights Reserved
|
* Copyright (c) 2023-2025, STMicroelectronics - All Rights Reserved
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -74,7 +74,7 @@
|
||||||
* BL31 specific defines.
|
* BL31 specific defines.
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
#define BL31_BASE 0
|
#define BL31_BASE 0
|
||||||
#define BL31_LIMIT (STM32MP_SEC_SYSRAM_SIZE / 2)
|
#define BL31_LIMIT (STM32MP_SYSRAM_SIZE / 2)
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* BL33 specific defines.
|
* BL33 specific defines.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2023-2024, STMicroelectronics - All Rights Reserved
|
* Copyright (c) 2023-2025, STMicroelectronics - All Rights Reserved
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -76,8 +76,6 @@
|
||||||
#define RETRAM_BASE U(0x0E080000)
|
#define RETRAM_BASE U(0x0E080000)
|
||||||
#define RETRAM_SIZE U(0x00020000)
|
#define RETRAM_SIZE U(0x00020000)
|
||||||
|
|
||||||
#define STM32MP_SEC_SYSRAM_SIZE STM32MP_SYSRAM_SIZE
|
|
||||||
|
|
||||||
/* DDR configuration */
|
/* DDR configuration */
|
||||||
#define STM32MP_DDR_BASE U(0x80000000)
|
#define STM32MP_DDR_BASE U(0x80000000)
|
||||||
#define STM32MP_DDR_MAX_SIZE UL(0x100000000) /* Max 4GB */
|
#define STM32MP_DDR_MAX_SIZE UL(0x100000000) /* Max 4GB */
|
||||||
|
@ -113,7 +111,7 @@ enum ddr_type {
|
||||||
#define STM32MP_BL2_SIZE U(0x00029000) /* 164 KB for BL2 */
|
#define STM32MP_BL2_SIZE U(0x00029000) /* 164 KB for BL2 */
|
||||||
|
|
||||||
/* Allocate remaining sysram to BL31 Binary only */
|
/* Allocate remaining sysram to BL31 Binary only */
|
||||||
#define STM32MP_BL31_SIZE (STM32MP_SEC_SYSRAM_SIZE - \
|
#define STM32MP_BL31_SIZE (STM32MP_SYSRAM_SIZE - \
|
||||||
STM32MP_BL2_SIZE)
|
STM32MP_BL2_SIZE)
|
||||||
|
|
||||||
#define BL31_PROGBITS_LIMIT STM32MP_BL31_SIZE
|
#define BL31_PROGBITS_LIMIT STM32MP_BL31_SIZE
|
||||||
|
|
Loading…
Add table
Reference in a new issue