aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/mmio-regs.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/include/asm/mmio-regs.h')
-rw-r--r--arch/powerpc/include/asm/mmio-regs.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/mmio-regs.h b/arch/powerpc/include/asm/mmio-regs.h
new file mode 100644
index 00000000000..d97f22e67e7
--- /dev/null
+++ b/arch/powerpc/include/asm/mmio-regs.h
@@ -0,0 +1,61 @@
+/*
+ * MMIO register definitions used on various IBM/AMCC * 4xx processors
+ *
+ * (C) Copyright 2008, Applied Micro Circuits Corporation
+ * Victor Gallardo (vgallardo@amcc.com)
+ *
+ * based on dcr-regs.h
+ *
+ * Copyright 2007 Benjamin Herrenschmidt, IBM Corp
+ * <benh@kernel.crashing.org>
+ */
+
+#ifndef __MMIO_REGS_H__
+#define __MMIO_REGS_H__
+
+/* IIC Register offset */
+#define IIC_MDBUF 0x00
+#define IIC_SDBUF 0x02
+#define IIC_LMADR 0x04
+#define IIC_HMADR 0x05
+#define IIC_CNTL 0x06
+#define IIC_MDCNTL 0x07
+#define IIC_STS 0x08
+#define IIC_EXTSTS 0x09
+#define IIC_LSADR 0x0A
+#define IIC_HSADR 0x0B
+#define IIC_CLKDIV 0x0C
+#define IIC_INTRMSK 0x0D
+#define IIC_XFRCNT 0x0E
+#define IIC_XTCNTLSS 0x0F
+#define IIC_DIRECTCNTL 0x10
+
+/* STS Register Bit definition */
+#define IIC_STS_PT 0x01
+#define IIC_STS_IRQA 0x02
+#define IIC_STS_ERR 0x04
+#define IIC_STS_SCMP 0x08
+#define IIC_STS_MDBF 0x10
+#define IIC_STS_MDBS 0x20
+#define IIC_STS_SLPR 0x40
+#define IIC_STS_SSS 0x80
+
+/* MDCNTL Register Bit definition */
+#define IIC_MDCNTL_HSCL 0x01
+#define IIC_MDCNTL_EUBS 0x02
+#define IIC_MDCNTL_EINT 0x04
+#define IIC_MDCNTL_ESM 0x08
+#define IIC_MDCNTL_FSM 0x10
+#define IIC_MDCNTL_EGC 0x20
+#define IIC_MDCNTL_FMDB 0x40
+#define IIC_MDCNTL_FSDB 0x80
+
+/* CNTL Register Bit definition */
+#define IIC_CNTL_PT 0x01
+#define IIC_CNTL_READ 0x02
+#define IIC_CNTL_CHT 0x04
+#define IIC_CNTL_RPST 0x08
+#define IIC_CNTL_AMD 0x40
+#define IIC_CNTL_HMT 0x80
+
+#endif /* __MMIO_REGS_H__ */