refactor(st): move some storage definitions to common part
Those storage macros are common to all STM32MPU chips, move them to
plat/st/common/include/stm32mp_io_storage.h
Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
Change-Id: Id20ec00ba65edf9ec7a3a89adfda307c954c3cb6
diff --git a/plat/st/stm32mp1/include/platform_def.h b/plat/st/stm32mp1/include/platform_def.h
index 61b847f..75c8219 100644
--- a/plat/st/stm32mp1/include/platform_def.h
+++ b/plat/st/stm32mp1/include/platform_def.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015-2022, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2015-2023, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -25,10 +25,6 @@
#define PLATFORM_STACK_SIZE 0xC00
#endif
-#define FIP_IMAGE_NAME "fip"
-#define METADATA_PART_1 "metadata1"
-#define METADATA_PART_2 "metadata2"
-
#define STM32MP_PRIMARY_CPU U(0x0)
#define STM32MP_SECONDARY_CPU U(0x1)
diff --git a/plat/st/stm32mp1/stm32mp1_def.h b/plat/st/stm32mp1/stm32mp1_def.h
index ee07926..c5e1b96 100644
--- a/plat/st/stm32mp1/stm32mp1_def.h
+++ b/plat/st/stm32mp1/stm32mp1_def.h
@@ -195,6 +195,7 @@
SRAM1_SIZE - \
PLATFORM_MTD_MAX_PAGE_SIZE)
#endif
+
/*******************************************************************************
* STM32MP1 device/io map related constants (used for MMU)
******************************************************************************/
@@ -534,9 +535,6 @@
/* UID OTP */
#define UID_WORD_NB U(3)
-/* FWU configuration (max supported value is 15) */
-#define FWU_MAX_TRIAL_REBOOT U(3)
-
/*******************************************************************************
* STM32MP1 TAMP
******************************************************************************/
diff --git a/plat/st/stm32mp1/stm32mp1_fip_def.h b/plat/st/stm32mp1/stm32mp1_fip_def.h
index fa2d20e..e37e2e6 100644
--- a/plat/st/stm32mp1/stm32mp1_fip_def.h
+++ b/plat/st/stm32mp1/stm32mp1_fip_def.h
@@ -124,30 +124,4 @@
#define MAX_MMAP_REGIONS 10
#endif
-/*******************************************************************************
- * STM32MP1 RAW partition offset for devices without GPT
- ******************************************************************************/
-#define STM32MP_EMMC_BOOT_FIP_OFFSET U(0x00040000)
-#if PSA_FWU_SUPPORT
-#define STM32MP_NOR_METADATA1_OFFSET U(0x00080000)
-#define STM32MP_NOR_METADATA2_OFFSET U(0x000C0000)
-#define STM32MP_NOR_FIP_A_OFFSET U(0x00100000)
-#define STM32MP_NOR_FIP_A_GUID (const struct efi_guid)EFI_GUID(0x4fd84c93, \
- 0x54ef, 0x463f, 0xa7, 0xef, 0xae, 0x25, 0xff,\
- 0x88, 0x70, 0x87)
-
-#define STM32MP_NOR_FIP_B_OFFSET U(0x00500000)
-#define STM32MP_NOR_FIP_B_GUID (const struct efi_guid)EFI_GUID(0x09c54952, \
- 0xd5bf, 0x45af, 0xac, 0xee, 0x33, 0x53, 0x03,\
- 0x76, 0x6f, 0xb3)
-
-#else /* PSA_FWU_SUPPORT */
-#ifndef STM32MP_NOR_FIP_OFFSET
-#define STM32MP_NOR_FIP_OFFSET U(0x00080000)
-#endif
-#ifndef STM32MP_NAND_FIP_OFFSET
-#define STM32MP_NAND_FIP_OFFSET U(0x00200000)
-#endif
-#endif /* PSA_FWU_SUPPORT */
-
#endif /* STM32MP1_FIP_DEF_H */