| 56048fe2 | 18-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(st): explicitly check operators precedence
This corrects the MISRA violation C2012-12.1: The precedence of operators within expressions should be made explicit. This is done either by adding par
fix(st): explicitly check operators precedence
This corrects the MISRA violation C2012-12.1: The precedence of operators within expressions should be made explicit. This is done either by adding parentheses, or by creating dedicated variables to ease readability.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I5e3f191ee38eca7ef634bd7542e615ab625271f6
show more ...
|
| 981b9dcb | 14-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
refactor(stm32mp1): remove STM32MP_USE_STM32IMAGE
The code managing legacy boot (without FIP) that was under STM32MP_USE_STM32IMAGE flag is remove.
Change-Id: I04452453ed84567b0de39e900594a81526562
refactor(stm32mp1): remove STM32MP_USE_STM32IMAGE
The code managing legacy boot (without FIP) that was under STM32MP_USE_STM32IMAGE flag is remove.
Change-Id: I04452453ed84567b0de39e900594a81526562259 Signed-off-by: Yann Gautier <yann.gautier@st.com>
show more ...
|
| 461d631a | 06-Oct-2022 |
Lionel Debieve <lionel.debieve@foss.st.com> |
feat(stm32mp1): add the platform specific build for tools
Add cert_create and fiptool specific files to add the platform addons to the generic tools.
Change-Id: Ifa600241cdf32b495cc65edccddab47c379
feat(stm32mp1): add the platform specific build for tools
Add cert_create and fiptool specific files to add the platform addons to the generic tools.
Change-Id: Ifa600241cdf32b495cc65edccddab47c3796b77d Signed-off-by: Lionel Debieve <lionel.debieve@foss.st.com>
show more ...
|
| 54007c37 | 05-Oct-2022 |
Lionel Debieve <lionel.debieve@foss.st.com> |
feat(stm32mp1): add a check on TRUSTED_BOARD_BOOT with secure chip
Add a security check to enforce the usage of TRUSTED_BOARD_BOOT on closed device. It will guarantee the secure bootchain.
Change-I
feat(stm32mp1): add a check on TRUSTED_BOARD_BOOT with secure chip
Add a security check to enforce the usage of TRUSTED_BOARD_BOOT on closed device. It will guarantee the secure bootchain.
Change-Id: Id6120d0e5041e8f2d3866e5710876ec96b6d0216 Signed-off-by: Lionel Debieve <lionel.debieve@foss.st.com>
show more ...
|
| cd791164 | 05-Oct-2022 |
Lionel Debieve <lionel.debieve@foss.st.com> |
feat(stm32mp1): add the decryption support
Add the decryption support for STM32MP1 binaries. Decryption is limited to the BL32 loaded images.
Limitation: STM32MP15 doesn't support the feature.
Cha
feat(stm32mp1): add the decryption support
Add the decryption support for STM32MP1 binaries. Decryption is limited to the BL32 loaded images.
Limitation: STM32MP15 doesn't support the feature.
Change-Id: I96800bac7b22109f8471eb2953fc0dc269fc4fd1 Signed-off-by: Lionel Debieve <lionel.debieve@foss.st.com>
show more ...
|
| beb625f9 | 05-Oct-2022 |
Lionel Debieve <lionel.debieve@foss.st.com> |
feat(stm32mp1): add the TRUSTED_BOARD_BOOT support
Add the support of the TRUSTED_BOARD_BOOT to authenticate the loaded FIP using platform CoT management. It adds TBB platform definition, redefining
feat(stm32mp1): add the TRUSTED_BOARD_BOOT support
Add the support of the TRUSTED_BOARD_BOOT to authenticate the loaded FIP using platform CoT management. It adds TBB platform definition, redefining the standard image ID in order to decrease requested size in BL2 binary. Authentication will use mbedTLS library for parsing certificate configured with a platform configuration.
Change-Id: I9da66b915c5e9e9293fccfce92bef2434da1e430 Signed-off-by: Nicolas Toromanoff <nicolas.toromanoff@st.com> Signed-off-by: Lionel Debieve <lionel.debieve@foss.st.com>
show more ...
|
| 89c07747 | 05-Oct-2022 |
Lionel Debieve <lionel.debieve@foss.st.com> |
feat(stm32mp1): update ROM code API for header v2 management
Add the new definition field for authentication used in header V2 on STM32MP13.
Change-Id: Id8f0c2584ca9b74b0d21d82c9a98d286500548c4 Sig
feat(stm32mp1): update ROM code API for header v2 management
Add the new definition field for authentication used in header V2 on STM32MP13.
Change-Id: Id8f0c2584ca9b74b0d21d82c9a98d286500548c4 Signed-off-by: Lionel Debieve <lionel.debieve@foss.st.com>
show more ...
|
| f30034a2 | 05-Oct-2022 |
Lionel Debieve <lionel.debieve@foss.st.com> |
feat(stm32mp1): remove unused function from boot API
Remove old library access from ROM library that is no more used.
Change-Id: I9b91f1efd6ff9d311b69ca36f60474f01268c221 Signed-off-by: Lionel Debi
feat(stm32mp1): remove unused function from boot API
Remove old library access from ROM library that is no more used.
Change-Id: I9b91f1efd6ff9d311b69ca36f60474f01268c221 Signed-off-by: Lionel Debieve <lionel.debieve@foss.st.com>
show more ...
|
| 87dfbd71 | 05-Oct-2022 |
Lionel Debieve <lionel.debieve@foss.st.com> |
refactor(stm32mp1): remove authentication using STM32 image mode
Remove deprecated authentication mode to use the FIP authentication based on TBBR requirements. It will use the new crypto library.
refactor(stm32mp1): remove authentication using STM32 image mode
Remove deprecated authentication mode to use the FIP authentication based on TBBR requirements. It will use the new crypto library.
Change-Id: I95c7baa64ba42c370ae136f59781f2a7a4c7f507 Signed-off-by: Lionel Debieve <lionel.debieve@foss.st.com>
show more ...
|
| 27423744 | 02-Dec-2020 |
Nicolas Le Bayon <nicolas.le.bayon@foss.st.com> |
feat(stm32mp1): add RNG initialization in BL2 for STM32MP13
Initialize RNG driver at platform level for STM32MP13.
Change-Id: I64832de43e5f6559a12e26680142db54c88f0b9e Signed-off-by: Nicolas Le Bay
feat(stm32mp1): add RNG initialization in BL2 for STM32MP13
Initialize RNG driver at platform level for STM32MP13.
Change-Id: I64832de43e5f6559a12e26680142db54c88f0b9e Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@foss.st.com>
show more ...
|
| ad3e46a3 | 05-Oct-2022 |
Lionel Debieve <lionel.debieve@foss.st.com> |
feat(stm32mp1): add a stm32mp crypto library
Add the crypto library for STM32MP1 to use STM32 hardware accelerators.
Change-Id: I0bbb941001242a6fdc47514ab3efe07b12249285 Signed-off-by: Nicolas Toro
feat(stm32mp1): add a stm32mp crypto library
Add the crypto library for STM32MP1 to use STM32 hardware accelerators.
Change-Id: I0bbb941001242a6fdc47514ab3efe07b12249285 Signed-off-by: Nicolas Toromanoff <nicolas.toromanoff@st.com> Signed-off-by: Lionel Debieve <lionel.debieve@foss.st.com>
show more ...
|
| 68039f2d | 22-Dec-2020 |
Nicolas Toromanoff <nicolas.toromanoff@st.com> |
feat(st-crypto): update HASH for new hardware version used in STM32MP13
Introduce new flag to manage hardware version. STM32MP15 currently uses the HASH_V2 and STM32MP13 uses the HASH_V4. For STM32_
feat(st-crypto): update HASH for new hardware version used in STM32MP13
Introduce new flag to manage hardware version. STM32MP15 currently uses the HASH_V2 and STM32MP13 uses the HASH_V4. For STM32_HASH_V4: remove MD5 algorithm (no more supported) and add SHA384 and SHA512.
For STM32_HASH_V2: no change.
Change-Id: I3a9ae9e38249a2421c657232cb0877004d04dae1 Signed-off-by: Nicolas Toromanoff <nicolas.toromanoff@st.com> Signed-off-by: Lionel Debieve <lionel.debieve@foss.st.com>
show more ...
|
| 04238683 | 29-Aug-2019 |
Yann Gautier <yann.gautier@st.com> |
feat(stm32mp1): add plat_report_*_abort functions
The new helpers are created in STM32MP1 platform for prefetch and data aborts. While at it, put plat_report_exception() under DEBUG flag. If DEBUG i
feat(stm32mp1): add plat_report_*_abort functions
The new helpers are created in STM32MP1 platform for prefetch and data aborts. While at it, put plat_report_exception() under DEBUG flag. If DEBUG is not set, the weak function which does the same will be used. This plat_report_exception() function can also be simplified, as it will no more be used to report aborts.
Change-Id: Ibe989b28e236693f317cffb0545ea0611b7bdde4 Signed-off-by: Yann Gautier <yann.gautier@st.com>
show more ...
|
| 14a07040 | 15-Oct-2021 |
Yann Gautier <yann.gautier@foss.st.com> |
feat(stm32mp1): add early console in SP_min
Allow early console to be used at the beginning of SP_min, before the clocks and UART have been reconfigured.
Signed-off-by: Yann Gautier <yann.gautier@f
feat(stm32mp1): add early console in SP_min
Allow early console to be used at the beginning of SP_min, before the clocks and UART have been reconfigured.
Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Change-Id: I53d66938d42fcec830d9b81e5ef62b3790d0c3b3
show more ...
|
| 5223d880 | 13-Sep-2022 |
Yann Gautier <yann.gautier@foss.st.com> |
feat(st): properly manage early console
The new flag STM32MP_RECONFIGURE_CONSOLE is managed in platform.mk. It is used in stm32mp_setup_early_console() when calling plat_crash_console_init(). This c
feat(st): properly manage early console
The new flag STM32MP_RECONFIGURE_CONSOLE is managed in platform.mk. It is used in stm32mp_setup_early_console() when calling plat_crash_console_init(). This call is also under: "#if defined(IMAGE_BL2)" as this crash console init shouldn't be done by default in BL32.
Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Change-Id: Ib6b89db83d80095b662a2016e18ceb3fa8668435
show more ...
|
| 484e846a | 07-Mar-2022 |
Yann Gautier <yann.gautier@foss.st.com> |
fix(stm32mp1): enable crash console in FIQ handler
When a FIQ occurs and is trapped by SP_min, it is an unrecoverable error. As kernel may have switched the UART console off, we should re-enable it
fix(stm32mp1): enable crash console in FIQ handler
When a FIQ occurs and is trapped by SP_min, it is an unrecoverable error. As kernel may have switched the UART console off, we should re-enable it with plat_crash_console_init() for those failing states.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: Ib02e1271b6213f8e383a062b74494abf8826188f
show more ...
|
| 7d197d62 | 14-Apr-2022 |
Patrick Delaunay <patrick.delaunay@foss.st.com> |
refactor(stm32mp1): move DT_UART_COMPAT in include file
Move the definition of DT_UART_COMPAT in stm32mp1_def.h to be used in several files.
Change-Id: I74d0350bcd971df9b15697f2b9ec04061d6a7656 Sig
refactor(stm32mp1): move DT_UART_COMPAT in include file
Move the definition of DT_UART_COMPAT in stm32mp1_def.h to be used in several files.
Change-Id: I74d0350bcd971df9b15697f2b9ec04061d6a7656 Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
show more ...
|
| 4b2f23e5 | 15-Mar-2022 |
Patrick Delaunay <patrick.delaunay@foss.st.com> |
feat(stm32mp1): configure the serial boot load address
For product with 128MB DDR size, the OP-TEE is located at the end of the DDR and the FIP can't be loaded at the default location because it ove
feat(stm32mp1): configure the serial boot load address
For product with 128MB DDR size, the OP-TEE is located at the end of the DDR and the FIP can't be loaded at the default location because it overlap the OP-TEE final location. So the default value for DWL_BUFFER_BASE is invalid.
To avoid this conflict the serial boot load address = DWL_BUFFER_BASE can be modified with a configuration flags.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Change-Id: Ie27b87c10c57fea5d4c6200ce4f624e775b9a080
show more ...
|
| 32f2ca04 | 28-Feb-2022 |
Patrick Delaunay <patrick.delaunay@foss.st.com> |
fix(stm32mp1): update the FIP load address for serial boot
Update the FIP load address and size for serial boot to support product with a DDR size = 128MB 1/ Move the FIP location at the end of the
fix(stm32mp1): update the FIP load address for serial boot
Update the FIP load address and size for serial boot to support product with a DDR size = 128MB 1/ Move the FIP location at the end of the first 128MB 2/ Reduce the DWL_BUFFER_SIZE to 16MB, to be coherent with the value indicated in USB enumeration - for STM32MP13x: "@SSBL /0x03/1*16Me" - for STM32MP15x: "@Partition3 /0x03/1*16Me"
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Change-Id: Id93bf00c64832c17426bfd78e060861275677ecc
show more ...
|
| dcb31ff7 | 08-Sep-2021 |
Florian Lugou <florian.lugou@provenrun.com> |
feat(gic): add APIs to raise NS and S-EL1 SGIs
This patch adds two helper functions: - plat_ic_raise_ns_sgi to raise a NS SGI - plat_ic_raise_s_el1_sgi to raise a S-EL1 SGI
Signed-off-by: Florian
feat(gic): add APIs to raise NS and S-EL1 SGIs
This patch adds two helper functions: - plat_ic_raise_ns_sgi to raise a NS SGI - plat_ic_raise_s_el1_sgi to raise a S-EL1 SGI
Signed-off-by: Florian Lugou <florian.lugou@provenrun.com> Change-Id: I6f262dd1da1d77fec3f850eb74189e726b8e24da
show more ...
|
| e0bbc190 | 13-Jan-2021 |
Lionel Debieve <lionel.debieve@st.com> |
feat(stm32mp1): allow to override MTD base offset
Add an external parameter STM32MP_FORCE_MTD_START_OFFSET that allows to override the default FIP offset used to read the first programmed image. It
feat(stm32mp1): allow to override MTD base offset
Add an external parameter STM32MP_FORCE_MTD_START_OFFSET that allows to override the default FIP offset used to read the first programmed image. It can be used for NOR, RAW_NAND or SPI_NAND boot device.
Signed-off-by: Lionel Debieve <lionel.debieve@st.com> Change-Id: Ibe664aae0e5ee90dd6629e544c9e034d751fffed
show more ...
|
| d3434dca | 18-Aug-2021 |
Yann Gautier <yann.gautier@foss.st.com> |
feat(stm32mp1): manage second NAND OTP on STM32MP13
On STM32MP13, 2 OTP fuses can be used to configure NAND devices. By default OTP CFG9 is used for sNAND. A new OTP (CFG10) is used to configure raw
feat(stm32mp1): manage second NAND OTP on STM32MP13
On STM32MP13, 2 OTP fuses can be used to configure NAND devices. By default OTP CFG9 is used for sNAND. A new OTP (CFG10) is used to configure raw NAND. Thanks to bit 0 of CFG10 OTP, this default configuration can be switched. For sNAND on STM32MP13, the NAND_PARAM_STORED_IN_OTP is not used. The sNAND parameters have to be taken from OTP bits.
Change-Id: Ib95e0f9b9e66179a58b07f723ea01dce68b96475 Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
show more ...
|
| 9ee2510b | 13-Apr-2021 |
Lionel Debieve <lionel.debieve@foss.st.com> |
feat(stm32mp1): add define for external scratch buffer for nand devices
Override the default platform function to use an external buffer on STM32MP13 platform. It allows to use a temporary buffer lo
feat(stm32mp1): add define for external scratch buffer for nand devices
Override the default platform function to use an external buffer on STM32MP13 platform. It allows to use a temporary buffer located at the SRAM1 memory end.
Signed-off-by: Lionel Debieve <lionel.debieve@foss.st.com> Change-Id: Ibd84bb336c60af24608268916b3a18bb5a0fa3db
show more ...
|
| a3f97f66 | 09-May-2022 |
Yann Gautier <yann.gautier@foss.st.com> |
feat(stm32mp1): manage STM32MP13 rev.Y
The new SoC version for STM32MP13 is the revision Y. The register SYSCFG_IDC is updated for this new version with the value 0x1003. The function stm32mp_get_so
feat(stm32mp1): manage STM32MP13 rev.Y
The new SoC version for STM32MP13 is the revision Y. The register SYSCFG_IDC is updated for this new version with the value 0x1003. The function stm32mp_get_soc_name() should also be updated to manage this new SoC revision.
Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Change-Id: I4f2fa5f1503f17db93d8413c79c2b7a18d279f9b
show more ...
|
| c1522768 | 01-Aug-2022 |
Lauren Wehrmeister <lauren.wehrmeister@arm.com> |
Merge changes from topic "st_fip_uuid" into integration
* changes: feat(stm32mp1): retrieve FIP partition by type UUID feat(guid-partition): allow to find partition by type UUID refactor(stm32
Merge changes from topic "st_fip_uuid" into integration
* changes: feat(stm32mp1): retrieve FIP partition by type UUID feat(guid-partition): allow to find partition by type UUID refactor(stm32mp1): update PLAT_PARTITION_MAX_ENTRIES
show more ...
|