summaryrefslogtreecommitdiffstats
path: root/cf-fsi-fw.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-03 22:39:46 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-03 23:05:00 +1000
commitb30e78bd005b6f08e15ea75517eb2e2b293c7b4a (patch)
tree1f29db7cc4b7472163ce407066b0d50992047461 /cf-fsi-fw.h
parent5d8d096fc0db68e7f62e9ae0e24f65694e09ed41 (diff)
downloadcf-fsi-b30e78bd005b6f08e15ea75517eb2e2b293c7b4a.tar.gz
cf-fsi-b30e78bd005b6f08e15ea75517eb2e2b293c7b4a.zip
Add arbitration mechanism
This will be used by the kernel GPIO driver to synchronize with the CF when accessing GPIO shared with FSI. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'cf-fsi-fw.h')
-rw-r--r--cf-fsi-fw.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/cf-fsi-fw.h b/cf-fsi-fw.h
index 44bd8cc..36df3c9 100644
--- a/cf-fsi-fw.h
+++ b/cf-fsi-fw.h
@@ -2,7 +2,7 @@
#define __CF_FSI_FW_H
/*
- * SRAM layout
+ * SRAM layout: Main part
*/
/* Command register:
@@ -74,7 +74,7 @@
/* Misc */
#define INT_CNT 0x30 /* 32-bit interrupt count */
#define BAD_INT_VEC 0x34
-#define TRACEBUF 0x40
+#define TRACEBUF 0x100
#define TR_CLKOSTART 0x00
#define TR_OLEN 0x01/* + len */
#define TR_CLKOBIT0 0x02
@@ -87,5 +87,12 @@
#define TR_CLKIBIT0 0x80
#define TR_CLKIBIT1 0x81
+/*
+ * SRAM layout: GPIO arbitration part
+ */
+#define ARB_REG 0x40
+#define ARB_ARM_REQ 0x01
+#define ARB_ARM_ACK 0x02
+
#endif /* __CF_FSI_FW_H */
OpenPOWER on IntegriCloud