From ea7db5c21e98d39c95dd520b864c0b69e8f0e65d Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 20 Jul 2023 19:47:31 +0200 Subject: Add basic DSU support present on GR712RC Only the time tag counter register is implemented so far. It may be used by clock drivers as a free-running counter to measure time. --- grlib.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'grlib.h') diff --git a/grlib.h b/grlib.h index b182884..a88cb6b 100644 --- a/grlib.h +++ b/grlib.h @@ -32,6 +32,7 @@ /* Devices */ #define GAISLER_LEON3 0x003 +#define GAISLER_DSU 0x004 #define GAISLER_APBMST 0x006 #define GAISLER_SRCTRL 0x008 #define GAISLER_SDCTRL 0x009 @@ -105,4 +106,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, l2c, leon3s, srctrl, ns16550, clint, plic, sdctrl, s5test; + dsu, greth, l2c, leon3s, srctrl, ns16550, clint, plic, sdctrl, s5test; -- cgit v1.2.3