| daab00cf | 03-Sep-2024 |
Chris Kay <chris.kay@arm.com> |
build: disable suffix rules globally
This change centralises the logic that disables the default suffix rules that Make provides. These rules are a hold-over from legacy standards of Make, and occas
build: disable suffix rules globally
This change centralises the logic that disables the default suffix rules that Make provides. These rules are a hold-over from legacy standards of Make, and occasionally conflict with our rules.
Change-Id: I9e023edbc01b5ae48a96fa1078d0b81faabb0cb9 Signed-off-by: Chris Kay <chris.kay@arm.com>
show more ...
|
| a4fe3846 | 15-Nov-2024 |
Govindraj Raja <govindraj.raja@arm.com> |
Merge "fix(stm32mp2): use TOOL_ADD_IMG_PAYLOAD for BL31 DT" into integration |
| f15f1c62 | 14-Nov-2024 |
Yann Gautier <yann.gautier@st.com> |
fix(stm32mp2): use TOOL_ADD_IMG_PAYLOAD for BL31 DT
Use TOOL_ADD_IMG_PAYLOAD instead of TOOL_ADD_IMG to generate the BL31 device tree blob to be included in FIP. This allows building all TF-A binari
fix(stm32mp2): use TOOL_ADD_IMG_PAYLOAD for BL31 DT
Use TOOL_ADD_IMG_PAYLOAD instead of TOOL_ADD_IMG to generate the BL31 device tree blob to be included in FIP. This allows building all TF-A binaries and FIP in a single command. Else, as TOOL_ADD_IMG evaluate the existence of the file before building it, we have a build error.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I72d2f70733c49792d0321ad07f5a3bbd283a36d4
show more ...
|
| 16a659d7 | 14-Nov-2024 |
Yann Gautier <yann.gautier@st.com> |
fix(stm32mp2): enable timer earlier in BL31
The timer is required when setting console. In BL2 the timer init is done in clock driver init. This is not the case in BL31. So initialize the generic_de
fix(stm32mp2): enable timer earlier in BL31
The timer is required when setting console. In BL2 the timer init is done in clock driver init. This is not the case in BL31. So initialize the generic_delay_timer_init() just after stm32mp2_clk_init() call. This is required after the recent changes in timer framework [1].
[1]: a6485b2b3b refactor(delay-timer): add timer callback functions
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I4e84a45fc526ed132e97b238596aa69ddfc2b058
show more ...
|
| e053e89f | 05-Nov-2024 |
Govindraj Raja <govindraj.raja@arm.com> |
Merge "fix(st): set no-pie option when building ST elf file" into integration |
| 6d26d75c | 29-Oct-2024 |
Yann Gautier <yann.gautier@st.com> |
fix(st): set no-pie option when building ST elf file
This elf file is used to build a binary file that concatenates BL2 and its device tree blob. It then does not need PIE option, and this avoids th
fix(st): set no-pie option when building ST elf file
This elf file is used to build a binary file that concatenates BL2 and its device tree blob. It then does not need PIE option, and this avoids the following compilation error with some compiler versions: error: PHDR segment not covered by LOAD segment
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I7562e8c1890275fe0409f3a23cc66a8e14ea1ee0
show more ...
|
| 747d85ee | 15-Oct-2024 |
Maxime Méré <maxime.mere@foss.st.com> |
fix(stm32mp2): set PLAT_MAX_PWR_LVL to one
Set maximum power level to 1 as power management isn't implemented yet.
Change-Id: I26cefbb5e199944d371bf06a76b2c41f73d38585 Signed-off-by: Maxime Méré <m
fix(stm32mp2): set PLAT_MAX_PWR_LVL to one
Set maximum power level to 1 as power management isn't implemented yet.
Change-Id: I26cefbb5e199944d371bf06a76b2c41f73d38585 Signed-off-by: Maxime Méré <maxime.mere@foss.st.com>
show more ...
|
| c900760d | 11-Jan-2024 |
Yann Gautier <yann.gautier@foss.st.com> |
feat(stm32mp2): boot BL33 at EL1 or EL2
STM32 MPUs use U-Boot as BL33. It can handle being booted at EL2. Add a new STM32MP_BL33_EL1 config boolean. If defined BL33 will start at EL1 and with INIT_U
feat(stm32mp2): boot BL33 at EL1 or EL2
STM32 MPUs use U-Boot as BL33. It can handle being booted at EL2. Add a new STM32MP_BL33_EL1 config boolean. If defined BL33 will start at EL1 and with INIT_UNUSED_NS_EL2 defined to Iiitialize the unused EL2 registers.
Change BL33 spsr parameter in bl2_mem_params_descs[] to use MODE_EL2 or MODE_EL1 depending on this flag. Default to MODE_EL1 as kernel isn't able to boot at EL2 yet.
Change-Id: I6a8b35280d454d8140d7b28f0a5fc9b9a5093d6d Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Signed-off-by: Christian Bruel <christian.bruel@foss.st.com>
show more ...
|
| 128df965 | 02-Oct-2023 |
Yann Gautier <yann.gautier@foss.st.com> |
feat(stm32mp2): disable unsupported features
SPE and SVE for non-secure world are not supported on Arm v8.0. Disable the corresponding flags. This also saves a bit of memory.
Change-Id: I323fb74103
feat(stm32mp2): disable unsupported features
SPE and SVE for non-secure world are not supported on Arm v8.0. Disable the corresponding flags. This also saves a bit of memory.
Change-Id: I323fb7410393ea9711759be4c47848316fb68860 Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
show more ...
|
| 77847f03 | 21-Oct-2024 |
Maxime Méré <maxime.mere@foss.st.com> |
feat(stm32mp2): initialize gic and delay timer in bl31_plat_arch_setup
For minimal BL31 setup, GIC and tick must be initialized.
Change-Id: I8d62253e93b77cd8ce8091ccc9ea88208bdd6053 Signed-off-by:
feat(stm32mp2): initialize gic and delay timer in bl31_plat_arch_setup
For minimal BL31 setup, GIC and tick must be initialized.
Change-Id: I8d62253e93b77cd8ce8091ccc9ea88208bdd6053 Signed-off-by: Maxime Méré <maxime.mere@foss.st.com>
show more ...
|
| 27dd11db | 02-Oct-2024 |
Maxime Méré <maxime.mere@foss.st.com> |
feat(stm32mp2): add BL31 device tree support
BL31 will need to access a device tree for several configurations (UART, GIC, OTP mapping...). Create a BL31 device tree (SOC_FW_CONFIG). It is loaded in
feat(stm32mp2): add BL31 device tree support
BL31 will need to access a device tree for several configurations (UART, GIC, OTP mapping...). Create a BL31 device tree (SOC_FW_CONFIG). It is loaded in DDR, in a spare area.
Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Signed-off-by: Maxime Méré <maxime.mere@foss.st.com> Change-Id: I320a05859e1aa3dd8db9a274e7201075a8c250c2
show more ...
|
| 9a0cad39 | 29-May-2024 |
Yann Gautier <yann.gautier@st.com> |
feat(stm32mp2): load FW binaries to DDR
Now that DDR is initialized, we can load the different firmware parts: BL32 (OP-TEE header), BL32 extra1 (OP-TEE), HW_CONFIG (U-Boot device tree) and BL33 (U
feat(stm32mp2): load FW binaries to DDR
Now that DDR is initialized, we can load the different firmware parts: BL32 (OP-TEE header), BL32 extra1 (OP-TEE), HW_CONFIG (U-Boot device tree) and BL33 (U-Boot).
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: Ic79429c3bd4516c339f91a10e0b3f2828bf6c392
show more ...
|
| 213a08eb | 01-Jun-2022 |
Nicolas Le Bayon <nicolas.le.bayon@st.com> |
feat(stm32mp2): enable DDR driver
Call stm32mp2_ddr_probe() function in platform setup. Move DDR systematic test file in common.mk.
Change-Id: I982abd33635a3222a52c967eac64676bc26b0d6b Signed-off-b
feat(stm32mp2): enable DDR driver
Call stm32mp2_ddr_probe() function in platform setup. Move DDR systematic test file in common.mk.
Change-Id: I982abd33635a3222a52c967eac64676bc26b0d6b Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com>
show more ...
|
| 79629b1a | 01-Jul-2021 |
Nicolas Le Bayon <nicolas.le.bayon@st.com> |
feat(st-ddr): add STM32MP2 driver
Add driver to support DDR on STM32MP2 platform. It drives the DDR PHY and its firmware, as well as the DDR controller.
Signed-off-by: Nicolas Le Bayon <nicolas.le.
feat(st-ddr): add STM32MP2 driver
Add driver to support DDR on STM32MP2 platform. It drives the DDR PHY and its firmware, as well as the DDR controller.
Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com> Signed-off-by: Maxime Méré <maxime.mere@foss.st.com> Change-Id: I93de2db1b9378d5654e76b3bf6f3407d80bc4ca5
show more ...
|
| 87cd847c | 24-Nov-2021 |
Yann Gautier <yann.gautier@st.com> |
feat(st): add stm32mp_is_wakeup_from_standby()
This function is used to know if this is a return from Standby mode, and the DDR was in self-refresh, allowing a correct return to OS. They just return
feat(st): add stm32mp_is_wakeup_from_standby()
This function is used to know if this is a return from Standby mode, and the DDR was in self-refresh, allowing a correct return to OS. They just return false for the moment.
Change-Id: Ie7de9a9f6477f8158e144f6626070a77fdc53ceb Signed-off-by: Yann Gautier <yann.gautier@st.com> Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com>
show more ...
|
| 52f530d3 | 19-Sep-2024 |
Maxime Méré <maxime.mere@foss.st.com> |
feat(stm32mp2): add RETRAM map/unmap capability
Add RETRAM base address and size definition at platform level. RETRAM is used by the DDR driver to store retention registers (DDR training results) in
feat(stm32mp2): add RETRAM map/unmap capability
Add RETRAM base address and size definition at platform level. RETRAM is used by the DDR driver to store retention registers (DDR training results) in order to restore them in standby exit sequence. Add map/unmap services at platform level and configure dedicated RISAB5.
Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com> Signed-off-by: Maxime Méré <maxime.mere@foss.st.com> Change-Id: I460b36fccce62e83c1fbff298f96b23530aaa4f3
show more ...
|
| 2fd7b230 | 21-Sep-2021 |
Nicolas Le Bayon <nicolas.le.bayon@st.com> |
feat(stm32mp2): add helper to get DDRDBG base address
Add a function to get DDRDBG peripheral IO memory base address.
Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com> Change-Id: I20d14fca4
feat(stm32mp2): add helper to get DDRDBG base address
Add a function to get DDRDBG peripheral IO memory base address.
Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com> Change-Id: I20d14fca49528c296c1f7d49a66129d932f44e49
show more ...
|
| e2d6e5e2 | 18-Jan-2023 |
Pascal Paillet <p.paillet@st.com> |
feat(stm32mp2): handle DDR power supplies
Modify platform driver to handle the DDR power supplies when a PMIC is present.
Signed-off-by: Pascal Paillet <p.paillet@st.com> Change-Id: I98df132a63c2ad
feat(stm32mp2): handle DDR power supplies
Modify platform driver to handle the DDR power supplies when a PMIC is present.
Signed-off-by: Pascal Paillet <p.paillet@st.com> Change-Id: I98df132a63c2ad351d4dae949f5dbb831cc40637
show more ...
|
| 47e62314 | 16-Feb-2023 |
Patrick Delaunay <patrick.delaunay@foss.st.com> |
feat(stm32mp1): handle DDR power supplies
Modify the DDR driver to handle the DDR power supplies when a PMIC is present in the function stm32mp_board_ddr_power_init(), define in the platform file.
feat(stm32mp1): handle DDR power supplies
Modify the DDR driver to handle the DDR power supplies when a PMIC is present in the function stm32mp_board_ddr_power_init(), define in the platform file.
This patch allows to easily modify the used DDR power supplies for customer boards, when they don't use STPMIC1 PMU or when the regulators are not connected as on the STMicroelectronics boards.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Change-Id: I93ee6295ef7032ac20f03608d22cd460f7d87ef5
show more ...
|
| cc3d73cc | 01-Oct-2024 |
Manish V Badarkhe <manish.badarkhe@arm.com> |
Merge changes I1df23bfa,Ibc85e30c into integration
* changes: fix(st): support device tree DDR sizes higher than 16Gbits for aarch64 feat(fdt-wrappers): add function to read uint64 with default
Merge changes I1df23bfa,Ibc85e30c into integration
* changes: fix(st): support device tree DDR sizes higher than 16Gbits for aarch64 feat(fdt-wrappers): add function to read uint64 with default value
show more ...
|
| 7ea6ebfb | 24-Sep-2024 |
Manish Pandey <manish.pandey2@arm.com> |
Merge changes I14df5d21,I7f952205,I6f52ec2c,Ibe0cacf8 into integration
* changes: feat(stm32mp2-fdts): describe stpmic2 power supplies feat(stm32mp2-fdts): add I2C7 pin muxing feat(stm32mp2-fd
Merge changes I14df5d21,I7f952205,I6f52ec2c,Ibe0cacf8 into integration
* changes: feat(stm32mp2-fdts): describe stpmic2 power supplies feat(stm32mp2-fdts): add I2C7 pin muxing feat(stm32mp2-fdts): add UART and I2C nodes for STM32MP2 feat(st-pmic): add STPMIC2 driver
show more ...
|
| 64e5a6df | 20-Sep-2024 |
Maxime Méré <maxime.mere@foss.st.com> |
feat(stm32mp2): improve BL31 size management
Change the size of BL31 limit allocation to be half the sysram size. Defining BL31_PROGBITS_LIMIT to detect overflows.
Signed-off-by: Maxime Méré <maxim
feat(stm32mp2): improve BL31 size management
Change the size of BL31 limit allocation to be half the sysram size. Defining BL31_PROGBITS_LIMIT to detect overflows.
Signed-off-by: Maxime Méré <maxime.mere@foss.st.com> Change-Id: Iccc1cc0826b8113a3c2fd6ffa77ca419795854d3
show more ...
|
| cd9c92cd | 04-May-2023 |
Nicolas Le Bayon <nicolas.le.bayon@st.com> |
fix(st): support device tree DDR sizes higher than 16Gbits for aarch64
In that case, memory address space is higher than 4GB, so 32-bits addressing is not enough. Get st,mem-size property value on 6
fix(st): support device tree DDR sizes higher than 16Gbits for aarch64
In that case, memory address space is higher than 4GB, so 32-bits addressing is not enough. Get st,mem-size property value on 64bits (size_t type in structures).
Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com> Signed-off-by: Maxime Méré <maxime.mere@foss.st.com> Change-Id: I1df23bfa7a850fc3f5a4ef9fc5d2f76ab6c6dea8
show more ...
|
| 817f42f0 | 16-Dec-2022 |
Pascal Paillet <p.paillet@st.com> |
feat(st-pmic): add STPMIC2 driver
The STPMIC2 embeds 15 regulators with various properties, and is designed to supply the STM32MP2 SOC. This driver handles a minimal set of feature to handle the boo
feat(st-pmic): add STPMIC2 driver
The STPMIC2 embeds 15 regulators with various properties, and is designed to supply the STM32MP2 SOC. This driver handles a minimal set of feature to handle the boot of a board.
Signed-off-by: Pascal Paillet <p.paillet@st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Signed-off-by: Maxime Méré <maxime.mere@foss.st.com> Change-Id: Ibe0cacf8aec2871eb9a86ec16cbbd18d3745fe9e
show more ...
|
| ae84525f | 13-Sep-2024 |
Maxime Méré <maxime.mere@foss.st.com> |
feat(stm32mp2): manage DDR FW via FIP
This feature is enabled by default using STM32MP_DDR_FIP_IO_STORAGE.
DDR firmware binary is loaded from FIP to SRAM1 which needs to be mapped. Only half of the
feat(stm32mp2): manage DDR FW via FIP
This feature is enabled by default using STM32MP_DDR_FIP_IO_STORAGE.
DDR firmware binary is loaded from FIP to SRAM1 which needs to be mapped. Only half of the SRAM1 will be allocated to TF-A. RISAB3 has to be configured to allow access to SRAM1. Add image ID and update maximum number on platform side also.
Fill related descriptor information, add policy and update numbers. DDR_TYPE variable is used to identify binary file, and image is now added in the fiptool command line.
The DDR PHY firmware is not in TF-A repository. It can be found at https://github.com/STMicroelectronics/stm32-ddr-phy-binary To ease the selection of the firmware path, STM32MP_DDR_FW_PATH is added to platform.mk file.
Change-Id: I09ab0a5c63406055a7b5ccd16d65e443de47ca2f Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com> Signed-off-by: Yann Gautier <yann.gautier@st.com> Signed-off-by: Maxime Méré <maxime.mere@foss.st.com>
show more ...
|