Commit 642c117b authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Herbert Xu

hwrng: exynos - Add Device Tree support

Add Device Tree support for the driver. The Pseudo Random Number
Generator module is the same in almost all of Exynos SoCs, since
Exynos4210 (however the tests were done only on Trats2 board with
Exynos4412). There are some differences on newer Exynos Octa
(Exynos542x) SoCs.
Signed-off-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent bd1dffb1
...@@ -188,10 +188,19 @@ static const struct dev_pm_ops exynos_rng_pm_ops = { ...@@ -188,10 +188,19 @@ static const struct dev_pm_ops exynos_rng_pm_ops = {
exynos_rng_runtime_resume, NULL) exynos_rng_runtime_resume, NULL)
}; };
static const struct of_device_id exynos_rng_dt_match[] = {
{
.compatible = "samsung,exynos4-rng",
},
{ },
};
MODULE_DEVICE_TABLE(of, exynos_rng_dt_match);
static struct platform_driver exynos_rng_driver = { static struct platform_driver exynos_rng_driver = {
.driver = { .driver = {
.name = "exynos-rng", .name = "exynos-rng",
.pm = &exynos_rng_pm_ops, .pm = &exynos_rng_pm_ops,
.of_match_table = exynos_rng_dt_match,
}, },
.probe = exynos_rng_probe, .probe = exynos_rng_probe,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment