| aba58349 | 17-Jun-2024 |
Manish V Badarkhe <manish.badarkhe@arm.com> |
Merge changes from topic "st_gpio_update" into integration
* changes: fix(st-gpio): configure each GPIO mux as secure for STM32MP2 feat(st-gpio): add set GPIO config API fix(stm32mp1): remove
Merge changes from topic "st_gpio_update" into integration
* changes: fix(st-gpio): configure each GPIO mux as secure for STM32MP2 feat(st-gpio): add set GPIO config API fix(stm32mp1): remove unnecessary assert on GPIO_BANK_A value refactor(st): use GPIO banks definition from bindings feat(dt-bindings): describe ST GPIO banks and config
show more ...
|
| 5c457689 | 28-Nov-2023 |
Patrick Delaunay <patrick.delaunay@foss.st.com> |
fix(stm32mp1): remove unnecessary assert on GPIO_BANK_A value
Remove assert for unexpected value of the define GPIO_BANK_A.
This check is not required as GPIO_BANK_A = 0, it can be limited to have
fix(stm32mp1): remove unnecessary assert on GPIO_BANK_A value
Remove assert for unexpected value of the define GPIO_BANK_A.
This check is not required as GPIO_BANK_A = 0, it can be limited to have bank <= GPIO_BANK_K as bank is unsigned int.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Change-Id: I0345d56f106fcacd6a6f93281c2d9279980cd152
show more ...
|
| e04a9ef5 | 16-Mar-2022 |
Pascal Paillet <p.paillet@st.com> |
refactor(st): use GPIO banks definition from bindings
Use GPIO banks definition from bindings.
Change-Id: I4dcf321345e319af78285e940b72a1369569b996 Signed-off-by: Pascal Paillet <p.paillet@st.com> |
| 7c4e1eea | 02-May-2024 |
Chris Kay <chris.kay@arm.com> |
build: unify verbosity handling
This change introduces a few helper variables for dealing with verbose and silent build modes: `silent`, `verbose`, `q` and `s`.
The `silent` and `verbose` variables
build: unify verbosity handling
This change introduces a few helper variables for dealing with verbose and silent build modes: `silent`, `verbose`, `q` and `s`.
The `silent` and `verbose` variables are boolean values determining whether the build system has been configured to run silently or verbosely respectively (i.e. with `--silent` or `V=1`).
These two modes cannot be used together - if `silent` is truthy then `verbose` is always falsy. As such:
make --silent V=1
... results in a silent build.
In addition to these boolean variables, we also introduce two new variables - `s` and `q` - for use in rule recipes to conditionally suppress the output of commands.
When building silently, `s` expands to a value which disables the command that follows, and `q` expands to a value which supppresses echoing of the command:
$(s)echo 'This command is neither echoed nor executed' $(q)echo 'This command is executed but not echoed'
When building verbosely, `s` expands to a value which disables the command that follows, and `q` expands to nothing:
$(s)echo 'This command is neither echoed nor executed' $(q)echo 'This command is executed and echoed'
In all other cases, both `s` and `q` expand to a value which suppresses echoing of the command that follows:
$(s)echo 'This command is executed but not echoed' $(q)echo 'This command is executed but not echoed'
The `s` variable is predominantly useful for `echo` commands, where you always want to suppress echoing of the command itself, whilst `q` is more useful for all other commands.
Change-Id: I8d8ff6ed714d3cb401946c52955887ed7dca602b Signed-off-by: Chris Kay <chris.kay@arm.com>
show more ...
|
| 729286dc | 13-Jun-2024 |
Yann Gautier <yann.gautier@st.com> |
refactor(st): rename plat_set_image_source
The function is only used in this file and is static, no need to have plat_ prefix. And as it is used only in case of FWU, when looking in metadata, add it
refactor(st): rename plat_set_image_source
The function is only used in this file and is static, no need to have plat_ prefix. And as it is used only in case of FWU, when looking in metadata, add it in the function name.
Suggested-by: Manish V Badarkhe <Manish.Badarkhe@arm.com> Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I925c9c517216cf93bd74308c280c0f22c7734490
show more ...
|
| 795a559b | 31-May-2023 |
Yann Gautier <yann.gautier@st.com> |
feat(st): add FWU with boot from NAND
Add the NAND use case in FWU boot. Like the NOR, NAND FWU won't use a real partition UUID to find the correct FIP, but the UUID from metadata will correspond wi
feat(st): add FWU with boot from NAND
Add the NAND use case in FWU boot. Like the NOR, NAND FWU won't use a real partition UUID to find the correct FIP, but the UUID from metadata will correspond with a hardcoded offset in the NAND. Implement the plat_try_next_boot_source to load backup partition on specific device.
Signed-off-by: Nicolas Toromanoff <nicolas.toromanoff@foss.st.com> Signed-off-by: Lionel Debieve <lionel.debieve@foss.st.com> Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I1dc544c479743d0ca2aace6e8214813d75637f50
show more ...
|
| ae81d48d | 05-Jan-2024 |
Yann Gautier <yann.gautier@st.com> |
feat(st): manage backup partitions for NAND devices
Register a try_nand_backup_partitions() handler to plat_try_images_ops to manage backup partition when booting from NAND devices.
Signed-off-by:
feat(st): manage backup partitions for NAND devices
Register a try_nand_backup_partitions() handler to plat_try_images_ops to manage backup partition when booting from NAND devices.
Signed-off-by: Nicolas Toromanoff <nicolas.toromanoff@foss.st.com> Signed-off-by: Lionel Debieve <lionel.debieve@foss.st.com> Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: Ibee082b7b059b9e2ed502b7bbcda7464e5d9e251
show more ...
|
| f6559227 | 12-Sep-2022 |
Yann Gautier <yann.gautier@st.com> |
feat(stm32mp1): always boot at 650MHz
Switching to higher CPU frequencies requires a dedicated chip version (STM32MP1xxD or STM32MP1xxF), and increase CPU voltage. To avoid re-configuring I2C and PM
feat(stm32mp1): always boot at 650MHz
Switching to higher CPU frequencies requires a dedicated chip version (STM32MP1xxD or STM32MP1xxF), and increase CPU voltage. To avoid re-configuring I2C and PMIC before and after applying clock tree, always boot at 650MHz, which is the frequency for nominal voltage.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Change-Id: Id05a3ee17e7dd57e2d64dc06f8f1e7f9cb21e110
show more ...
|
| 8dd2a64a | 30-Jun-2022 |
Yann Gautier <yann.gautier@st.com> |
feat(stm32mp15): remove OP-TEE shared mem
The flag STM32MP15_OPTEE_RSV_SHM was disabled and mark deprecated. Remove the corresponding code.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-
feat(stm32mp15): remove OP-TEE shared mem
The flag STM32MP15_OPTEE_RSV_SHM was disabled and mark deprecated. Remove the corresponding code.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I948af3e1de4b89815c967a63abe64f285c405ecc
show more ...
|
| 55aed7d7 | 10-Apr-2024 |
Jimmy Brisson <jimmy.brisson@arm.com> |
feat(mbedtls): update config for 3.6.0
Further, remove reliance of mbedtls_md_psa_alg_from_type on the actual values of the PSA_ALG_... defines.
And work around a prior bug that would try to import
feat(mbedtls): update config for 3.6.0
Further, remove reliance of mbedtls_md_psa_alg_from_type on the actual values of the PSA_ALG_... defines.
And work around a prior bug that would try to import a SubjectPublicKeyInfo into a PSA key. Instead, we import the SubjectPublicKey itself.
Change-Id: Ib345b0bd4f2994f366629ed162d18814fd05aa2b Signed-off-by: Jimmy Brisson <jimmy.brisson@arm.com>
show more ...
|
| a97e1f97 | 08-May-2024 |
Manish Pandey <manish.pandey2@arm.com> |
Merge changes from topic "early_console" into integration
* changes: feat(stm32mp2): use early traces feat(st-bsec): use early traces refactor(st): replace STM32MP_EARLY_CONSOLE with EARLY_CON
Merge changes from topic "early_console" into integration
* changes: feat(stm32mp2): use early traces feat(st-bsec): use early traces refactor(st): replace STM32MP_EARLY_CONSOLE with EARLY_CONSOLE feat(console): introduce EARLY_CONSOLE feat(bl32): create an sp_min_setup function
show more ...
|
| 47ea3033 | 18-Jan-2024 |
Yann Gautier <yann.gautier@st.com> |
feat(stm32mp2): use early traces
Replace ERROR message with EARLY_ERROR for OTP driver probe, as this will be called before default console is enabled.
Signed-off-by: Yann Gautier <yann.gautier@st.
feat(stm32mp2): use early traces
Replace ERROR message with EARLY_ERROR for OTP driver probe, as this will be called before default console is enabled.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I756a04727c494d5f681a45d47d01189dff07dbe7
show more ...
|
| 94cad75a | 25-Oct-2023 |
Yann Gautier <yann.gautier@foss.st.com> |
refactor(st): replace STM32MP_EARLY_CONSOLE with EARLY_CONSOLE
Now that EARLY_CONSOLE is generic, use it instead of the ST flag. Remove stm32mp_setup_early_console() calls as it is done in common TF
refactor(st): replace STM32MP_EARLY_CONSOLE with EARLY_CONSOLE
Now that EARLY_CONSOLE is generic, use it instead of the ST flag. Remove stm32mp_setup_early_console() calls as it is done in common TF-A code.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: Icac29b62a6267303cb5c679d15847c013ead1d23
show more ...
|
| e494afc0 | 05-Mar-2024 |
Yann Gautier <yann.gautier@st.com> |
feat(stm32mp2): add ddr-fw parameter for fiptool
When generating fiptool for STM32MP2, a new parameter is added to put DDR firmware inside the FIP.
To avoid duplicating fiptool platform files, move
feat(stm32mp2): add ddr-fw parameter for fiptool
When generating fiptool for STM32MP2, a new parameter is added to put DDR firmware inside the FIP.
To avoid duplicating fiptool platform files, move tools/fiptool/plat_fiptool/st/stm32mp1 files in their parent directory and move plat_def_fip_uuid.h in in plat/st/common/include.
Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com> Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I1dd796847869e2bfb6ee8c2bcef25c595fa5197a
show more ...
|
| 8d92e4be | 01-Feb-2022 |
Yann Gautier <yann.gautier@st.com> |
refactor(stm32mp1): move the MCU security to BL32
Change the MCKPROT control management. Now, the MCU subsystem is done in the BL32 using the dedicated clock function. If using OP-TEE, you will need
refactor(stm32mp1): move the MCU security to BL32
Change the MCKPROT control management. Now, the MCU subsystem is done in the BL32 using the dedicated clock function. If using OP-TEE, you will need the corresponding commit [1]. This should be integrated in OP-TEE tag 4.2.0.
[1] e07f9212d5 plat-stm32mp1: shared_resource: disable MCKPROT if not needed
Signed-off-by: Lionel Debieve <lionel.debieve@st.com> Change-Id: I59f90ace750aa93f674389f881e2fe14ad334a72
show more ...
|
| f7c5ec1e | 05-Mar-2024 |
laurenw-arm <lauren.wehrmeister@arm.com> |
refactor(mbedtls): remove mbedtls 2.x support
Deprecation notice was sent to the community and no objection was raised, so removing mbedtls 2.x support.
Change-Id: Id3eb98b55692df98aabe6a7c5a5ec910
refactor(mbedtls): remove mbedtls 2.x support
Deprecation notice was sent to the community and no objection was raised, so removing mbedtls 2.x support.
Change-Id: Id3eb98b55692df98aabe6a7c5a5ec910222c8abd Signed-off-by: Lauren Wehrmeister <lauren.wehrmeister@arm.com>
show more ...
|
| 8d08a1df | 02-Feb-2024 |
Sughosh Ganu <sughosh.ganu@linaro.org> |
style(fwu): change the metadata fields to align with specification
Change the names of some FWU metadata structure members to have them align with the wording used in the corresponding specification
style(fwu): change the metadata fields to align with specification
Change the names of some FWU metadata structure members to have them align with the wording used in the corresponding specification. Use the GUID type instead of UUID as the fields described in the specification are GUIDs. Make corresponding changes to the code that accesses these fields. No functional changes are introduced by the patch.
Change-Id: Id3544ed1633811b0eeee2bf99477f9b7e6667044 Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
show more ...
|
| 61660514 | 20-Feb-2024 |
Sughosh Ganu <sughosh.ganu@linaro.org> |
feat(st): add logic to boot the platform from an alternate bank
In a few scenarios, there is a need to boot the platform from an alernate bank which is not the active bank. Call the API fwu_get_aler
feat(st): add logic to boot the platform from an alternate bank
In a few scenarios, there is a need to boot the platform from an alernate bank which is not the active bank. Call the API fwu_get_alernate_boot_bank() to select an alternate bank to boot the platform from. Calling this API function might be required in a couple of cases. One, in the unlikely scenario of the active bank being in an invalid state, or if the number of times the platform boots in trial state exceeds a pre-set count.
Also add a debug print that indicates the bank that the platform is booting from.
Change-Id: I688406540e64d1719af8d5c121821f5bb6335c06 Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
show more ...
|
| 6e99fee4 | 20-Feb-2024 |
Sughosh Ganu <sughosh.ganu@linaro.org> |
feat(st): add a function to clear the FWU trial state counter
Add an API stm32_clear_fwu_trial_boot_cnt() function to clear the trial state counter. This is called in the corner case scenario when t
feat(st): add a function to clear the FWU trial state counter
Add an API stm32_clear_fwu_trial_boot_cnt() function to clear the trial state counter. This is called in the corner case scenario when the active index is in an Invalid state, thus needing a reset of the trial state counter.
Change-Id: I2980135da88d0d947c222655c7958b51eb572d69 Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
show more ...
|
| 588b01b5 | 01-Feb-2024 |
Sughosh Ganu <sughosh.ganu@linaro.org> |
feat(st): get the state of the active bank directly
With version 2 of the FWU metadata structure, the state that a bank is in can be obtained from the bank_state field in the top level structure. Re
feat(st): get the state of the active bank directly
With version 2 of the FWU metadata structure, the state that a bank is in can be obtained from the bank_state field in the top level structure. Read the state of the active bank by referencing this field directly, instead of making an API call.
Change-Id: Ib22c56acbe172923b1323c544801ded81f1598ec Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
show more ...
|
| ef685219 | 20-Feb-2024 |
Mark Dykes <mark.dykes@arm.com> |
Merge "build: use toolchain identifiers in conditions" into integration |
| 60dd8069 | 20-Feb-2024 |
Mark Dykes <mark.dykes@arm.com> |
Merge "build: use new toolchain variables for tools" into integration |
| 8620bd0b | 04-Dec-2023 |
Chris Kay <chris.kay@arm.com> |
build: use toolchain identifiers in conditions
The toolchain refactor change introduces the `${toolchain}-${tool}-id` variables, which provide identifiers for all of the toolchain tools used by the
build: use toolchain identifiers in conditions
The toolchain refactor change introduces the `${toolchain}-${tool}-id` variables, which provide identifiers for all of the toolchain tools used by the build system. This change replaces the various conditions that are in use to identify these tools based on the path with a standard set of comparisons against these new identifier variables.
Change-Id: Ib60e592359fa6e415c19a012e68d660f87436ca7 Signed-off-by: Chris Kay <chris.kay@arm.com>
show more ...
|
| ffb77421 | 04-Dec-2023 |
Chris Kay <chris.kay@arm.com> |
build: use new toolchain variables for tools
This change migrates the values of `CC`, `CPP`, `AS` and other toolchain variables to the new `$(toolchain)-$(tool)` variables, which were introduced by
build: use new toolchain variables for tools
This change migrates the values of `CC`, `CPP`, `AS` and other toolchain variables to the new `$(toolchain)-$(tool)` variables, which were introduced by the toolchain refactor patch. These variables should be equivalent to the values that they're replacing.
Change-Id: I644fe4ce82ef1894bed129ddb4b6ab94fb04985d Signed-off-by: Chris Kay <chris.kay@arm.com>
show more ...
|
| 2e905c06 | 02-Feb-2024 |
Yann Gautier <yann.gautier@st.com> |
feat(stm32mp2): add STM32MP_USB_PROGRAMMER compilation
Add minimal compilation step when enabling STM32MP_USB_PROGRAMMER flag on STM32MP2. Add DWL_BUFFER_BASE in platform.mk and the compilation of t
feat(stm32mp2): add STM32MP_USB_PROGRAMMER compilation
Add minimal compilation step when enabling STM32MP_USB_PROGRAMMER flag on STM32MP2. Add DWL_BUFFER_BASE in platform.mk and the compilation of the new file plat/st/stm32mp2/stm32mp2_usb_dfu.c (just stubs for the moment).
Signed-off-by: Pankaj Dev <pankaj.dev@st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I8891ff23ddc3d40d7477ada3e49e439dd8af8316
show more ...
|