summaryrefslogtreecommitdiffstats
path: root/grlib.h
diff options
context:
space:
mode:
authorJiri Gaisler <jiri@gaisler.se>2020-12-05 17:49:25 +0100
committerJiri Gaisler <jiri@gaisler.se>2020-12-15 15:28:09 +0100
commit36b4b0a9b95a351fc99ca3224503dab9e29af865 (patch)
tree2364018e2cc1e3118672e841b84bc545caf316a8 /grlib.h
parentAdded emulation of GR740 SOC (diff)
downloadsis-36b4b0a9b95a351fc99ca3224503dab9e29af865.tar.bz2
Added support for RISCV32 systems with CLINT/PLIC
Diffstat (limited to 'grlib.h')
-rw-r--r--grlib.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/grlib.h b/grlib.h
index 6d7606b..235d56a 100644
--- a/grlib.h
+++ b/grlib.h
@@ -26,6 +26,7 @@
#define VENDOR_GAISLER 1
#define VENDOR_PENDER 2
#define VENDOR_ESA 4
+#define VENDOR_CONTRIB 9
#define VENDOR_DLR 10
/* Devices */
@@ -33,11 +34,16 @@
#define GAISLER_LEON3 0x003
#define GAISLER_APBMST 0x006
#define GAISLER_SRCTRL 0x008
+#define GAISLER_SDCTRL 0x009
#define GAISLER_APBUART 0x00C
#define GAISLER_IRQMP 0x00D
#define GAISLER_GPTIMER 0x011
#define GAISLER_GRETH 0x01D
#define ESA_MCTRL 0x00F
+#define CONTRIB_NS16550 0x050
+#define CONTRIB_CLINT 0x051
+#define CONTRIB_PLIC 0x052
+#define CONTRIB_S5TEST 0x053
/* How to build entries in the plug&play area */
@@ -98,4 +104,4 @@ extern void apbuart_restore_stdio (void);
extern void apbuart_close_port (void);
extern void apbuart_flush (void);
extern const struct grlib_ipcore gptimer, irqmp, apbuart, apbmst,
- greth, leon3s, srctrl;
+ greth, leon3s, srctrl, ns16550, clint, plic, sdctrl, s5test;