hwrng: imx-rngc - improve dependencies
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 5 Feb 2020 14:00:02 +0000 (15:00 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 22 Feb 2020 01:25:41 +0000 (09:25 +0800)
commitfcdba3c33a4dfdc3dc3f2cce46aaf0d6fc1df6c1
treeb0f4fc3a7829a845201dda5e96d05d77b19afca9
parentf426faac80c9cca7973de10d903dc772627a5f5a
hwrng: imx-rngc - improve dependencies

The imx-rngc driver binds to devices that are compatible to
"fsl,imx25-rngb". Grepping through the device tree sources suggests this
only exists on i.MX25. So restrict dependencies to configs that have
this SoC enabled, but allow compile testing. For the latter additional
dependencies for clk and readl/writel are necessary.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/Kconfig