hwrng: bcm63xx - move register definitions to driver
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 17 Feb 2015 02:09:14 +0000 (18:09 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 1 Mar 2015 10:02:26 +0000 (23:02 +1300)
arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h contains the register
definitions for this random number generator block, incorporate these
register definitions directly into the bcm63xx-rng driver so we do not
rely on this header to be provided.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/bcm63xx-rng.c

index ed9b28b35a3925fb1d9cf1e973527a92665b0c51..c7f3af8525990a72d461251461649e91422b37c7 100644 (file)
 #include <linux/platform_device.h>
 #include <linux/hw_random.h>
 
-#include <bcm63xx_regs.h>
+#define RNG_CTRL                       0x00
+#define RNG_EN                         (1 << 0)
+
+#define RNG_STAT                       0x04
+#define RNG_AVAIL_MASK                 (0xff000000)
+
+#define RNG_DATA                       0x08
+#define RNG_THRES                      0x0c
+#define RNG_MASK                       0x10
 
 struct bcm63xx_rng_priv {
        struct clk *clk;