| 3513f269 | 03-Mar-2021 |
Manish Tomar <manish.tomar@nxp.com> |
plat-ls: Add DSPI driver for NXP LS Platforms
This patch adds DSPI driver for Layerscape Platforms. DSPI compilation is enabled by default for LX2160A-QDS and LX2160A-RDB.
Signed-off-by: Carl Lamb
plat-ls: Add DSPI driver for NXP LS Platforms
This patch adds DSPI driver for Layerscape Platforms. DSPI compilation is enabled by default for LX2160A-QDS and LX2160A-RDB.
Signed-off-by: Carl Lamb <calamb@microsoft.com> Signed-off-by: Manish Tomar <manish.tomar@nxp.com> Acked-by: Jerome Forissier <jerome@forissier.org>
show more ...
|
| 5b2ee5d8 | 04-Mar-2021 |
Marouene Boubakri <marouene.boubakri@nxp.com> |
core: kernel: move ldelf_loader.h to core/include/kernel
To make reuse of ldelf_loader.h when porting OP-TEE OS to other architectures, this commit moves it to core/include/kernel.
Signed-off-by: M
core: kernel: move ldelf_loader.h to core/include/kernel
To make reuse of ldelf_loader.h when porting OP-TEE OS to other architectures, this commit moves it to core/include/kernel.
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 4a96f1f5 | 04-Mar-2021 |
Marouene Boubakri <marouene.boubakri@nxp.com> |
core: kernel: move linker.h to core/include/kernel
To make reuse of linker.h when porting OP-TEE OS to other architectures, this commit moves it to core/include/kernel.
Signed-off-by: Marouene Boub
core: kernel: move linker.h to core/include/kernel
To make reuse of linker.h when porting OP-TEE OS to other architectures, this commit moves it to core/include/kernel.
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 390cb5e2 | 04-Mar-2021 |
Marouene Boubakri <marouene.boubakri@nxp.com> |
core: kernel: move user_ta.h to core/include/kernel
This commit moves user_ta.h to core/include/kernel since it is included by sources which are not located in arch tree and it does not contain any
core: kernel: move user_ta.h to core/include/kernel
This commit moves user_ta.h to core/include/kernel since it is included by sources which are not located in arch tree and it does not contain any architecture-dependent definition.
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 63029866 | 04-Mar-2021 |
Marouene Boubakri <marouene.boubakri@nxp.com> |
core: kernel: move unwind.h to core/include/kernel
unwind.h is used by sources which are not located in arch tree. In addition, it does not contain any architecture-dependent definition. This commit
core: kernel: move unwind.h to core/include/kernel
unwind.h is used by sources which are not located in arch tree. In addition, it does not contain any architecture-dependent definition. This commit move unwind.h to core/include/kernel.
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| b2735408 | 04-Mar-2021 |
Marouene Boubakri <marouene.boubakri@nxp.com> |
core: kernel: move timer.h to core/include/kernel
timer.h does not contain any architecture-dependent definition, therefore, move it to core/include/kernel.
Signed-off-by: Marouene Boubakri <maroue
core: kernel: move timer.h to core/include/kernel
timer.h does not contain any architecture-dependent definition, therefore, move it to core/include/kernel.
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 67f78821 | 04-Mar-2021 |
Marouene Boubakri <marouene.boubakri@nxp.com> |
core: kernel: move time_source.h to core/include/kernel
The time_source.h does not contain any architecture-dependent definition, hence, move it to core/include/kernel instead.
Signed-off-by: Marou
core: kernel: move time_source.h to core/include/kernel
The time_source.h does not contain any architecture-dependent definition, hence, move it to core/include/kernel instead.
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 3f46d8c8 | 04-Mar-2021 |
Marouene Boubakri <marouene.boubakri@nxp.com> |
core: kernel: time_source.h: remove un-implemented function
arm_prng_add_jitter_entropy() in time_source.h is defined but never implemented or referenced. This commit removes the prototype.
Signed-
core: kernel: time_source.h: remove un-implemented function
arm_prng_add_jitter_entropy() in time_source.h is defined but never implemented or referenced. This commit removes the prototype.
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 510ec44d | 04-Mar-2021 |
Marouene Boubakri <marouene.boubakri@nxp.com> |
core: kernel: move pseudo_ta.h to core/include/kernel
The pseudo_ta.h is used by core/kernel/tee_ta_manager.c and it does not contain any architecture-dependent definition, hence, move it to core/in
core: kernel: move pseudo_ta.h to core/include/kernel
The pseudo_ta.h is used by core/kernel/tee_ta_manager.c and it does not contain any architecture-dependent definition, hence, move it to core/include/kernel instead.
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 22ddf778 | 04-Mar-2021 |
Marouene Boubakri <marouene.boubakri@nxp.com> |
core: kernel: make linker.h architecture agnostic
Other architectures may not have vector table. To make reuse of the linker.h, this commit adds the start/end addresses of the exception index table
core: kernel: make linker.h architecture agnostic
Other architectures may not have vector table. To make reuse of the linker.h, this commit adds the start/end addresses of the exception index table only if we are building for ARM.
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| ae6b3380 | 21-Jan-2021 |
Jelle Sels <jelle.sels@arm.com> |
core: Add ffa_msg_send_req and ffa_msg_send_resp
Add FF-A message handling of FFA_MSG_SEND_DIRECT_REQ_32 and FFA_MSG_SEND_DIRECT_RESP_32 messages. The FFA_MSG_SEND_DIRECT_RESP_32 message is used to
core: Add ffa_msg_send_req and ffa_msg_send_resp
Add FF-A message handling of FFA_MSG_SEND_DIRECT_REQ_32 and FFA_MSG_SEND_DIRECT_RESP_32 messages. The FFA_MSG_SEND_DIRECT_RESP_32 message is used to send a message from one FF-A endpoint to a second FF-A endpoint. FFA_MSG_SEND_DIRECT_RESP_32 is used to send a response message from the callee to the caller.
A separate abstraction is made (spmc_sp_handler) for handling FF-A messages received from secure endpoints (SP). thread_spmc_msg_recv() is still used for handling all FF-A messages coming from the Normal World. When a FFA_MSG_SEND_DIRECT_REQ_32 message is received for the Normal World a new kernel thread is started and spmc_sp_msg_handler() is run. spmc_sp_msg_handler() is used as the main message handler for handling the FF-A messages coming from SPs.
Whenever a message is sent to the normal world the thread is finished and the FF-A message is forwarded to the Normal World.
Whenever a SVC exception is received from an SP, the whole context is saved and executions is resumed in S-EL1. The first 8 register (FF-A registers x0-x7) contain the FF-A message and are used to handle the message by the SPMC.
Signed-off-by: Jelle Sels <jelle.sels@arm.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| c185655e | 19-Jan-2021 |
Jelle Sels <jelle.sels@arm.com> |
core: Initiate and load Secure Partitions
Secure Partitions (SP) are S-El0 execution service defined in the Arm FF-A specification. The Secure Partitions are loaded as the last part of the boot proc
core: Initiate and load Secure Partitions
Secure Partitions (SP) are S-El0 execution service defined in the Arm FF-A specification. The Secure Partitions are loaded as the last part of the boot process. A Secure Partitions can be added to image using the SP_PATHS build option. The SPs are loaded using ldelf.
Signed-off-by: Jelle Sels <jelle.sels@arm.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 4e994fd8 | 19-Jan-2021 |
Jelle Sels <jelle.sels@arm.com> |
core: Rename abort_print_current_ta
Rename abort_print_current_ta to abort_print_current_ts as it is used by both SPs and TAs.
Signed-off-by: Jelle Sels <jelle.sels@arm.com> Reviewed-by: Jens Wikla
core: Rename abort_print_current_ta
Rename abort_print_current_ta to abort_print_current_ts as it is used by both SPs and TAs.
Signed-off-by: Jelle Sels <jelle.sels@arm.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| ece8d869 | 03-Mar-2021 |
Marouene Boubakri <marouene.boubakri@nxp.com> |
core: kernel: otp_stubs: fix unresolved symbols when CFG_WITH_USER_TA=n
Building with CFG_WITH_USER_TA=n leads to linking issues. The default tee_otp_get_ta_enc_key() function references ta_pub_key_
core: kernel: otp_stubs: fix unresolved symbols when CFG_WITH_USER_TA=n
Building with CFG_WITH_USER_TA=n leads to linking issues. The default tee_otp_get_ta_enc_key() function references ta_pub_key_modulus_size and ta_pub_key_modulus which are not resolved, therefore change its definition to depend on the CFG_WITH_USER_TA flag.
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
show more ...
|
| 16c13b4d | 23-Feb-2021 |
Manish Tomar <manish.tomar@nxp.com> |
plat-ls: Add GPIO driver for NXP LS Platforms
This patch adds GPIO driver for Layerscape Platforms. GPIO compilation is enabled by default for LX2160A-QDS and LX2160A-RDB.
Signed-off-by: Manish Tom
plat-ls: Add GPIO driver for NXP LS Platforms
This patch adds GPIO driver for Layerscape Platforms. GPIO compilation is enabled by default for LX2160A-QDS and LX2160A-RDB.
Signed-off-by: Manish Tomar <manish.tomar@nxp.com> Acked-by: Victor Chong <victor.chong@linaro.org> Reviewed-by: Clement Faure <clement.faure@nxp.com> Reviewed-by: Sahil Malhotra <sahil.malhotra@nxp.com>
show more ...
|
| fc5d98e8 | 23-Feb-2021 |
Manish Tomar <manish.tomar@nxp.com> |
core: gpio.h: Add 'struct gpio_chip *chip' in 'struct gpio_ops'
To get the GPIO controller base address, 'struct gpio_chip *chip' is passed as a member in the container 'struct gpio_ops'
Also updat
core: gpio.h: Add 'struct gpio_chip *chip' in 'struct gpio_ops'
To get the GPIO controller base address, 'struct gpio_chip *chip' is passed as a member in the container 'struct gpio_ops'
Also updated bcm_gpio and pl061_gpio as per modified gpio.h definition.
Signed-off-by: Manish Tomar <manish.tomar@nxp.com> Reviewed-by: Victor Chong <victor.chong@linaro.org> Reviewed-by: Clement Faure <clement.faure@nxp.com> Reviewed-by: Sahil Malhotra <sahil.malhotra@nxp.com>
show more ...
|
| 588800bf | 28-Feb-2021 |
Igor Opaniuk <igor.opaniuk@foundries.io> |
core: imx: build snvs driver for imx8mm
Build SNVS driver for iMX8MM.
Acked-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Igor Opaniuk <
core: imx: build snvs driver for imx8mm
Build SNVS driver for iMX8MM.
Acked-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
show more ...
|
| 6bd963b9 | 28-Feb-2021 |
Igor Opaniuk <igor.opaniuk@foundries.io> |
core: imx: add snvs base address for imx8m
Add Secure Non-Volatile Storage base address for iMX8M SoCs.
Acked-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jerome Forissier <jerome@forissier.
core: imx: add snvs base address for imx8m
Add Secure Non-Volatile Storage base address for iMX8M SoCs.
Acked-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
show more ...
|
| 51f49692 | 01-Mar-2021 |
Marouene Boubakri <marouene.boubakri@nxp.com> |
core: mutex: mutex is abstract pull it from arch folder
This commit moves mutex* and wait_queue* from arch folder to core/kernel to make it architecture-independent.
Signed-off-by: Marouene Boubakr
core: mutex: mutex is abstract pull it from arch folder
This commit moves mutex* and wait_queue* from arch folder to core/kernel to make it architecture-independent.
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| c1e0a835 | 05-Feb-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: add tlbi_mva_range_asid()
Adds tlbi_mva_range_asid() which invalidates a range of virtual addresses for a specific ASID.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off
core: add tlbi_mva_range_asid()
Adds tlbi_mva_range_asid() which invalidates a range of virtual addresses for a specific ASID.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 3fb20484 | 05-Feb-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: add pgt_clear_ctx_range()
Adds pgt_clear_ctx_range() which clears the corresponding entries in the active or cached translation tables of user mode context.
Reviewed-by: Etienne Carriere <eti
core: add pgt_clear_ctx_range()
Adds pgt_clear_ctx_range() which clears the corresponding entries in the active or cached translation tables of user mode context.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| db82201b | 19-Feb-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: check snprintf() return value in add_res_mem_dt_node()
Adds a check for the return value from snprintf() in add_res_mem_dt_node(). In case snprintf() has failed of truncates the output a debug
core: check snprintf() return value in add_res_mem_dt_node()
Adds a check for the return value from snprintf() in add_res_mem_dt_node(). In case snprintf() has failed of truncates the output a debug warning in the log.
This fixes coverity scan: CID 1501804 (#1 of 1): Unchecked return value (CHECKED_RETURN)
Reviewed-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| d627f556 | 21-Feb-2021 |
Jorge Ramirez-Ortiz <jorge@foundries.io> |
core: mobj: fix memory leak
dynamic shared memory is not being released leading to an out of memory condition.
Issue triggered during tests exporting the cryptographic random generator to the REE (
core: mobj: fix memory leak
dynamic shared memory is not being released leading to an out of memory condition.
Issue triggered during tests exporting the cryptographic random generator to the REE (Linux) and then reading the value via the device interface (/dev/hwrng).
Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 819d0141 | 20-Nov-2020 |
Sahil Malhotra <sahil.malhotra@nxp.com> |
plat-ls: add i2c driver for NXP LS Platforms
I2C Driver compilation is enabled by default for LX2160A-RDB and LX2160A-QDS.
Signed-off-by: Sahil Malhotra <sahil.malhotra@nxp.com> Reviewed-by: Jens W
plat-ls: add i2c driver for NXP LS Platforms
I2C Driver compilation is enabled by default for LX2160A-RDB and LX2160A-QDS.
Signed-off-by: Sahil Malhotra <sahil.malhotra@nxp.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Clement Faure <clement.faure@nxp.com>
show more ...
|
| 8826a6aa | 12-Feb-2021 |
Jerome Forissier <jerome@forissier.org> |
build: core: add missing dependencies when generating assembly constants
The header file <generated/asm-defines.h> is created at build time. It contains macro definitions for various offsets in C st
build: core: add missing dependencies when generating assembly constants
The header file <generated/asm-defines.h> is created at build time. It contains macro definitions for various offsets in C structures and is especially useful for use from assembler code. It is generated from asm-defines.c, which includes a number of header files, of which two are also generated at build time: <generated/arm32_sysreg.h> and <generated/arm32_gicv3_sysreg.h>.
These dependencies are expressed nowhere in the makefiles and therefore build errors can result. For example:
$ make out/arm-plat-vexpress/core/include/generated/.asm-defines.s CHK out/arm-plat-vexpress/conf.mk UPD out/arm-plat-vexpress/conf.mk CHK out/arm-plat-vexpress/include/generated/conf.h UPD out/arm-plat-vexpress/include/generated/conf.h CC out/arm-plat-vexpress/core/include/generated/.asm-defines.s In file included from core/arch/arm/include/arm.h:99, from core/arch/arm/include/kernel/thread.h:12, from core/arch/arm/kernel/asm-defines.c:8: core/arch/arm/include/arm32.h:167:10: fatal error: generated/arm32_sysreg.h: No such file or directory 167 | #include <generated/arm32_sysreg.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
The error in [1] is believed to have the same root cause: during parallel build the generated header file might have been created by one job but not yet written to when another job would open it. The compiler would see an empty file, thus the missing declarations.
Add the missing dependencies via a new variable at the location where asm-defines.c is added to the build.
Note that the other core .c files depending on these generated sysreg headers are not affected because their .o files explicitly depend on FORCE-GENSRCcore (which generates the headers).
Link: [1] https://ci.linaro.org/job/ledge-oe-premerge-ci/182/DISTRO=rpb,MACHINE=ledge-ti-am572x,label=docker-buster-amd64/console Signed-off-by: Jerome Forissier <jerome@forissier.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|