| 10fb0d97 | 12-Dec-2022 |
Gatien Chevallier <gatien.chevallier@foss.st.com> |
drivers: stm32_bsec: use DT NVMEM layout API
Uses OTP definition in the device tree, by using the function stm32_bsec_find_otp_in_nvmem_layout() and removes the hardcoded OTP index in platform confi
drivers: stm32_bsec: use DT NVMEM layout API
Uses OTP definition in the device tree, by using the function stm32_bsec_find_otp_in_nvmem_layout() and removes the hardcoded OTP index in platform config.
Signed-off-by: Lionel Debieve <lionel.debieve@foss.st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| f8ac26a9 | 06-Jan-2023 |
Gatien Chevallier <gatien.chevallier@foss.st.com> |
ci: remove duplicate build for STM32MP157C-DK2
If no CFG_EMBED_DTB_SOURCE_FILE is specified, it is now defaulted to stm32mp157c-dk2.dts. Therefore, make PLATFORM=stm32mp1 builds OP-TEE for STM32MP15
ci: remove duplicate build for STM32MP157C-DK2
If no CFG_EMBED_DTB_SOURCE_FILE is specified, it is now defaulted to stm32mp157c-dk2.dts. Therefore, make PLATFORM=stm32mp1 builds OP-TEE for STM32MP157C-DK2 platform.
Removes duplicated build.
Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 474ad185 | 06-Jan-2023 |
Gatien Chevallier <gatien.chevallier@foss.st.com> |
plat-stm32mp1: conf: mandate the use of device tree on STM32MP1x platforms
STM32MP1x platforms now mandate an embedded device tree using CFG_EMBED_DTB_SOURCE_FILE. This decision simplifies platform
plat-stm32mp1: conf: mandate the use of device tree on STM32MP1x platforms
STM32MP1x platforms now mandate an embedded device tree using CFG_EMBED_DTB_SOURCE_FILE. This decision simplifies platform configuration and complies with existing flavors that all define an embedded DT. This change makes stm32mp157c-dk2.dts the default embedded DTB when none is set.
Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 84983a85 | 09-Jan-2023 |
Etienne Carriere <etienne.carriere@linaro.org> |
libutils: change assert() to conform with stdlib implementation
Changes assert() definition to return a (dummy) value when expression to true. This change allows to integrate external libraries whic
libutils: change assert() to conform with stdlib implementation
Changes assert() definition to return a (dummy) value when expression to true. This change allows to integrate external libraries which assume assert() conforms to such implementation, as found in GCC or LLVM toolchains.
Removes inline description comment that could be confusing.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 0ec45216 | 12-Dec-2022 |
Gatien Chevallier <gatien.chevallier@foss.st.com> |
drivers: stm32_bsec: st,non-secure-otp-provisioning property
Implementation of a new "st,non-secure-provisioning-otp" property, destined for non-secure OTP access with restrictions. At BSEC initiali
drivers: stm32_bsec: st,non-secure-otp-provisioning property
Implementation of a new "st,non-secure-provisioning-otp" property, destined for non-secure OTP access with restrictions. At BSEC initialization, OTPs defined with this property will grant their access to non-secure world only if the fuses are not permanently locked.
Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 7cb0cbba | 06-Jan-2023 |
Gatien Chevallier <gatien.chevallier@foss.st.com> |
drivers: stm32mp15_huk: fix use of stm32mp_is_closed_device()
This function is no more defined because it was superseded by BSEC driver API function stm32_bsec_get_state().
Implements use of the ne
drivers: stm32mp15_huk: fix use of stm32mp_is_closed_device()
This function is no more defined because it was superseded by BSEC driver API function stm32_bsec_get_state().
Implements use of the new API.
Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 683b6d2c | 03-Jan-2023 |
Marouene Boubakri <marouene.boubakri@nxp.com> |
core: kernel: move otp_stubs.c to core/kernel
otp_stubs.c is architecture-agnostic, therefore, move it from core/arch/arm/kernel to core/kernel.
Signed-off-by: Marouene Boubakri <marouene.boubakri@
core: kernel: move otp_stubs.c to core/kernel
otp_stubs.c is architecture-agnostic, therefore, move it from core/arch/arm/kernel to core/kernel.
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| d1c0af7d | 30-Dec-2022 |
Marouene Boubakri <marouene.boubakri@nxp.com> |
core: riscv.mk: disable unsupported configuration flags
Features which are not supported, or, specific to other architectures are disabled.
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.c
core: riscv.mk: disable unsupported configuration flags
Features which are not supported, or, specific to other architectures are disabled.
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| e2f6d2fb | 30-Dec-2022 |
Marouene Boubakri <marouene.boubakri@nxp.com> |
core: riscv: add plat-virt
Add Qemu Virt RISC-V platform. Reference: https://www.qemu.org/docs/master/system/riscv/virt.html
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Acked-by: J
core: riscv: add plat-virt
Add Qemu Virt RISC-V platform. Reference: https://www.qemu.org/docs/master/system/riscv/virt.html
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 8d6c1b18 | 05-Jan-2023 |
Etienne Carriere <etienne.carriere@linaro.org> |
plat-stm32mp1: restore BSEC SIP services on STM32MP15
U-Boot and Linux kernel use BSEC OP-TEE services on STM32MP15 but do not yet integrate BSEC PTA drivers for OTP accesses and still rely on OP-TE
plat-stm32mp1: restore BSEC SIP services on STM32MP15
U-Boot and Linux kernel use BSEC OP-TEE services on STM32MP15 but do not yet integrate BSEC PTA drivers for OTP accesses and still rely on OP-TEE BSEC SMC SiP service. Therefore restore the service for STM32MP15 platform flavors. The service will be default disabled once U-Boot and Linux kernel are ready.
Fixes: eab9487631cc ("plat-stm32mp1: deprecate BSEC SIP services") Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 0042538e | 05-Jan-2023 |
Etienne Carriere <etienne.carriere@linaro.org> |
plat-stm32mp1: fix visibility of stm32_bsec_shadow_register()
Makes stm32_bsec_shadow_register() function a visible driver API function as it is needed when CFG_STM32_BSEC_SIP is enabled. Fixed comm
plat-stm32mp1: fix visibility of stm32_bsec_shadow_register()
Makes stm32_bsec_shadow_register() function a visible driver API function as it is needed when CFG_STM32_BSEC_SIP is enabled. Fixed commit made it a local function which was wrong.
Fixes: a638030bce84 ("drivers: stm32_bsec: remove unused functions") Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| b7c495e0 | 01-Dec-2022 |
Marouene Boubakri <marouene.boubakri@nxp.com> |
core: riscv: provide delay_arch.h
Implement timeout_init_us() and timeout_elapsed().
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Reviewed-by: Jerome Forissier <jerome.forissier@lin
core: riscv: provide delay_arch.h
Implement timeout_init_us() and timeout_elapsed().
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| c67c4c8d | 01-Dec-2022 |
Marouene Boubakri <marouene.boubakri@nxp.com> |
core: kernel: delay: sort-out architecture-independant code from arch dir
This commit moves core/arch/arm/kernel/delay.c to core/kernel/delay.c. Keeps architecture-dependant code in core/arch/$ARCH/
core: kernel: delay: sort-out architecture-independant code from arch dir
This commit moves core/arch/arm/kernel/delay.c to core/kernel/delay.c. Keeps architecture-dependant code in core/arch/$ARCH/include/kernel/delay_arch.h and moves generic functions to core/include/kernel/delay.h
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 6454758b | 01-Dec-2022 |
Marouene Boubakri <marouene.boubakri@nxp.com> |
core: riscv: add time source based on time registers
Implement a TEE time source based on CSR_TIME and CSR_HTIME for S-Mode and CLINT MTIME register for M-Mode. CFG_RISCV_TIME_SOURCE_RDTIME flag to
core: riscv: add time source based on time registers
Implement a TEE time source based on CSR_TIME and CSR_HTIME for S-Mode and CLINT MTIME register for M-Mode. CFG_RISCV_TIME_SOURCE_RDTIME flag to enable or not building the time source. CFG_RISCV_MTIME_RATE defines the timer rate, default to 10MHz.
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 14c0df4e | 01-Dec-2022 |
Marouene Boubakri <marouene.boubakri@nxp.com> |
core: move tee_time.c and tee_time_ree.c to core/kernel
tee_time.c and tee_time_ree.c are architecture-independant code therefore move them from core/arch/arm/kernel to core/kernel.
Signed-off-by:
core: move tee_time.c and tee_time_ree.c to core/kernel
tee_time.c and tee_time_ree.c are architecture-independant code therefore move them from core/arch/arm/kernel to core/kernel.
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| d26e3419 | 01-Dec-2022 |
Marouene Boubakri <marouene.boubakri@nxp.com> |
core: riscv: provide <kernel/time.h>
Add read_time() function to get time based on CSR_TIME and CSR_HTIME registers for S-Mode and CLINT MTIME register for M-Mode.
Signed-off-by: Marouene Boubakri
core: riscv: provide <kernel/time.h>
Add read_time() function to get time based on CSR_TIME and CSR_HTIME registers for S-Mode and CLINT MTIME register for M-Mode.
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 380907c9 | 01-Dec-2022 |
Marouene Boubakri <marouene.boubakri@nxp.com> |
core: riscv: implement core local interruptor (clint) driver
An initial implementation of RISC-V CLINT driver with MTIMER device to provide machine-level timer functionality.
Signed-off-by: Marouen
core: riscv: implement core local interruptor (clint) driver
An initial implementation of RISC-V CLINT driver with MTIMER device to provide machine-level timer functionality.
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 664463b3 | 27-Dec-2022 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: use SM3 crypto accelerated function
Uses the recently provided accelerated SM3 function in the SM3 implementation.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens
core: use SM3 crypto accelerated function
Uses the recently provided accelerated SM3 function in the SM3 implementation.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 99264db3 | 27-Dec-2022 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: arm64: SM3 using ARMv8.2-A cryptographic extensions
Import SM3 assembly code from the Linux kernel (Linaro contribution). Enabled with CFG_CRYPTO_SM3_ARM64_CE=y, set by default if CFG_CRYPTO_W
core: arm64: SM3 using ARMv8.2-A cryptographic extensions
Import SM3 assembly code from the Linux kernel (Linaro contribution). Enabled with CFG_CRYPTO_SM3_ARM64_CE=y, set by default if CFG_CRYPTO_WITH_CE82=y.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| fb3171a7 | 23-Dec-2022 |
Jens Wiklander <jens.wiklander@linaro.org> |
ci: QEMUv8_check: run tests with v8.2 Cryptographic Extension enabled
Updates the line with regression tests with CFG_CRYPTO_WITH_CE=y to use CFG_CRYPTO_WITH_CE82=y instead to include the v8.2 Crypt
ci: QEMUv8_check: run tests with v8.2 Cryptographic Extension enabled
Updates the line with regression tests with CFG_CRYPTO_WITH_CE=y to use CFG_CRYPTO_WITH_CE82=y instead to include the v8.2 Cryptographic Extension.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 8ad96da2 | 27-Dec-2022 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: mbedtls: use SHA-512 crypto accelerated routines
Uses the recently provided accelerated SHA-512 routine.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklan
core: mbedtls: use SHA-512 crypto accelerated routines
Uses the recently provided accelerated SHA-512 routine.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 65d11b31 | 23-Dec-2022 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: ltc: use SHA-512 crypto accelerated function
Uses the recently provided accelerated SHA-512 function in LTC.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wikla
core: ltc: use SHA-512 crypto accelerated function
Uses the recently provided accelerated SHA-512 function in LTC.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 7d81121e | 22-Dec-2022 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: arm64: SHA-512 using ARMv8.2-A cryptographic extensions
Import SHA-512 assembly code from the Linux kernel (Linaro contribution). Enabled with CFG_CRYPTO_SHA512_ARM64_CE=y, set by default if C
core: arm64: SHA-512 using ARMv8.2-A cryptographic extensions
Import SHA-512 assembly code from the Linux kernel (Linaro contribution). Enabled with CFG_CRYPTO_SHA512_ARM64_CE=y, set by default if CFG_CRYPTO_WITH_CE82=y.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 2f18fc50 | 21-Dec-2022 |
liushiwei <liushiwei@eswincomputing.com> |
libutee: riscv: modify the UTEE_SYSCALL assembly
Use li instead of mv in UTEE_SYSCALL, store the num_args in the t1 register. This works on RV32 and RV64, so change the compile control and rename th
libutee: riscv: modify the UTEE_SYSCALL assembly
Use li instead of mv in UTEE_SYSCALL, store the num_args in the t1 register. This works on RV32 and RV64, so change the compile control and rename the file.
Signed-off-by: liushiwei <liushiwei@eswincomputing.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Marouene Boubakri <marouene.boubakri@nxp.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| ebc8e1ff | 28-Dec-2022 |
Marouene Boubakri <marouene.boubakri@nxp.com> |
core: riscv: provide kern.ld.S
Provide script to allow linking OP-TEE core for RISC-V.
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Reviewed-by: Jens Wiklander <jens.wiklander@linar
core: riscv: provide kern.ld.S
Provide script to allow linking OP-TEE core for RISC-V.
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|