| acf28c26 | 18-Oct-2021 |
Yann Gautier <yann.gautier@st.com> |
feat(st): protect UART during platform init
Protect the UART instance used for serial boot with UART used for console.
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Change-Id: Ieee1557b
feat(st): protect UART during platform init
Protect the UART instance used for serial boot with UART used for console.
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Change-Id: Ieee1557b34e7baa81594c3fbf0513191737027bf
show more ...
|
| aafff043 | 18-Oct-2021 |
Yann Gautier <yann.gautier@st.com> |
feat(stm32mp1): update console management for SP_min
Use stm32mp_uart_console_setup() in SP_min setup. Adapt the function stm32mp_uart_console_setup() for BL32 (no reset, add CONSOLE_FLAG_RUNTIME un
feat(stm32mp1): update console management for SP_min
Use stm32mp_uart_console_setup() in SP_min setup. Adapt the function stm32mp_uart_console_setup() for BL32 (no reset, add CONSOLE_FLAG_RUNTIME under DEBUG.
Change-Id: Ib2d35c8d285dafb680aa218872ad679cbf43d0ed Signed-off-by: Yann Gautier <yann.gautier@st.com>
show more ...
|
| 86240942 | 18-Oct-2021 |
Yann Gautier <yann.gautier@st.com> |
refactor(stm32mp1): improve console management in BL2
Use newly created function stm32mp_uart_console_setup(). And remove now useless code.
Change-Id: Ib8d0319d3f4f54309848bc225b58608cea73bad9 Sign
refactor(stm32mp1): improve console management in BL2
Use newly created function stm32mp_uart_console_setup(). And remove now useless code.
Change-Id: Ib8d0319d3f4f54309848bc225b58608cea73bad9 Signed-off-by: Yann Gautier <yann.gautier@st.com>
show more ...
|
| a6bfa75c | 16-Dec-2020 |
Yann Gautier <yann.gautier@st.com> |
feat(stm32mp1): add stm32_get_boot_interface function
Add function stm32_get_boot_interface to get the current boot interface from information saved in the TAMP register.
Change-Id: I23af43c68eeaeb
feat(stm32mp1): add stm32_get_boot_interface function
Add function stm32_get_boot_interface to get the current boot interface from information saved in the TAMP register.
Change-Id: I23af43c68eeaebe4c45920a57d739117aea3fbb1 Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
show more ...
|
| 4dc77a35 | 10-Dec-2021 |
Yann Gautier <yann.gautier@st.com> |
refactor(stm32mp1): move stm32_save_boot_interface()
The function stm32_save_boot_interface()is moved to stm32mp1_private.c file. The files stm32mp1_context.{c,h} are removed. As return is always 0,
refactor(stm32mp1): move stm32_save_boot_interface()
The function stm32_save_boot_interface()is moved to stm32mp1_private.c file. The files stm32mp1_context.{c,h} are removed. As return is always 0, change the function to return void. Call it earlier, to be able to use it when configuring console.
Change-Id: I8986e1257dc8e8708eab044a51ea1f2426b16597 Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
show more ...
|
| d7176f03 | 04-Jun-2021 |
Yann Gautier <yann.gautier@foss.st.com> |
fix(stm32mp1): deconfigure UART RX pins
Those pins are configured by ROM code, for serial boot use cases. Their configs are reset if the boot is done on UART, but not on USB. This should then be don
fix(stm32mp1): deconfigure UART RX pins
Those pins are configured by ROM code, for serial boot use cases. Their configs are reset if the boot is done on UART, but not on USB. This should then be done in TF-A. This has to be done after clock init, and before console is configured.
Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Change-Id: I29a9694e25fcf1665360dd71f73937f769c43b52
show more ...
|
| 737ad29b | 11-Jun-2021 |
Yann Gautier <yann.gautier@foss.st.com> |
feat(stm32_gpio): add a function to reset a pin
Add set_gpio_reset_cfg() to set a pin in its reset configuration: analog, no-pull, speed low, and its secure configuration, thanks to stm32_gpio_is_se
feat(stm32_gpio): add a function to reset a pin
Add set_gpio_reset_cfg() to set a pin in its reset configuration: analog, no-pull, speed low, and its secure configuration, thanks to stm32_gpio_is_secure_at_reset().
Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Change-Id: I7b73c3636859f97fcc57f81cf68b42efc727922e
show more ...
|
| ce21ee89 | 15-Oct-2021 |
Yann Gautier <yann.gautier@st.com> |
refactor(stm32mp1): sort compilation flags
Sort the compilation flags in platform.mk when checking and defining them for C files.
Change-Id: I5a08399c89ede4c0bd8697045706122732205db5 Signed-off-by:
refactor(stm32mp1): sort compilation flags
Sort the compilation flags in platform.mk when checking and defining them for C files.
Change-Id: I5a08399c89ede4c0bd8697045706122732205db5 Signed-off-by: Yann Gautier <yann.gautier@st.com>
show more ...
|
| c10f3a45 | 10-Nov-2020 |
Yann Gautier <yann.gautier@st.com> |
feat(stm32mp1): add sign-compare warning
Add -Wsign-compare to TF_CFLAGS to check signedness comparison during STM32MP1 platform compilation.
Change-Id: I4cada49622f44258d3e0da4560a566de9c7d54b3 Si
feat(stm32mp1): add sign-compare warning
Add -Wsign-compare to TF_CFLAGS to check signedness comparison during STM32MP1 platform compilation.
Change-Id: I4cada49622f44258d3e0da4560a566de9c7d54b3 Signed-off-by: Yann Gautier <yann.gautier@st.com>
show more ...
|
| b7066086 | 13-Dec-2021 |
Yann Gautier <yann.gautier@st.com> |
feat(stm32mp1): skip TOS_FW_CONFIG if not in FIP
Thanks to dyn_cfg_dtb_info_get_index(), we can check if TOS_FW_CONFIG is inside the FIP partition. If not we can skip its treatment when populating F
feat(stm32mp1): skip TOS_FW_CONFIG if not in FIP
Thanks to dyn_cfg_dtb_info_get_index(), we can check if TOS_FW_CONFIG is inside the FIP partition. If not we can skip its treatment when populating FIP images.
Change-Id: If5623eabd1ba484549d4a908d4a6f43325b36875 Signed-off-by: Yann Gautier <yann.gautier@st.com>
show more ...
|
| 9083fa11 | 28-Oct-2021 |
Patrick Delaunay <patrick.delaunay@foss.st.com> |
feat(plat/st): add STM32MP_UART_PROGRAMMER target
Handle boot from UART with STM32CubeProgammer based on mmap io for STM32MP15.
Depends-On: Iba84e8dfd67b9f30416efb0f6778e48ba1f75dad Signed-off-by:
feat(plat/st): add STM32MP_UART_PROGRAMMER target
Handle boot from UART with STM32CubeProgammer based on mmap io for STM32MP15.
Depends-On: Iba84e8dfd67b9f30416efb0f6778e48ba1f75dad Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Change-Id: Ibd719dd46a11da78633728675ef6639635b6cf67
show more ...
|
| 2e43638e | 09-Nov-2021 |
Madhukar Pappireddy <madhukar.pappireddy@arm.com> |
Merge changes from topic "st_usb" into integration
* changes: fix(drivers/usb): add a optional ops get_other_speed_config_desc fix(drivers/usb): remove unnecessary cast |
| 325376eb | 29-Oct-2021 |
Yann Gautier <yann.gautier@st.com> |
refactor(stm32mp1): use fconf.mk
Update STM32MP1 platform.mk file to include fconf.mk.
Change-Id: Idc623a832b4cdf9486835fc612803015f4f1a5f5 Signed-off-by: Yann Gautier <yann.gautier@st.com> |
| 216c1223 | 04-Nov-2021 |
Patrick Delaunay <patrick.delaunay@foss.st.com> |
fix(drivers/usb): add a optional ops get_other_speed_config_desc
Correctly handle USB_DESC_TYPE_OTHER_SPEED_CONFIGURATION request in USB driver and support a different result than USB_DESC_TYPE_CONF
fix(drivers/usb): add a optional ops get_other_speed_config_desc
Correctly handle USB_DESC_TYPE_OTHER_SPEED_CONFIGURATION request in USB driver and support a different result than USB_DESC_TYPE_CONFIGURATION with the new optional ops get_other_speed_config_desc().
The support of this descriptor is optionnal and is only required when high-speed capable device which can operate at its other possible speed.
This patch allows to remove the pbuf update in usb_core_get_desc() and solves an issue on USB re-enumeration on STM32MP15 platform as the result of get_config_desc() is a const array. This issue is not see on normal use-case, as the USB enumeration is only done in ROM code and TF-A reuse the same USB descritors.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Change-Id: I8edcc1e45065ab4e45d48f4bc37b49120674fdb0
show more ...
|
| fa92fef0 | 06-Jul-2021 |
Patrick Delaunay <patrick.delaunay@foss.st.com> |
feat(plat/st/stm32mp1): add STM32MP_USB_PROGRAMMER target
Add a support of USB as serial boot devices for STM32MP15x platform: the FIP file is provide by STM32CubeProgrammer with the DFU protocol, l
feat(plat/st/stm32mp1): add STM32MP_USB_PROGRAMMER target
Add a support of USB as serial boot devices for STM32MP15x platform: the FIP file is provide by STM32CubeProgrammer with the DFU protocol, loaded in DDR at DWL_BUFFER_BASE address and then the io memmap is used.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Change-Id: I272c17c458ff1e9d0780f8fa22330c8a35533d19
show more ...
|
| 942f6be2 | 30-Jun-2021 |
Patrick Delaunay <patrick.delaunay@foss.st.com> |
feat(plat/st/stm32mp1): add USB DFU support for STM32MP1
Add the USB descriptor, the struct used for USB enumeration with the function usb_dfu_plat_init().
The USB support is based on the usb lib a
feat(plat/st/stm32mp1): add USB DFU support for STM32MP1
Add the USB descriptor, the struct used for USB enumeration with the function usb_dfu_plat_init().
The USB support is based on the usb lib and on the stm32mp1 usb driver.
The content of enumeration (the string descriptor) is identical to ROM code to avoid the USB reset en re-enumeration needs.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Change-Id: I18b40649e8df83813a5a340b0eee44c9a3470e43
show more ...
|
| 1fa05dab | 28-Sep-2021 |
Chris Kay <chris.kay@arm.com> |
build(fdt-wrappers): introduce FDT wrappers makefile
This has been introduced to simplify dependencies on the FDT wrappers. We generally want to avoid pulling in components on a file-by-file basis,
build(fdt-wrappers): introduce FDT wrappers makefile
This has been introduced to simplify dependencies on the FDT wrappers. We generally want to avoid pulling in components on a file-by-file basis, particularly as we are trying to draw conceptual boxes around components in preparation for transitioning the build system to CMake, where dependencies are modelled on libraries rather than files.
Signed-off-by: Chris Kay <chris.kay@arm.com> Change-Id: Idb7ee05a9b54a8caa3e07f36e608867e20b6dcd5
show more ...
|
| 09665c83 | 14-Oct-2021 |
Mark Dykes <mark.dykes@arm.com> |
Merge "fix(plat/st): correct signedness comparison issue" into integration |
| 7684dddc | 07-Oct-2021 |
Yann Gautier <yann.gautier@st.com> |
fix(stm32mp1): add bl prefix for internal linker script
Due to patch [1], the bl prefix was removed from the build macros. It should then add explicitly when compiling stm32mp1.ld.S.
[1] 434d0491c5
fix(stm32mp1): add bl prefix for internal linker script
Due to patch [1], the bl prefix was removed from the build macros. It should then add explicitly when compiling stm32mp1.ld.S.
[1] 434d0491c5 ("refactor(makefile): remove BL prefixes in build macros")
Change-Id: I298dba2a7c958dd4ea6429c83ed4b1ee97e1735f Signed-off-by: Yann Gautier <yann.gautier@st.com>
show more ...
|
| 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 ...
|
| b38e2ed2 | 14-Sep-2020 |
Yann Gautier <yann.gautier@st.com> |
fix(plat/st): add UART reset in crash console init
Add the reset set/clear sequence at the beginning of the function plat_crash_console_init(). If not done, there is a risk that the UART is in a bad
fix(plat/st): add UART reset in crash console init
Add the reset set/clear sequence at the beginning of the function plat_crash_console_init(). If not done, there is a risk that the UART is in a bad state and will not be able to print correct characters.
Change-Id: Id31e28773d6c4f26f16d3569d1e3c5aa0e26e039 Signed-off-by: Yann Gautier <yann.gautier@st.com>
show more ...
|
| 4584e01d | 27-Sep-2020 |
Lionel Debieve <lionel.debieve@st.com> |
feat(plat/st): add a new DDR firewall management
Based on FCONF framework, define DDR firewall regions from firmware config file instead of static defines.
Change-Id: I471e15410ca286d9079a86e3dc347
feat(plat/st): add a new DDR firewall management
Based on FCONF framework, define DDR firewall regions from firmware config file instead of static defines.
Change-Id: I471e15410ca286d9079a86e3dc3474f66d37b5ab Signed-off-by: Lionel Debieve <lionel.debieve@st.com> Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
show more ...
|
| 3cc5155c | 05-Jul-2021 |
Yann Gautier <yann.gautier@foss.st.com> |
refactor(plat/st): use TZC400 bindings
This avoids duplicate define of TZC_REGION_NSEC_ALL_ACCESS_RDWR. And remove the previous TZC400 definitions from stm32mp1_def.h.
Change-Id: I6c72c2a18731f69d8
refactor(plat/st): use TZC400 bindings
This avoids duplicate define of TZC_REGION_NSEC_ALL_ACCESS_RDWR. And remove the previous TZC400 definitions from stm32mp1_def.h.
Change-Id: I6c72c2a18731f69d855fbce8ce822a21da9364fa Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
show more ...
|
| d5a84eea | 13-Jul-2021 |
Yann Gautier <yann.gautier@foss.st.com> |
feat(plat/st): manage io_policies with FCONF
Introduced IO policies management through the trusted boot firmware config device tree for UUID references.
Change-Id: Ibeeabede51b0514ebba26dbbdae58736
feat(plat/st): manage io_policies with FCONF
Introduced IO policies management through the trusted boot firmware config device tree for UUID references.
Change-Id: Ibeeabede51b0514ebba26dbbdae587363b2aa0a7 Signed-off-by: Lionel Debieve <lionel.debieve@st.com> Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
show more ...
|
| 29332bcd | 06-Jul-2021 |
Yann Gautier <yann.gautier@foss.st.com> |
feat(plat/st): use FCONF to configure platform
Add required code to support FCONF on STM32MP1 platform. The new FW_CONFIG DT file will be inside the FIP, and loaded by BL2. It will be used to config
feat(plat/st): use FCONF to configure platform
Add required code to support FCONF on STM32MP1 platform. The new FW_CONFIG DT file will be inside the FIP, and loaded by BL2. It will be used to configure the addresses where to load other binaries. BL2 should be agnostic of which BL32 is in the FIP (OP-TEE or SP_min), so optee_utils.c is always compiled, and some OP-TEE flags are removed.
Change-Id: Id957b49b0117864136250bfc416664f815043ada Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
show more ...
|