From 40514908f6c5743762a7c3301b396c9a059213a8 Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Tue, 14 Jul 2020 12:47:08 +0100 Subject: [PATCH] dev-arm: Instantiate Generic Watchdog in Foundation platform Change-Id: I75496eeabeabb81804d4055f8257309324d6476a Signed-off-by: Giacomo Travaglini Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/39700 Reviewed-by: Andreas Sandberg Maintainer: Andreas Sandberg Tested-by: kokoro --- src/dev/arm/RealView.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/dev/arm/RealView.py b/src/dev/arm/RealView.py index 588e4a901..0b5fddadd 100644 --- a/src/dev/arm/RealView.py +++ b/src/dev/arm/RealView.py @@ -1085,6 +1085,11 @@ Interrupts: ### On-chip devices ### + el2_watchdog = GenericWatchdog( + control_start=0x2a440000, + refresh_start=0x2a450000, + ws0=ArmSPI(num=59), ws1=ArmSPI(num=60)) + # Trusted Watchdog, SP805 trusted_watchdog = Sp805(pio_addr=0x2a490000, interrupt=ArmSPI(num=56)) @@ -1109,6 +1114,7 @@ Interrupts: def _on_chip_devices(self): return [ self.generic_timer_mem, + self.el2_watchdog, self.trusted_watchdog, self.system_watchdog ] + self.generic_timer_mem.frames -- 2.30.2