On 9/8/23 20:58, Heinrich Schuchardt wrote:
On 9/7/23 18:21, Gatien Chevallier wrote:
Default embed this configuration. If OP-TEE PTA RNG is present as well,
the priority will be given to it instead of the U-Boot driver.

Are you relying here on drivers being probed in alphabetical sequence?

Best regards

Heinrich


Hello Heinrich,

I've made a strange wording here.

OP-TEE RNG PTA shouldn't be exposed if the RNG is non-secure as it
shouldn't be handled by the secure world. If it is, it is a bad
OP-TEE configuration.

On the contrary, if the RNG OPTEE PTA is exposed, then the OP-TEE
RNG PTA should be used. Therefore, the RNG node status shouldn't
be set to "okay" in U-boot's device tree.

Hope this solves the confusion, I'll reword the sentence.

Best regards,
Gatien


Signed-off-by: Gatien Chevallier <gatien.chevall...@foss.st.com>
---
  configs/stm32mp13_defconfig | 1 +
  1 file changed, 1 insertion(+)

diff --git a/configs/stm32mp13_defconfig b/configs/stm32mp13_defconfig
index 82b62744f6..4a899c85de 100644
--- a/configs/stm32mp13_defconfig
+++ b/configs/stm32mp13_defconfig
@@ -65,6 +65,7 @@ CONFIG_DM_REGULATOR_GPIO=y
  CONFIG_DM_REGULATOR_SCMI=y
  CONFIG_RESET_SCMI=y
  CONFIG_DM_RNG=y
+CONFIG_RNG_STM32=y
  CONFIG_DM_RTC=y
  CONFIG_RTC_STM32=y
  CONFIG_SERIAL_RX_BUFFER=y

Reply via email to