| 75afd6f0 | 18-Jun-2021 |
Clément Léger <clement.leger@bootlin.com> |
drivers: sam: add at91_audio_pll clock driver
Add Audio PLL clock driver.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> Signed-off-b
drivers: sam: add at91_audio_pll clock driver
Add Audio PLL clock driver.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 0c706368 | 18-Jun-2021 |
Clément Léger <clement.leger@bootlin.com> |
drivers: sam: add PMC definitions
This file is common to almost all clock drivers which will use it.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Nicolas Ferre <nicolas.ferre@
drivers: sam: add PMC definitions
This file is common to almost all clock drivers which will use it.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 2e5e1a47 | 08-Nov-2021 |
Clément Léger <clement.leger@bootlin.com> |
dts: at91: removed useless definition
Currently, if this file is included before at91_pmc.h, this leads to multiple definitions of some defines. Moreover, these defines are not the value expected by
dts: at91: removed useless definition
Currently, if this file is included before at91_pmc.h, this leads to multiple definitions of some defines. Moreover, these defines are not the value expected by the driver but probably some leftover of previous bindings.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| fd140f7e | 06-Oct-2021 |
Gerard Koskamp <gerard.koskamp@nedap.com> |
drivers: crypto: se05x: SCP03 keys for SE051A2 and SE051C2
Add SCP03 keys for SE051A2 and SE051C2 to support OEFID 0xA565 and 0xA564
Signed-off-by: Robert Krikke <robert.krikke@gmail.com> Signed-of
drivers: crypto: se05x: SCP03 keys for SE051A2 and SE051C2
Add SCP03 keys for SE051A2 and SE051C2 to support OEFID 0xA565 and 0xA564
Signed-off-by: Robert Krikke <robert.krikke@gmail.com> Signed-off-by: Gerard Koskamp <gerard.koskamp@nedap.com> Acked-by: Jorge Ramirez-Ortiz <jorge@foundries.io>
show more ...
|
| 5a97f1e5 | 09-Nov-2021 |
Andrej Rosano <andrej.rosano@f-secure.com> |
drivers: imx: enable CFG_TZC380 for imx6ull
Always enable the region autoconfiguration for imx6ull.
Signed-off-by: Andrej Rosano <andrej.rosano@f-secure.com> Acked-by: Jerome Forissier <jerome@fori
drivers: imx: enable CFG_TZC380 for imx6ull
Always enable the region autoconfiguration for imx6ull.
Signed-off-by: Andrej Rosano <andrej.rosano@f-secure.com> Acked-by: Jerome Forissier <jerome@forissier.org>
show more ...
|
| 2380d700 | 27-Aug-2021 |
Lionel Debieve <lionel.debieve@foss.st.com> |
core: mmu: fix overflow with high address in tee_mm_pool_t
In case of TA_RAM defined at the end of address range, the high address will be defined outside the paddr_t limits which ends in a 0 addres
core: mmu: fix overflow with high address in tee_mm_pool_t
In case of TA_RAM defined at the end of address range, the high address will be defined outside the paddr_t limits which ends in a 0 address usage. The size must be used rather than the high address to avoid this overflow issue. Update the corresponding files due to API modification.
Signed-off-by: Lionel Debieve <lionel.debieve@foss.st.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| f21b3ed5 | 21-Sep-2021 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: release driver probing resource after initialization
Use release_init_resource initcall level to release DT phandle provider list, probe list and ready list.
Reviewed-by: Jens Wiklander <jens
core: release driver probing resource after initialization
Use release_init_resource initcall level to release DT phandle provider list, probe list and ready list.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 94d4f61d | 21-Sep-2021 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: add initcall level 7 to release initialization resources
Drivers willing to release resources once all core intializations are completed can use release_init_resource initcall level.
Reviewed
core: add initcall level 7 to release initialization resources
Drivers willing to release resources once all core intializations are completed can use release_init_resource initcall level.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| ea29d587 | 12-Sep-2021 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: dt_driver: add simple bus driver
Simple bus driver simply parses the device subnodes for device to probe driver with.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Co-developed-by: Lio
core: dt_driver: add simple bus driver
Simple bus driver simply parses the device subnodes for device to probe driver with.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Co-developed-by: Lionel Debieve <lionel.debieve@st.com> Signed-off-by: Lionel Debieve <lionel.debieve@st.com> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| b3a88b52 | 12-Sep-2021 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: dt_driver probe sequence
Add a driver_init initcall function to parse DT from root node and probe devices for which a compatible driver is registered in the dt_driver list. When a matching dri
core: dt_driver probe sequence
Add a driver_init initcall function to parse DT from root node and probe devices for which a compatible driver is registered in the dt_driver list. When a matching driver is found, its probe function is called to initialize the device.
Driver probe function returns TEE_SUCCESS or successful initialization, TEE_ERROR_DEFER_DRIVER_INIT if waiting for a dependent device, otherwise another TEE_Result error code. In the later case, the probe function panics.
The probe sequence uses 2 lists: a list of the device DT nodes for which a driver shall be probed (probe list) and a list of devices that were successfully probed and initialized (ready list). Since at least clock framework and dt_driver do both parse DT for matching nodes, we must centralized successfully probed devices to not add them twice in the probe list.
Note that a DT node can probe several drivers, one per driver type, as defined by dt_driver_type enumerated type.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Co-developed-by: Lionel Debieve <lionel.debieve@st.com> Signed-off-by: Lionel Debieve <lionel.debieve@st.com> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| d8b14b46 | 27-Oct-2021 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: dt_driver: get return code when querying a device
Change dt_driver_device_from_provider_prop() function and friends to output return a TEE_Result code if failing to find target device instance
core: dt_driver: get return code when querying a device
Change dt_driver_device_from_provider_prop() function and friends to output return a TEE_Result code if failing to find target device instance. Return code TEE_ERROR_DEFER_DRIVER_INIT reports that requested device is not yet registered and initialized in the dt_driver provider list.
This change will be used to probed device drivers and allow probe deferral when a device depends on another device driver that is not yet initialized.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 8d9a4147 | 08-Oct-2021 |
Elvira Khabirova <e.khabirova@omp.ru> |
core: assure the reader that clear_file(), test_file() are safe
tee_tadb_dir always has files when nbits is greater than 0. Point that out in clear_file() and test_file().
Reviewed-by: Jens Wikland
core: assure the reader that clear_file(), test_file() are safe
tee_tadb_dir always has files when nbits is greater than 0. Point that out in clear_file() and test_file().
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Elvira Khabirova <e.khabirova@omp.ru>
show more ...
|
| 195b88be | 16-Nov-2021 |
Elvira Khabirova <e.khabirova@omp.ru> |
pta: tests: fs_htree: make sure all local variables are initialized
Update the whole source file to initialize all local variables.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-
pta: tests: fs_htree: make sure all local variables are initialized
Update the whole source file to initialize all local variables.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Elvira Khabirova <e.khabirova@omp.ru>
show more ...
|
| e1761059 | 09-Nov-2021 |
Elvira Khabirova <e.khabirova@omp.ru> |
pta: tests: add a just-in-case default return value to test_write_read()
test_write_read() is never called with num_blocks == 0, but assign a default value to res anyway.
Reviewed-by: Jens Wiklande
pta: tests: add a just-in-case default return value to test_write_read()
test_write_read() is never called with num_blocks == 0, but assign a default value to res anyway.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Elvira Khabirova <e.khabirova@omp.ru>
show more ...
|
| 4ed45027 | 21-Oct-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: verify size of allocated shared memory
Makes sure that normal world cannot change the size of allocated shared memory, resulting in a smaller buffer being allocated.
This reintroduces cc6bc5f
core: verify size of allocated shared memory
Makes sure that normal world cannot change the size of allocated shared memory, resulting in a smaller buffer being allocated.
This reintroduces cc6bc5f94210 ("core: verify size of allocated shared memory") which was lost with Fixes: 2786f1438fc8 ("core: thread: separate old SMC interface handling"). In addition is the READ_ONCE() macro is used when reading the returned size from non-secure shared memory.
Since then we have a separate set of functions to deal with RPC when communicating with FF-A. A corresponding size check is added for the FF-A version of thread_rpc_alloc().
Reported-by: Patrik Lantz <patrik.lantz@axis.com> Reviewed-by: Patrik Lantz <patrik.lantz@axis.com> Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 36ebac6d | 02-Nov-2021 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: kernel: pm: initialize local variables
Initialize local variables in pm_change_state().
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@
core: kernel: pm: initialize local variables
Initialize local variables in pm_change_state().
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 5920ec25 | 02-Nov-2021 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: kernel: pm: refine suspend/resume sequence order
Change PM generic implementation to call handlers for suspend in the reserve order in which they were registered and to call handlers for resum
core: kernel: pm: refine suspend/resume sequence order
Change PM generic implementation to call handlers for suspend in the reserve order in which they were registered and to call handlers for resume in the opposite order, that is the order in which the handlers where registered.
This change allows to reuse the driver initialization ordering which is expected to match device drivers dependencies. This change will be even more useful when using probe support and dependencies resolution.
The change does not affect the 2 PM registration levels: core and drivers. Core handlers are still suspends after drivers and resumed before drivers.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Gatien Chevallier <gatien.chevallier@st.com>
show more ...
|
| 502e23ad | 02-Nov-2021 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: pm: add a name to registered pm_callback_handle
Adds an argument to register a name (string debug identifier) for PM handlers registered to PM framework.
Caller can provide a NULL reference o
core: pm: add a name to registered pm_callback_handle
Adds an argument to register a name (string debug identifier) for PM handlers registered to PM framework.
Caller can provide a NULL reference or a valid string pointer. When pager is enabled, the registration ensures the name lies in an unpaged section, possibly allocating heap for that purpose.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Gatien Chevallier <gatien.chevallier@st.com>
show more ...
|
| 452502d6 | 02-Nov-2021 |
Etienne Carriere <etienne.carriere@linaro.org> |
plat-stm32mp1: clk: panic on driver init failure
Panic when stm32mp1 clock driver initialization fails.
Renames local function stm32mp1_clk_init() to stm32mp1_clk_fdt_init() as it relates the drive
plat-stm32mp1: clk: panic on driver init failure
Panic when stm32mp1 clock driver initialization fails.
Renames local function stm32mp1_clk_init() to stm32mp1_clk_fdt_init() as it relates the driver initialization from FDT node content.
Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| b3ece0b9 | 02-Nov-2021 |
Etienne Carriere <etienne.carriere@linaro.org> |
plat-stm32mp1: clk: move functions in source file
Moves __clk_is_enabled() and gate_is_non_secure() inside stm32mp1_clk.c source file to ease integration to clk framework.
Acked-by: Jerome Forissie
plat-stm32mp1: clk: move functions in source file
Moves __clk_is_enabled() and gate_is_non_secure() inside stm32mp1_clk.c source file to ease integration to clk framework.
Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| defba8af | 31-Oct-2021 |
Etienne Carriere <etienne.carriere@linaro.org> |
plat-stm32mp1: clk: fix const attribute in function arguments
Fixes __clk_enable(), __clk_disable() and __clk_is_enabled() arguments against misplaced const attribute.
Acked-by: Jerome Forissier <j
plat-stm32mp1: clk: fix const attribute in function arguments
Fixes __clk_enable(), __clk_disable() and __clk_is_enabled() arguments against misplaced const attribute.
Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 87852b61 | 30-Oct-2021 |
Etienne Carriere <etienne.carriere@linaro.org> |
plat-stm32mp1: clk: refine always on clocks
Change implementation of clock_is_always_on() to prepare for registration of clock in the generic clock framework.
Acked-by: Jerome Forissier <jerome@for
plat-stm32mp1: clk: refine always on clocks
Change implementation of clock_is_always_on() to prepare for registration of clock in the generic clock framework.
Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 0faa0a8a | 30-Oct-2021 |
Etienne Carriere <etienne.carriere@linaro.org> |
plat-stm32mp1: clk: remove useless static array
Local array secure_enable[] in function enable_static_secure_clocks() does not need to be static.
Acked-by: Jerome Forissier <jerome@forissier.org> S
plat-stm32mp1: clk: remove useless static array
Local array secure_enable[] in function enable_static_secure_clocks() does not need to be static.
Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| fa8cb7a8 | 03-Nov-2021 |
Nicolas Toromanoff <nicolas.toromanoff@foss.st.com> |
crypto: stm32: use CRYP IP for authenc algorithm
Add STM32 CRYP as an Authenticated Encryption provider for GCM and CCM.
Signed-off-by: Nicolas Toromanoff <nicolas.toromanoff@foss.st.com> Reviewed-
crypto: stm32: use CRYP IP for authenc algorithm
Add STM32 CRYP as an Authenticated Encryption provider for GCM and CCM.
Signed-off-by: Nicolas Toromanoff <nicolas.toromanoff@foss.st.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| e3e4ce47 | 26-Apr-2021 |
Nicolas Toromanoff <nicolas.toromanoff@foss.st.com> |
drivers: crypto: implement crypto driver - AUTHENC
Add a generic cryptographic Authenticated Encryption driver interface connecting TEE Crypto generic APIs to HW driver interface.
Signed-off-by: Ni
drivers: crypto: implement crypto driver - AUTHENC
Add a generic cryptographic Authenticated Encryption driver interface connecting TEE Crypto generic APIs to HW driver interface.
Signed-off-by: Nicolas Toromanoff <nicolas.toromanoff@foss.st.com> Acked-by: Cedric Neveux <cedric.neveux@nxp.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|