summaryrefslogtreecommitdiff
path: root/leon3.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2023-07-20 19:47:31 +0200
committerJiri Gaisler <jiri@gaisler.se>2023-09-29 14:40:24 +0200
commitea7db5c21e98d39c95dd520b864c0b69e8f0e65d (patch)
tree29d81a2fa15ae6d7535532ed422c34b4ecbb51bd /leon3.c
parent9756ed371db6fc1babe3949a738d9e2f676d141e (diff)
Add basic DSU support present on GR712RCHEADmaster
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.
Diffstat (limited to 'leon3.c')
-rw-r--r--leon3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/leon3.c b/leon3.c
index d833689..0bf6cbe 100644
--- a/leon3.c
+++ b/leon3.c
@@ -65,6 +65,7 @@ init_sim (void)
grlib_ahbs_add (&apbmst, 0, APBSTART, 0xFFF);
grlib_ahbs_add (&sdctrl, 0, RAM_START, RAM_MASKPP);
+ grlib_ahbs_add (&dsu, 0, 0x90000000, 0xFFF);
grlib_apb_add (&apbuart, 3, APBSTART + 0x100, 0xFFF);
grlib_apb_add (&irqmp, 0, APBSTART + 0x200, 0xFFF);