Home
last modified time | relevance | path

Searched hist:"52199 c35f1696a64db0e86fd152d30361f3907ec" (Results 1 – 2 of 2) sorted by relevance

/optee_os/lib/libutee/include/
H A Dtee_api_defines_extensions.h52199c35f1696a64db0e86fd152d30361f3907ec Sat May 28 18:42:01 UTC 2022 Vesa Jääskeläinen <vesa.jaaskelainen@vaisala.com> core: dt_driver: Add support for disabled devices

In systems where there are multiple instances of the devices like two TRNGs
where one is reserved for REE environment and one is for TEE environment
those can be defined in device tree in following way:

ree-trng {
status = "okay";
secure-status = "disabled";
...
}

tee-trng {
status = "disabled";
secure-status = "okay";
...
}

If OP-TEE has driver enabled for the device both devices will be probed.

Driver can detect device's 'status' and 'secure-status' settings and return
TEE_ERROR_NODE_DISABLED value for one that is not for its use.

This will indicate to device driver probing to continue without an error.

Signed-off-by: Vesa Jääskeläinen <vesa.jaaskelainen@vaisala.com>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
/optee_os/core/kernel/
H A Ddt_driver.c52199c35f1696a64db0e86fd152d30361f3907ec Sat May 28 18:42:01 UTC 2022 Vesa Jääskeläinen <vesa.jaaskelainen@vaisala.com> core: dt_driver: Add support for disabled devices

In systems where there are multiple instances of the devices like two TRNGs
where one is reserved for REE environment and one is for TEE environment
those can be defined in device tree in following way:

ree-trng {
status = "okay";
secure-status = "disabled";
...
}

tee-trng {
status = "disabled";
secure-status = "okay";
...
}

If OP-TEE has driver enabled for the device both devices will be probed.

Driver can detect device's 'status' and 'secure-status' settings and return
TEE_ERROR_NODE_DISABLED value for one that is not for its use.

This will indicate to device driver probing to continue without an error.

Signed-off-by: Vesa Jääskeläinen <vesa.jaaskelainen@vaisala.com>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>