| #
a8e06f04 |
| 28-Feb-2022 |
Manish Pandey <manish.pandey2@arm.com> |
Merge changes from topic "st-fix-enum" into integration
* changes: fix(stm32mp1): fix enum prints fix(st-clock): print enums as unsigned
|
| #
ceab2fc3 |
| 28-Feb-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(stm32mp1): fix enum prints
With gcc-11, the -Wformat-signedness warning complains about enum values that should be printed as unsigned values. But the current version of compiler used in CI stat
fix(stm32mp1): fix enum prints
With gcc-11, the -Wformat-signedness warning complains about enum values that should be printed as unsigned values. But the current version of compiler used in CI states that this parameter is signed. Just cast the value then.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: Ic0655e5ba9c44fe6abcd9958d7a9972f5de3b7ef
show more ...
|
| #
8d9c1b3c |
| 16-Feb-2022 |
Madhukar Pappireddy <madhukar.pappireddy@arm.com> |
Merge changes from topic "st-format-signedness" into integration
* changes: feat(stm32mp1): enable format-signedness warning fix(stm32mp1): correct types in messages fix(st-pmic): correct verb
Merge changes from topic "st-format-signedness" into integration
* changes: feat(stm32mp1): enable format-signedness warning fix(stm32mp1): correct types in messages fix(st-pmic): correct verbose message fix(st-sdmmc2): correct cmd_idx type in messages fix(st-fmc): fix type in message fix(mtd): correct types in messages fix(usb): correct type in message fix(tzc400): correct message with filter fix(psci): correct parent_node type in messages fix(libc): correct some messages fix(fconf): correct image_id type in messages fix(bl2): correct messages with image_id
show more ...
|
| #
43bbdca0 |
| 14-Feb-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(stm32mp1): correct types in messages
Avoid warnings when -Wformat-signedness is enabled.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I0ca41cb96826b4f7f9bcf77909fad110325c1e91
|
| #
09665c83 |
| 14-Oct-2021 |
Mark Dykes <mark.dykes@arm.com> |
Merge "fix(plat/st): correct signedness comparison issue" into integration
|
| #
5657decc |
| 10-Nov-2020 |
Yann Gautier <yann.gautier@st.com> |
fix(plat/st): correct signedness comparison issue
Add casts where required to avoid compialtion error when enabling -Wsign-compare in shared resources file. The assert is also corrected to match the
fix(plat/st): correct signedness comparison issue
Add casts where required to avoid compialtion error when enabling -Wsign-compare in shared resources file. The assert is also corrected to match the correct range (change || to &&).
Change-Id: Ie4c9c0c935d39ff9a2165b909172aacb3e94ab4d Signed-off-by: Yann Gautier <yann.gautier@st.com>
show more ...
|
| #
88b88228 |
| 16-Jul-2020 |
Madhukar Pappireddy <madhukar.pappireddy@arm.com> |
Merge "stm32mp1: register shared resource per GPIO bank/pin" into integration
|
| #
62cd4a19 |
| 16-Jul-2020 |
Madhukar Pappireddy <madhukar.pappireddy@arm.com> |
Merge "stm32mp1: register shared resource per IOMEM address" into integration
|
| #
9eed56e8 |
| 16-Jul-2020 |
Madhukar Pappireddy <madhukar.pappireddy@arm.com> |
Merge "stm32mp1: allow non-secure access to reset upon periph registration" into integration
|
| #
d88e485f |
| 16-Jul-2020 |
Madhukar Pappireddy <madhukar.pappireddy@arm.com> |
Merge "stm32mp1: allow non-secure access to clocks upon periph registration" into integration
|
| #
ac6b3b28 |
| 16-Jul-2020 |
Madhukar Pappireddy <madhukar.pappireddy@arm.com> |
Merge "stm32mp1: shared resources: peripheral registering" into integration
|
| #
936cf5fd |
| 16-Jul-2020 |
Madhukar Pappireddy <madhukar.pappireddy@arm.com> |
Merge "stm32mp1: shared resources: add trace messages" into integration
|
| #
ec8f4212 |
| 13-May-2020 |
Etienne Carriere <etienne.carriere@st.com> |
stm32mp1: register shared resource per GPIO bank/pin
Introduce helper functions stm32mp_register_secure_gpio() and stm32mp_register_non_secure_gpio() for drivers to register a GPIO pin as secure or
stm32mp1: register shared resource per GPIO bank/pin
Introduce helper functions stm32mp_register_secure_gpio() and stm32mp_register_non_secure_gpio() for drivers to register a GPIO pin as secure or non-secure.
These functions are stubbed when shared resource driver is not embedded in the BL image so that drivers do not bother whether they shall register or not their resources.
Change-Id: I1fe98576c072ae31f75427c9ac5c9f6c4f1b6ed1 Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
show more ...
|
| #
0651b5b7 |
| 13-May-2020 |
Etienne Carriere <etienne.carriere@st.com> |
stm32mp1: register shared resource per IOMEM address
Introduce helper functions stm32mp_register_secure_periph_iomem() and stm32mp_register_non_secure_periph_iomem() for drivers to register a resour
stm32mp1: register shared resource per IOMEM address
Introduce helper functions stm32mp_register_secure_periph_iomem() and stm32mp_register_non_secure_periph_iomem() for drivers to register a resource as secure or non-secure based on its SoC interface registers base address.
These functions are stubbed when shared resources driver is not embedded (!STM32MP_SHARED_RESOURCES) so that drivers embedded in other BL stages do not bother whether they shall register or not their resources.
Change-Id: Icebd05a930afc5964bc4677357da5d1b23666066 Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
show more ...
|
| #
b2707a69 |
| 13-May-2020 |
Etienne Carriere <etienne.carriere@st.com> |
stm32mp1: allow non-secure access to reset upon periph registration
Update implementation of stm32mp_nsec_can_access_reset() based on the registering of the shared resources.
Querying registering s
stm32mp1: allow non-secure access to reset upon periph registration
Update implementation of stm32mp_nsec_can_access_reset() based on the registering of the shared resources.
Querying registering state locks further registration of peripherals.
Change-Id: I5f38f2a3481780b9a71939d95984c4821c537aa4 Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
show more ...
|
| #
082c7731 |
| 13-May-2020 |
Etienne Carriere <etienne.carriere@st.com> |
stm32mp1: allow non-secure access to clocks upon periph registration
Update implementation of stm32mp_nsec_can_access_clock() based on the registering of the shared resources.
Querying registering
stm32mp1: allow non-secure access to clocks upon periph registration
Update implementation of stm32mp_nsec_can_access_clock() based on the registering of the shared resources.
Querying registering state locks further registration of peripherals.
Change-Id: If68f6d4a52c4742ba66244c6ea2d9afa08404137 Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
show more ...
|
| #
68450c94 |
| 13-May-2020 |
Etienne Carriere <etienne.carriere@st.com> |
stm32mp1: shared resources: peripheral registering
Define helper functions stm32mp_register_secure_periph() and stm32mp_register_non_secure_periph() for platform drivers to register a shared resourc
stm32mp1: shared resources: peripheral registering
Define helper functions stm32mp_register_secure_periph() and stm32mp_register_non_secure_periph() for platform drivers to register a shared resource assigned to respectively secure or non-secure world.
Some resources are related to clock resources. When a resource is registered as secure, ensure its clock dependencies are also registered as secure. Registering a non-secure resource does not mandate its clock dependencies are also registered as non-secure.
Change-Id: I74975be8976b8d3bf18dcc807541a072803af6e3 Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
show more ...
|
| #
a2150c33 |
| 13-May-2020 |
Etienne Carriere <etienne.carriere@st.com> |
stm32mp1: shared resources: add trace messages
Define from helper functions to get a human readable string identifier from a shared resource enumerated ID. Use them to make debug traces more friendl
stm32mp1: shared resources: add trace messages
Define from helper functions to get a human readable string identifier from a shared resource enumerated ID. Use them to make debug traces more friendly peripheral registering functions.
Change-Id: I9e207b8ce1d1e9250e242ca7e15461b9a1532f40 Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
show more ...
|
| #
e7038706 |
| 02-Jul-2020 |
Mark Dykes <mardyk01@review.trustedfirmware.org> |
Merge changes from topic "stm32-shres" into integration
* changes: stm32mp1: shared resources: apply registered configuration stm32mp1: shared resources: count GPIOZ bank pins stm32mp1: shared
Merge changes from topic "stm32-shres" into integration
* changes: stm32mp1: shared resources: apply registered configuration stm32mp1: shared resources: count GPIOZ bank pins stm32mp1: shared resources: define resource identifiers
show more ...
|
| #
6c681439 |
| 02-Jul-2020 |
Mark Dykes <mardyk01@review.trustedfirmware.org> |
Merge "stm32mp1: introduce shared resources support" into integration
|
| #
5f038ac6 |
| 13-May-2020 |
Etienne Carriere <etienne.carriere@st.com> |
stm32mp1: shared resources: apply registered configuration
BL32/SP_MIN configures platform security hardening from the shared resources driver. At the end of SP_MIN initialization, all shared resou
stm32mp1: shared resources: apply registered configuration
BL32/SP_MIN configures platform security hardening from the shared resources driver. At the end of SP_MIN initialization, all shared resources shall be assigned to secure or non-secure world by drivers. A lock prevent from further change on the resource assignation. By definition, resources not registered are assign to non-secure world since not claimed by any component on the BL.
No functional change as all resources are currently in state SHRES_UNREGISTERED hence assigned to non-secure world as prior this change in stm32mp1_etzpc_early_setup() and sp_min_platform_setup().
Change-Id: Ic41fab47216c3b8b7a6a75b8358cfcec411ed941 Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
show more ...
|
| #
722999e3 |
| 13-May-2020 |
Etienne Carriere <etienne.carriere@st.com> |
stm32mp1: shared resources: count GPIOZ bank pins
Get number of pins in the GPIOZ bank with helper function fdt_get_gpio_bank_pin_count(). Save the value in RAM to prevent parsing the FDT several ti
stm32mp1: shared resources: count GPIOZ bank pins
Get number of pins in the GPIOZ bank with helper function fdt_get_gpio_bank_pin_count(). Save the value in RAM to prevent parsing the FDT several time for the same information.
Change-Id: Ie68e300804461ffce09914100a7d2962116023b5 Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
show more ...
|
| #
47cf5d3f |
| 08-Dec-2019 |
Etienne Carriere <etienne.carriere@st.com> |
stm32mp1: introduce shared resources support
STM32MP1 SoC includes peripheral interfaces that can be assigned to the secure world, or that can be opened to the non-secure world.
This change introdu
stm32mp1: introduce shared resources support
STM32MP1 SoC includes peripheral interfaces that can be assigned to the secure world, or that can be opened to the non-secure world.
This change introduces the basics of a driver that manages such resources which assignation is done at run time. It currently offers API functions that state whether a service exposed to non-secure world has permission to access a targeted clock or reset controller.
Change-Id: Iff20028f41586bc501085488c03546ffe31046d8 Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
show more ...
|