summaryrefslogtreecommitdiffstats
path: root/drivers/char/hw_random
diff options
context:
space:
mode:
authorKrzysztof Kozlowski2015-10-19 06:37:42 +0200
committerHerbert Xu2015-10-20 16:13:59 +0200
commit642c117b927fae34cb85ac7ff278f5fc5bb93a47 (patch)
tree763864e72b7019a6441ff2b22f429b2c14c6c640 /drivers/char/hw_random
parenthwrng: exynos - Fix missing configuration after suspend to RAM (diff)
downloadkernel-qcow2-linux-642c117b927fae34cb85ac7ff278f5fc5bb93a47.tar.gz
kernel-qcow2-linux-642c117b927fae34cb85ac7ff278f5fc5bb93a47.tar.xz
kernel-qcow2-linux-642c117b927fae34cb85ac7ff278f5fc5bb93a47.zip
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: Krzysztof Kozlowski <k.kozlowski@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-rng.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/char/hw_random/exynos-rng.c b/drivers/char/hw_random/exynos-rng.c
index dc06c78bc1d7..30cf4623184f 100644
--- a/drivers/char/hw_random/exynos-rng.c
+++ b/drivers/char/hw_random/exynos-rng.c
@@ -188,10 +188,19 @@ static const struct dev_pm_ops exynos_rng_pm_ops = {
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 = {
.driver = {
.name = "exynos-rng",
.pm = &exynos_rng_pm_ops,
+ .of_match_table = exynos_rng_dt_match,
},
.probe = exynos_rng_probe,
};