summaryrefslogtreecommitdiffstats
path: root/drivers/char/hw_random
diff options
context:
space:
mode:
authorSam Protsenko <semen.protsenko@linaro.org>2024-06-20 18:13:39 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2024-06-28 11:35:49 +1000
commitb0c2036df8868b97176f9a97b777846620c9a74d (patch)
treebdd7b2d93341a6f1ce7296861a093926027c8082 /drivers/char/hw_random
parent10bb6ac8f86f4b65ef8d227504868a61e0bcb148 (diff)
downloadlinux-b0c2036df8868b97176f9a97b777846620c9a74d.tar.gz
linux-b0c2036df8868b97176f9a97b777846620c9a74d.tar.bz2
linux-b0c2036df8868b97176f9a97b777846620c9a74d.zip
hwrng: exynos - Enable Exynos850 support
Add Exynos850 compatible and its driver data. It's only possible to access TRNG block via SMC calls in Exynos850, so specify that fact using EXYNOS_SMC flag in the driver data. Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Acked-by: Ɓukasz Stelmach <l.stelmach@samsung.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char/hw_random')
-rw-r--r--drivers/char/hw_random/exynos-trng.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/hw_random/exynos-trng.c b/drivers/char/hw_random/exynos-trng.c
index 9fa30583cc86..9f039fddaee3 100644
--- a/drivers/char/hw_random/exynos-trng.c
+++ b/drivers/char/hw_random/exynos-trng.c
@@ -320,6 +320,9 @@ static DEFINE_SIMPLE_DEV_PM_OPS(exynos_trng_pm_ops, exynos_trng_suspend,
static const struct of_device_id exynos_trng_dt_match[] = {
{
.compatible = "samsung,exynos5250-trng",
+ }, {
+ .compatible = "samsung,exynos850-trng",
+ .data = (void *)EXYNOS_SMC,
},
{ },
};