- Dec 10, 2021
-
-
Eberhard Stoll authored
-
Eberhard Stoll authored
-
Eberhard Stoll authored
-
Eberhard Stoll authored
-
Eberhard Stoll authored
Add dummy configuration to enable compile for this machine
-
- Mar 24, 2021
-
-
Yann Gautier authored
Add the boot device flag in the compilation command line. And add a comment about boot devices flags. Signed-off-by:
Yann Gautier <yann.gautier@foss.st.com> Change-Id: I105b8907e584d3fcb73aa740cd170ae10f067451 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/198703 Reviewed-by:
CITOOLS <MDG-smet-aci-reviews@list.st.com> Reviewed-by:
CIBUILD <MDG-smet-aci-builds@list.st.com> Reviewed-by:
Christophe KERELLO <christophe.kerello@st.com>
-
- Feb 24, 2021
-
-
Yann Gautier authored
Describe the boot using FIP, and how to compile it. The STM32IMAGE bootchain is still available but is no more recommended. Update the build command lines, for FIP. The memory mapping is also updated. Signed-off-by:
Yann Gautier <yann.gautier@foss.st.com> Change-Id: I2b1e0df5500b6213d33dc558b0e0da38340a4d79 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/194466 Reviewed-by:
CIBUILD <MDG-smet-aci-builds@list.st.com> Reviewed-by:
Lionel DEBIEVE <lionel.debieve@foss.st.com> Reviewed-by:
CITOOLS <MDG-smet-aci-reviews@list.st.com>
-
Yann Gautier authored
Add blank lines before lists and code example. Signed-off-by:
Yann Gautier <yann.gautier@foss.st.com> Change-Id: I901646e0be74227af983079d0cbe05c6a217fab6 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/194626 Reviewed-by:
CITOOLS <MDG-smet-aci-reviews@list.st.com> Reviewed-by:
CIBUILD <MDG-smet-aci-builds@list.st.com> Reviewed-by:
Lionel DEBIEVE <lionel.debieve@foss.st.com>
-
- Feb 11, 2021
-
-
Lionel Debieve authored
Add an external parameter STM32MP_FORCE_MTD_START_OFFSET that allows to override the default FIP offset or base 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 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/193647 Tested-by:
Lionel DEBIEVE <lionel.debieve@foss.st.com> Reviewed-by:
Lionel DEBIEVE <lionel.debieve@foss.st.com> Reviewed-by:
CITOOLS <MDG-smet-aci-reviews@list.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@foss.st.com>
-
Amelie Delaunay authored
PMIC ldo4 (vdd_usb 3v3) regulator is enabled in PMIC NVM for boot from USB. This regulator is used by the USB HS phy. There is a requirement in AN5031 [1] regarding this regulator: "VDD3V3_USBHS must not be present unless VDDA1V8_REG is present, otherwise permanent STM32MP15x lines damage could occur. Must be ensured by PMIC ranking order or with external component in case of discrete component power supply implementation". VDD3V3_USBHS is PMIC vdd_usb regulator, provided by LDO4. VDDA1V8_REG is PWR reg18 regulator. It means that vdd_usb must not be ON unless reg18 is ON. To follow this requirement and ensure vdd_usb will not be ON while reg18 OFF, disable ldo4 regulator. [1] https://www.st.com/resource/en/application_note/dm00389996-getting-started-with-stm32mp151-stm32mp153-and-stm32mp157-line-hardware-development-stmicroelectronics.pdf Change-Id: I31adcba720cdee8f2737635821c2273c4835edfb Signed-off-by:
Amelie Delaunay <amelie.delaunay@foss.st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/192905 Reviewed-by:
CITOOLS <MDG-smet-aci-reviews@list.st.com> Reviewed-by:
CIBUILD <MDG-smet-aci-builds@list.st.com> Reviewed-by:
Lionel DEBIEVE <lionel.debieve@foss.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@foss.st.com>
-
Yann Gautier authored
In DDR controller PWRTMG register, the mask for field SELFREF_TO_X32 is wrong. This field is from bit 16 to 23. Change-Id: Id336fb08c88f0a153df186dd819e41af72febb88 Signed-off-by:
Yann Gautier <yann.gautier@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/192783 Reviewed-by:
CITOOLS <MDG-smet-aci-reviews@list.st.com> Reviewed-by:
CIBUILD <MDG-smet-aci-builds@list.st.com> Reviewed-by:
Lionel DEBIEVE <lionel.debieve@st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@foss.st.com> Tested-by:
Yann GAUTIER <yann.gautier@foss.st.com>
-
Ross Burton authored
Don't depend on clean when building, as the user is capable of cleaning if required and this introduces a race where "all" depends on both the compile and the clean in parallel. It's quite possible for some of the compile to happen in parallel with the clean, which results in the link failing as objects just built are missing. Change-Id: I710711eea7483cafa13251c5d94ec693148bd001 Signed-off-by:
Ross Burton <ross.burton@arm.com>
-
Yann Gautier authored
To mask the time consumed waiting for CMPCR_READY bit, the function to enable IO compensation is split in 2, a start and a finish function. This is used at boot, and in return from STOP mode. Change-Id: Ic2b67c0e68415eb1abd3c7ba916b0fae21737235 Signed-off-by:
Yann Gautier <yann.gautier@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/188608 Reviewed-by:
CITOOLS <MDG-smet-aci-reviews@list.st.com> Reviewed-by:
CIBUILD <MDG-smet-aci-builds@list.st.com>
-
Yann Gautier authored
Cleanup the BL2 device tree file by removing the nodes for the devices that are not used to boot, depending on compilation flags. In SDMMC boot, the gain for the dtb file is about 2.3kB. Change-Id: I3ba13e06dd22b52cff96f51db2dac94b532c81ae Signed-off-by:
Yann Gautier <yann.gautier@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/188778 Reviewed-by:
CITOOLS <MDG-smet-aci-reviews@list.st.com> Reviewed-by:
CIBUILD <MDG-smet-aci-builds@list.st.com> Reviewed-by:
Lionel DEBIEVE <lionel.debieve@st.com> Tested-by:
Lionel DEBIEVE <lionel.debieve@st.com>
-
Nicolas Toromanoff authored
Correct the warning due to compare signed and non signed variable. Signed-off-by:
Nicolas Toromanoff <nicolas.toromanoff@st.com> Change-Id: Ic12527f5f92a34e925bee3047c168eacf5e99d8a Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/189410 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Lionel DEBIEVE <lionel.debieve@st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com>
-
Lionel Debieve authored
In case of external SDK management, we must be able to specify a library path for OPENSSL libraries. By removing the default path set to /usr, we can select a OPENSSL_DIR path from the command line. Add the libpthread dependency because openssl is linked to this library. The libpthread includes some specific options that needs to be aligned to the openssl library used. Signed-off-by:
Lionel Debieve <lionel.debieve@st.com> Change-Id: Ic81b2e7a827e3ce6794b40aa6c902adf076b977c Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/189679 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
CIBUILD <smet-aci-builds@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com>
-
Lionel Debieve authored
Because the BL2 is not relocated, the usage of BL2_IN_XIP_MEM can be used. It reduces the binary size by removing all relocation sections. XIP will not be used when STM32MP_USE_STM32IMAGE is defined. Signed-off-by:
Lionel Debieve <lionel.debieve@st.com> Change-Id: Ifd76f14e5bc98990bf84e0bfd4ee0b4e49a9a293 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/189597 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com>
-
Yann Gautier authored
If the DDR is not in self-refresh, the PWR DDR retention bits should be cleared, whatever the status of PWR_CR3_DDRRETEN. This can happen in case of STANDBY with DDR of, if the DDR has not been set in Self Refresh. Change-Id: If8854b06ad4d2a8d0bf6e227c411efcdcd4b004a Signed-off-by:
Yann Gautier <yann.gautier@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/188935 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
CIBUILD <smet-aci-builds@lists.codex.cro.st.com> Reviewed-by:
Sebastien PASDELOUP <sebastien.pasdeloup-ext@st.com>
-
Lionel Debieve authored
Increase the max device tree size to 28KB to build it with the TRUSTED_BOARD_BOOT defined nodes. Signed-off-by:
Lionel Debieve <lionel.debieve@st.com> Change-Id: I0b48f9085a6ad9c1494eb162de3ad17c124fd8fb Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/188765 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com>
-
Yann Gautier authored
The STM32MP_USB_PROGRAMMER and STM32MP_UART_PROGRAMMER flags are no more used when compiling BL32. The services STM32_SMC_READ_ALL and STM32_SMC_WRITE_ALL should then be always present in the code. They can only be used when booting from serial device, so a dedicated check is added. This adds 1.6kB of code. Change-Id: Ib6ac227a0b451d26b454fef42310665fada90a34 Signed-off-by:
Yann Gautier <yann.gautier@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/188321 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Lionel DEBIEVE <lionel.debieve@st.com>
-
Yann Gautier authored
This function will return true if the platform has booted from UART or USB, false if it booted from a storage device. Change-Id: I427f87cb3005c337b878430d2d484fb43236d5ea Signed-off-by:
Yann Gautier <yann.gautier@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/188655 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Sebastien PASDELOUP <sebastien.pasdeloup-ext@st.com> Tested-by:
Sebastien PASDELOUP <sebastien.pasdeloup-ext@st.com>
-
Yann Gautier authored
Those functions are not directly linked to context, used for low-power states. They are moved to stm32mp1_private.c file. Change-Id: Id4b164aa078077fcf90557bedc2f14c4969fe5da Signed-off-by:
Yann Gautier <yann.gautier@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/188654 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
CIBUILD <smet-aci-builds@lists.codex.cro.st.com> Reviewed-by:
Lionel DEBIEVE <lionel.debieve@st.com> Tested-by:
Lionel DEBIEVE <lionel.debieve@st.com>
-
Lionel Debieve authored
In case of SP_MIN in DDR, the wrapper in BL2 uses the iwdg clock for a watchdog refresh. Because it uses the BL2 stacks, the clock counter is not correct and the watchdog clocks are not properly restored. Signed-off-by:
Lionel Debieve <lionel.debieve@st.com> Change-Id: Iede2c00de80d0031b178d897c5e14fe47a7dad6d Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/188651 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
CIBUILD <smet-aci-builds@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com>
-
Lionel Debieve authored
Change the MCKPROT control management. Now, the MCU subsystem is done in the BL32 using the dedicated clock function. Signed-off-by:
Lionel Debieve <lionel.debieve@st.com> Change-Id: I59f90ace750aa93f674389f881e2fe14ad334a72 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/188431 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Gabriel FERNANDEZ <gabriel.fernandez@st.com> Reviewed-by:
Etienne CARRIERE <etienne.carriere@st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com>
-
Lionel Debieve authored
Add a new function to control the MCU subsystem security state. Signed-off-by:
Lionel Debieve <lionel.debieve@st.com> Change-Id: I070eec06fc93a1214227f25a6a4f1c40c66c86b0 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/188430 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Gabriel FERNANDEZ <gabriel.fernandez@st.com> Reviewed-by:
Etienne CARRIERE <etienne.carriere@st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com>
-
Lionel Debieve authored
From the new binding, the RCC become secured based on the new compatible. This must be done only from the secure OS initialisation. Signed-off-by:
Lionel Debieve <lionel.debieve@st.com> Change-Id: I7f0a62f22bfcca638ddaefc9563df00f89f01653 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/188398 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
CIBUILD <smet-aci-builds@lists.codex.cro.st.com> Reviewed-by:
Gabriel FERNANDEZ <gabriel.fernandez@st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com> Reviewed-by:
Etienne CARRIERE <etienne.carriere@st.com>
-
Yann Gautier authored
STM32MP_UART_PROGRAMMER is no more used when compiling BL32 (SP_min). The boot interface should then be unconditionally checked when setting the UART console. This adds 160 bytes of code. Change-Id: I54dfa85ea1cb3c6e74a6dc35f13730f26bc904f0 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/188320 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Lionel DEBIEVE <lionel.debieve@st.com> Reviewed-by:
CIBUILD <smet-aci-builds@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com> Tested-by:
Yann GAUTIER <yann.gautier@st.com>
-
Yann Gautier authored
In stm32_get_boot_interface(), there is no need to read the backup register in which the boot interface and instance is saved. It can be saved in a static variable. It will save time if it is used several times. Change-Id: Ida5cbfeb9449d92bdb4f725eb6f6f1c4704282fe Signed-off-by:
Yann Gautier <yann.gautier@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/188319 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
CIBUILD <smet-aci-builds@lists.codex.cro.st.com> Reviewed-by:
Lionel DEBIEVE <lionel.debieve@st.com>
-
Lionel Debieve authored
Add a "nofip" suffix to indicate that the current build is not supporting the FIP package. It will be useful for debug purpose. Signed-off-by:
Lionel Debieve <lionel.debieve@st.com> Change-Id: I96950374ce7010348b246a814b36b871cf5bca44 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/188269 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com> Reviewed-by:
CIBUILD <smet-aci-builds@lists.codex.cro.st.com>
-
Yann Gautier authored
The base address of UART peripheral should be given in R0, not in R1. Else the console_stm32_core_flush issues an assert messages due to recent changes in console flush functions. Change-Id: Iead01986fdbbf30ad2fd9fa515a1d2b611b4e591 Signed-off-by:
Yann Gautier <yann.gautier@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/187619 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
CIBUILD <smet-aci-builds@lists.codex.cro.st.com> Reviewed-by:
Lionel DEBIEVE <lionel.debieve@st.com>
-
Lionel Debieve authored
Align device tree with the last kernel 5.10. Add some compatible changes and pin control modifications. Signed-off-by:
Lionel Debieve <lionel.debieve@st.com> Change-Id: I03be4704463750227a220b256f386687f0eec058 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/188174 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
CIBUILD <smet-aci-builds@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com>
-
Nicolas Le Bayon authored
Add read/write functions for BSEC scratch register, used for communication with external agent, and to store boot parameters. Change-Id: If024bcce127c829d8a663df0119f0e908712405e Signed-off-by:
Nicolas Le Bayon <nicolas.le.bayon@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/187860 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com>
-
Nicolas Le Bayon authored
Checking written value is useless, as local variables. Set function type to void. Change-Id: I5ecad094c2c91a2d5a233addbaba5f76c70eab20 Signed-off-by:
Nicolas Le Bayon <nicolas.le.bayon@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/187859 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com>
-
Nicolas Le Bayon authored
No more return code check of bsec_write_debug_conf(). This function will be updated as void function. Change-Id: I8ace57faaf911acfa65e402295b6e3605fe81ea9 Signed-off-by:
Nicolas Le Bayon <nicolas.le.bayon@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/187858 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com>
-
Nicolas Le Bayon authored
Remove unused bsec_read/write_feature_conf() prototypes. Change-Id: I7c99319ada288b93cea6eedf272c09f441249256 Signed-off-by:
Nicolas Le Bayon <nicolas.le.bayon@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/187857 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
CIBUILD <smet-aci-builds@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com>
-
Ludovic Barre authored
This patch allows to execute bl33 in hypervisor mode if BL33_HYP compilation flag is defined. Change-Id: Icd0de8e9a8180f2ca67952bd6b98f38712e52716 Signed-off-by:
Ludovic Barre <ludovic.barre@st.com> Signed-off-by:
Sebastien Pasdeloup <sebastien.pasdeloup-ext@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/187471 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
CIBUILD <smet-aci-builds@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com> Tested-by:
Yann GAUTIER <yann.gautier@st.com>
-
Lionel Debieve authored
This patch adds changes to support the secure secret provisioning (SSP). Add a specific platform build that constructs a dedicated BL2 image to support the SSP feature. Supported boot mode is limited to serial boot (USB or UART). Signed-off-by:
Lionel Debieve <lionel.debieve@st.com> Change-Id: I85de08efd8d4183cd7e1bc0b6f17d247669b82ce Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/185336 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
CIBUILD <smet-aci-builds@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com>
-
Lionel Debieve authored
Rather that a CPU reset, tamper must call the system reset to restart from a clean environment. Signed-off-by:
Lionel Debieve <lionel.debieve@st.com> Change-Id: I5c5482e4473078283783ad04f202c70b561b27ee Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/186543 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com>
-
Lionel Debieve authored
Enable watchdog secure interrupt to dump registers in case of non secure watchdog. Signed-off-by:
Lionel Debieve <lionel.debieve@st.com> Change-Id: Icc9c32125af389df01215687ca915ea67023cda3 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/186542 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com>
-
Lionel Debieve authored
Rework the early interrupt to dump core registers in debug mode. In release mode, it will clear the interrupt and wait watchdog to expire. Signed-off-by:
Lionel Debieve <lionel.debieve@st.com> Change-Id: I0b690d30f5b52b6fc708fe440b1c15bd3b3f341d Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/186541 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com>
-