summaryrefslogtreecommitdiff
path: root/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-07-24 14:33:10 (GMT)
committerRalf Baechle <ralf@linux-mips.org>2012-07-24 14:33:10 (GMT)
commit8aecfe946275d23a207c73dbaf7a7c7a8a80be24 (patch)
tree3c38a3b00aaaaf2d046bf4616a133901a93ec58d /arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h
parent0b55561bc608abbbd1b5c98e0a4e9158334086c1 (diff)
downloadlinux-fsl-qoriq-8aecfe946275d23a207c73dbaf7a7c7a8a80be24.tar.xz
MIPS: BCM63XX: add RNG peripheral definitions
Signed-off-by: Florian Fainelli <florian@openwrt.org> Cc: linux-mips@linux-mips.org Cc: mpm@selenic.com Cc: herbert@gondor.apana.org.au Patchwork: https://patchwork.linux-mips.org/patch/3326/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h')
-rw-r--r--arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h
index be107e9..6a8df56 100644
--- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h
+++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h
@@ -974,6 +974,20 @@
#define M2M_DSTID_REG(x) ((x) * 0x40 + 0x18)
/*************************************************************************
+ * _REG relative to RSET_RNG
+ *************************************************************************/
+
+#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
+
+/*************************************************************************
* _REG relative to RSET_SPI
*************************************************************************/