dev-arm: Add trusted SP805 to VExpress_GEM5 platform
authorAdrian Herrera <adrian.herrera@arm.com>
Mon, 24 Feb 2020 11:14:47 +0000 (11:14 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Mon, 2 Mar 2020 10:06:30 +0000 (10:06 +0000)
This watchdog is present in the VE RS2 memory map when security is
enabled.

Change-Id: I732debf4d3e987a351cc09ca7206ef40b52ada41
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Ciro Santilli <ciro.santilli@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25985
Tested-by: kokoro <noreply+kokoro@google.com>
src/dev/arm/RealView.py

index fb917312864e9a51af57032437ef4d685441de09..2225d87655a701e5f9737e60190cef25c127e9e5 100644 (file)
@@ -901,6 +901,7 @@ Memory map:
        0x1c170000-0x1c17ffff: RTC
 
    0x20000000-0x3fffffff: On-chip peripherals:
+       0x2a490000-0x2a49ffff: Trusted Watchdog (SP805)
        0x2b000000-0x2b00ffff: HDLCD
 
        0x2b060000-0x2b060fff: System Watchdog (SP805)
@@ -944,6 +945,7 @@ Interrupts:
         46   : Reserved (CLCD)
         47   : Reserved (Ethernet)
         48   : Reserved (USB)
+        56   : Trusted Watchdog (SP805)
     95-255: On-chip interrupt sources (we use these for
             gem5-specific devices, SPIs)
          74    : VirtIO (gem5/FM extension)
@@ -985,6 +987,10 @@ Interrupts:
     dcc = CoreTile2A15DCC()
 
     ### On-chip devices ###
+
+    # Trusted Watchdog, SP805
+    trusted_watchdog = Sp805(pio_addr=0x2a490000, int_num=56)
+
     generic_timer = GenericTimer(int_phys_s=ArmPPI(num=29),
                                  int_phys_ns=ArmPPI(num=30),
                                  int_virt=ArmPPI(num=27),
@@ -995,6 +1001,7 @@ Interrupts:
     def _on_chip_devices(self):
         return [
             self.generic_timer,
+            self.trusted_watchdog,
             self.system_watchdog
         ]