- Jan 13, 2021
-
-
Yann Gautier authored
If an image was not loaded due to its SKIP_LOAD attribute, there is no reason to post process the image. This change ensures only loaded images get post processed. Change-Id: Ib9f84f0f1dd7e811ec400fa999c84a15dd9b6297 Signed-off-by:
Etienne Carriere <etienne.carriere@st.com> Signed-off-by:
Yann Gautier <yann.gautier@st.com>
-
Yann Gautier authored
The new helpers are created in STM32MP1 platform for undefined instructions, prefetch and data aborts. Change-Id: Ibe989b28e236693f317cffb0545ea0611b7bdde4 Signed-off-by:
Yann Gautier <yann.gautier@st.com>
-
Yann Gautier authored
New helper functions are created to handle undefined instructions, data & prefetch aborts in AARCH32. They call platform functions, just like what report_exception is doing. Those new helpers are created mainly to distinguish data and prefetch aborts, as they both share the same mode. Change-Id: I5dd31930344ad4e3a658f8a9d366a87a300aeb67 Signed-off-by:
Yann Gautier <yann.gautier@st.com>
-
Yann Gautier authored
For an easier debug on Aarch32, in case of abort, it is useful to access DFSR, IFSR, DFAR and IFAR CP15 registers. Change-Id: Ie6b5a2882cd701f76e9d455ec43bd4b0fbe3cc78 Signed-off-by:
Yann Gautier <yann.gautier@st.com>
-
Lionel Debieve authored
Use bsec_find_otp_name_in_dt() to retrieve platform OTP information from device tree, directly or through stm32_get_otp_index() and stm32_get_otp_value() platform services. String definitions replace hard-coded values, they are used to call this new function. Change-Id: I81213e4a9ad08fddadc2c97b064ae057a4c79561 Signed-off-by:
Nicolas Le Bayon <nicolas.le.bayon@st.com> Signed-off-by:
Yann Gautier <yann.gautier@st.com>
-
Nicolas Le Bayon authored
Set non-secure property on platform secure OTP nodes that non-secure world is allowed to access through secure world services. These are the SoC MAC address and the ST boards board_id OTPs. Change-Id: Idfa6322d9d5c35285706d0b2d32ae09af38684a7 Signed-off-by:
Nicolas Le Bayon <nicolas.le.bayon@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/138264 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>
-
Yann Gautier authored
Rename driver file to BSEC2. Split header file in IP and feature parts. Several corrections and improvements. Change-Id: I1981536398d598d67a19d2d7766dacc18de72ec1 Signed-off-by:
Nicolas Le Bayon <nicolas.le.bayon@st.com> Signed-off-by:
Yann Gautier <yann.gautier@st.com>
-
Yann Gautier authored
A new nvmem_layout node includes nvmem platform-dependent layout information, such as OTP NVMEM cell lists (phandle, name). This list allows easy access to OTP offsets defined in BSEC node, where more OTP definitions with offsets in bytes and length have been added (replace hard-coded values). Each board may redefine this list, especially for board_id info. Change-Id: I910ae671b3bf3320ee6500fecc9ec335ae67bbda Signed-off-by:
Nicolas Le Bayon <nicolas.le.bayon@st.com> Signed-off-by:
Yann Gautier <yann.gautier@st.com>
-
Nicolas Le Bayon authored
Used by driver parsing this node to get information. Change-Id: I50623a497157adf7b9da6fafe8d79f6ff58c0ebc Signed-off-by:
Nicolas Le Bayon <nicolas.le.bayon@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/138267 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>
-
Yann Gautier authored
The monotonic counter is stored in an OTP fuse. A check is done in TF-A. If the TF-A version is incremented, then the counter will be updated in the corresponding OTP. Change-Id: I6e7831300ca9efbb35b4c87706f2dcab35affacb Signed-off-by:
Yann Gautier <yann.gautier@st.com> Signed-off-by:
Mathieu Belou <mathieu.belou@st.com>
-
Yann Gautier authored
TZC400 is configured to raise an interrupt in case of faulty access. Call the new added tzc400_it_handler, in case this interrupt fires. Change-Id: Iaf4fa408a8eff99498042e11e2d6177bad39868c Signed-off-by:
Yann Gautier <yann.gautier@st.com>
-
Yann Gautier authored
Change-Id: Ie9ab1c199a8f12b2c9472d7120efbdf35711284a Signed-off-by:
Yann Gautier <yann.gautier@st.com>
-
Yann Gautier authored
When bit 20 of TZC400 Fail control register is set to 1, it means Privileged access, the macros FAIL_CONTROL_PRIV_PRIV and FAIL_CONTROL_PRIV_UNPRIV are then updated to reflect this. Change-Id: I01e522fded5cf66c9827293ddcf543c79f9e509e Signed-off-by:
Yann Gautier <yann.gautier@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/183494 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>
-
Nicolas Le Bayon authored
Add parameters to fill header version: Two new options are added (m and n) to fill header version major and minor. The default is v1.0 (major = 1, minor = 0) Fix image header on big endian hosts: Three header fields are not properly converted to little endian before assignment, resulting in incorrect header while executing stm32image on big endian hosts. Convert the value of the header fields version_number, image_checksum and edcsa_algorithm to little endian before the assignment. Don't force the base of strtol, since it's able to select the base automatically depending on the prefix of the value. This does not breaks the current build script that extracts the addresses, including the 0x prefix, from the map file. This change helps using stm32image in shell scripts where the addresses can be computed using the shell arithmetic expansion "$((...))", that produces a value in base decimal. The variable stm32image_header is declared with global visibility but is use in one function only, move it as local variable in the function. Fix error message on destination file: The error message on mmap() failure of destination file reports incorrectly information about the source file. Change the error message to match the file that causes the error. Change-Id: Iebc8c915297306845b3847b32f9516443a515c97 Signed-off-by:
Yann Gautier <yann.gautier@st.com> Signed-off-by:
Antonio Borneo <antonio.borneo@st.com>
-
Yann Gautier authored
This is no more tested at the moment, and may require some adaptations. Change-Id: I322cb638f52f7967e39cd8871da3f45ad6e50d23 Signed-off-by:
Yann Gautier <yann.gautier@st.com>
-
Nicolas Le Bayon authored
Add function headers to improve readability. Change-Id: Ia545293f00167b6276331a986ea7aa08c006e004 Signed-off-by:
Nicolas Le Bayon <nicolas.le.bayon@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/142983 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>
-
Patrick Delaunay authored
Support "disabled" status for oscillator. At boot time, the clock tree initialization performs the following tasks: - enabling of the oscillators present in the device tree and not disabled, - disabling of the HSI oscillator if the node is absent or disabled (always activated by bootROM). Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Change-Id: I176276022334f3d97ba0250b54062f0ae970e239 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/137347 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
CIBUILD <smet-aci-builds@lists.codex.cro.st.com> Reviewed-by:
Nicolas LE BAYON <nicolas.le.bayon@st.com> Reviewed-by:
Lionel DEBIEVE <lionel.debieve@st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com> Tested-by:
Yann GAUTIER <yann.gautier@st.com>
-
Yann Gautier authored
Only BL32 (SP_min) is supported at the moment, BL1 and BL2_AT_EL3 are just stubbed with _pie_fixup_size=0. The changes are an adaptation for AARCH32 on what has been done for AARCH64. The RELA_SECTION is redefined for AARCH32, as the created section is .rel.dyn and the symbols are .rel*. In BL32 linker script, .dynsym .dynstr .hash .gnu.hash are discarded. And no more used __BSS_SIZE__ and __COHERENT_RAM_UNALIGNED_SIZE__ symbols are removed. Change-Id: I92bafe70e6b77735f6f890f32f2b637b98cf01b9 Signed-off-by:
Yann Gautier <yann.gautier@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/175515 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Lionel DEBIEVE <lionel.debieve@st.com>
-
- Dec 02, 2020
-
-
Yann Gautier authored
The use of end addresses is preferred over the size for BSS, coherent memory, and data RAM. As for AARCH64, it will help introducing PIE support for AARCH32. More explanations in commit: f1722b69. Change-Id: I8f1c06580182b10c680310850f72904e58a54d7d Signed-off-by:
Yann Gautier <yann.gautier@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/175514 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Lionel DEBIEVE <lionel.debieve@st.com>
-
Yann Gautier authored
Relax the 80 character line length, as done in checkpatch, since Linux 5.7. Change-Id: I093a2e6a45336339193173f7ff6a461279cf411d Signed-off-by:
Yann Gautier <yann.gautier@st.com>
-
Patrick Delaunay authored
Handle boot from UART with STM32CubeProgammer with mmap io. Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Change-Id: Ibd719dd46a11da78633728675ef6639635b6cf67 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/180874 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com> Tested-by:
Yann GAUTIER <yann.gautier@st.com>
-
Yann Gautier authored
Add a file to support the tool STM32CubeProgrammer over UART in BL2 for stm32mp15x platform Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Change-Id: I956c95d8de0a94d1eb8e61f043651dae7b838170 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/180873 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com> Tested-by:
Yann GAUTIER <yann.gautier@st.com>
-
- Nov 26, 2020
-
-
Patrick Delaunay authored
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 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/180872 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com> Tested-by:
Yann GAUTIER <yann.gautier@st.com>
-
Patrick Delaunay authored
Add a new function setup_uart_console for UART console initialization using device tree information to simplify sp_min_early_platform_setup(). Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Change-Id: I455b43b105a804590297572a977bc242a526df17 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/180871 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com> Tested-by:
Yann GAUTIER <yann.gautier@st.com>
-
Patrick Delaunay authored
Add function stm32_get_boot_interface to get the current boot interface from information saved in the TAMP register. Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Change-Id: I6e99fe172d895fd9d8dcb8d827b949d0e89b7879 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/180870 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com> Tested-by:
Yann GAUTIER <yann.gautier@st.com>
-
Patrick Delaunay authored
Add a platform function to get address from UART instance. Change-Id: Iecf052d219788664843bf1f3120964c92d4d85de Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/180869 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com> Tested-by:
Yann GAUTIER <yann.gautier@st.com>
-
Patrick Delaunay authored
Add a compilation flag to support of STM32CubeProgrammer on UART. Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Change-Id: I8a6988bddaf9aad6f297c865439c7daae0e64205 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/180865 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com> Tested-by:
Yann GAUTIER <yann.gautier@st.com>
-
Nicolas Le Bayon authored
Add driver for STM32 UART/USART. Change-Id: Ia9266e5d177fe7fd09c8a15b81da1a05b1bc8b2d Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Signed-off-by:
Nicolas Le Bayon <nicolas.le.bayon@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/180868 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com> Tested-by:
Yann GAUTIER <yann.gautier@st.com>
-
Patrick Delaunay authored
Change fdt_get_rcc_node as static, cometic change, no functionnal change. Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Change-Id: Ib4ef110f6f1b16dbaa727a065e40275d3cf58a73 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/180867 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com> Tested-by:
Yann GAUTIER <yann.gautier@st.com>
-
Patrick Delaunay authored
Add support of UART clock in STM32 clk driver. Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Change-Id: I00b402c7879ce9151d5b0625dd55f900ede3f243 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/180866 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com> Tested-by:
Yann GAUTIER <yann.gautier@st.com>
-
Patrick Delaunay authored
The PLL4 can be use by ROM code as source clock of USB PHYC In this case the PLL4 configuration must be preserved. This patch add a error when the PLL4 configuration change during the clock tree initialization. Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Change-Id: I4bae9312a2db8dd342a38e649513d689b13976bb Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/177379 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com> Tested-by:
Yann GAUTIER <yann.gautier@st.com>
-
Patrick Delaunay authored
Add a new function to get the current boot device. Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Change-Id: Icd900e9d737c64034df8c5db7f59970f54373934 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/177378 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com> Tested-by:
Yann GAUTIER <yann.gautier@st.com>
-
Yann Gautier authored
Read uid from OTP to generate an uniq usb device id for dfu identification Signed-off-by:
Lionel Debieve <lionel.debieve@st.com> Reviewed-on: https://gerrit.st.com/81294 Change-Id: I75000bc75cea68c293ea77aa51bdf1e2b181e966 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/177376 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com> Tested-by:
Yann GAUTIER <yann.gautier@st.com>
-
Patrick Delaunay authored
Handle boot from USB with DFU and STM32CubeProgammer with mmap io. Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Change-Id: I6fa7e46c52dcbb5e5ccd162c26eed16cd1e148a7 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/177375 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com> Tested-by:
Yann GAUTIER <yann.gautier@st.com>
-
Patrick Delaunay authored
Add a generic function to setup the stm32image IO. Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Change-Id: I0f7cf4a6030605037643f3119b809e0319d926af Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/178829 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com> Tested-by:
Yann GAUTIER <yann.gautier@st.com>
-
Patrick Delaunay authored
Add a file to support the tool STM32CubeProgrammer over USB in BL2 for stm32mp15x platform Change-Id: I48a8f772cb0e9b8be24c06847f724f0470c0f917 Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/177374 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com> Tested-by:
Yann GAUTIER <yann.gautier@st.com>
-
Patrick Delaunay authored
Add the struct used for USB enumeration with the function usb_dfu_plat_init(). Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Change-Id: I18b40649e8df83813a5a340b0eee44c9a3470e43 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/177372 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com> Tested-by:
Yann GAUTIER <yann.gautier@st.com>
-
Yann Gautier authored
A new helper function stm32mp_get_chip_version() to get the chip revision. It avoids calling directly the DBGMCU function. Change-Id: I2af7c155cdea5d824c35cbb8d2617212b7f4d051 Signed-off-by:
Yann Gautier <yann.gautier@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/183154 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com>
-
Patrick Delaunay authored
Add STM32MP1_CHIP_ID define used to identify the STM32MP15x SOC. Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Change-Id: I6085577fde3606b87d55fc35533c41d3b12b877d Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/177371 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com> Tested-by:
Yann GAUTIER <yann.gautier@st.com>
-
Patrick Delaunay authored
Add a helper function to get the name of the SOC. Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Change-Id: I321c8a9000f992869228f9099643093129ffd2cf Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/177370 Reviewed-by:
CITOOLS <smet-aci-reviews@lists.codex.cro.st.com> Reviewed-by:
Yann GAUTIER <yann.gautier@st.com> Tested-by:
Yann GAUTIER <yann.gautier@st.com>
-