hwrng: imx-rngc: improve dependencies
Martin Kaiser
Reviewed-byThus wrote Uwe Kleine-K�nig (u.kleine-koenigpengutronix!de):
Quoted 5 lines · Horia Geanta
Quoted 4 lines · Uwe Kleine-K�nig
Quoted 3 lines
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
Quoted 7 lines
Quoted 5 lines
The driver could also be used by some i.MX6 SoCs (SL, SLL), that have a compatible rngb.
Actually i.MX6SL has a rngb node in the DT, but unfortunately it lacks a compatible string.
Also the i.MX6ULL might have a compatible device?
AFAICS imx35 chips have an rngc which is compatible to this driver as well. I don't have any hardware to test this, though.
Quoted 23 lines
Quoted 15 lines
I am planning to address this short term.
Quoted 12 lines
this SoC enabled, but allow compile testing. For the latter additional dependencies for clk and readl/writel are necessary.
Quoted 1 line
Signed-off-by Uwe Kleine-K�nig <[email protected]>--- drivers/char/hw_random/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/char/hw_random/Kconfig +0
-0@@ -244,7 +244,8 @@ config HW_RANDOM_MXC_RNGAQuoted 7 lines
drivers/char/hw_random/Kconfig config HW_RANDOM_MXC_RNGA · line 247
Quoted 5 lines
drivers/char/hw_random/Kconfig +2
-1config HW_RANDOM_IMX_RNGC tristate "Freescale i.MX RNGC Random Number Generator" - depends on ARCH_MXC + depends on HAS_IOMEM && HAVE_CLK + depends on SOC_IMX25 || COMPILE_TESTI guess
SOC_IMX6SLandSOC_IMX6SLLwill have to be added. Does this sound good?
Quoted 3 lines
I'd say currently the patch is right and once the device trees for the imx6 variants were expanded to include these, the list here can be expanded.
Makes sense to me.