]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
configs: add support of OPTEE RNG in stm32mp15 defconfig
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 29 Mar 2022 12:21:25 +0000 (14:21 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 11 Apr 2022 14:28:04 +0000 (10:28 -0400)
When the RNG device is secured with OP-TEE, it is only accessible with
the HWRNG TA, the CONFIG_RNG_OPTEE is needed for STM32MP15 targets
with OP-TEE support.

The probe of this RNG driver fails when the TA is not available in OP-TEE
and the previous driver can be used, as CONFIG_RNG_STM32MP1 is activated
and when the associated node is activated in the device tree with:

&rng1 {
status = "okay";
};

When the RNG is used in OP-TEE, this node should be deactivated in
the Linux and U-Boot device tree.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
configs/stm32mp15_defconfig
configs/stm32mp15_trusted_defconfig

index 29ecb2f82abd0b4e9608e45bd363ed4f4fb72ccd..f6e7fc81b0808db1f3861270dfe422c65765e016 100644 (file)
@@ -119,6 +119,7 @@ CONFIG_DM_REGULATOR_STPMIC1=y
 CONFIG_REMOTEPROC_STM32_COPRO=y
 CONFIG_RESET_SCMI=y
 CONFIG_DM_RNG=y
+CONFIG_RNG_OPTEE=y
 CONFIG_RNG_STM32MP1=y
 CONFIG_DM_RTC=y
 CONFIG_RTC_STM32=y
index e724db497459613fe00a40f1bb7bb0b877d6b14b..855a394893e34a241bab669585e13dcb05c05e38 100644 (file)
@@ -120,6 +120,7 @@ CONFIG_DM_REGULATOR_STPMIC1=y
 CONFIG_REMOTEPROC_STM32_COPRO=y
 CONFIG_RESET_SCMI=y
 CONFIG_DM_RNG=y
+CONFIG_RNG_OPTEE=y
 CONFIG_RNG_STM32MP1=y
 CONFIG_DM_RTC=y
 CONFIG_RTC_STM32=y