From b30e78bd005b6f08e15ea75517eb2e2b293c7b4a Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Sun, 3 Jun 2018 22:39:46 +1000 Subject: 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 --- cf-fsi-fw.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'cf-fsi-fw.h') 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 */ -- cgit v1.2.1