rng: msm: add support for newer Qualcomm hwrandom IPs
authorNeil Armstrong <neil.armstrong@linaro.org>
Mon, 25 Nov 2024 17:12:56 +0000 (18:12 +0100)
committerCaleb Connolly <caleb.connolly@linaro.org>
Wed, 22 Jan 2025 15:43:53 +0000 (16:43 +0100)
commita1efde55bbaf99ea73a0196f0187809dd9aeed7d
tree8e3d5e27fb98e6e01050ebfce3a95076c2bddfd0
parentcd86b564c8b6406cb73f7262abcbee6e1b5e7006
rng: msm: add support for newer Qualcomm hwrandom IPs

On recent Qualcomm SoCs, the hardware random generator
is initialized and handled by the firmware because shared
between different Execution Environments (EE), thus the
initialization step should be skipped.

Also support the newer "TRNG" found on SM8550 and newer
SoCs that has inbuilt NIST SP800 90B compliant entropic source.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Tested-by: Alexey Minnekhanov <alexeymin@postmarketos.org>
Link: https://lore.kernel.org/r/20241125-topic-sm8x50-rng-v1-1-52b72821c3e9@linaro.org
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
drivers/rng/msm_rng.c