From 24fbdd9c48a85f1ae6c83a8817bd232a63f2b068 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Fri, 25 Jun 2021 23:55:50 +0800 Subject: [PATCH] emulation: check in newly-minted i2c drivers Signed-off-by: Sean Cross --- emulation/soc/betrusted-soc.repl | 5 ++++- emulation/xous-release.resc | 15 +++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/emulation/soc/betrusted-soc.repl b/emulation/soc/betrusted-soc.repl index 44cba9fb4..43050e33b 100755 --- a/emulation/soc/betrusted-soc.repl +++ b/emulation/soc/betrusted-soc.repl @@ -32,7 +32,8 @@ memlcd: Video.BetrustedLCD @ sysbus 0xf000c000 // Unrecognized peripheral: com -// Unrecognized peripheral: i2c +i2c: I2C.BetrustedI2C @ sysbus 0xf000e000 + -> cpu @ 1006 // Unrecognized peripheral: btevents @@ -113,6 +114,8 @@ engine: Memory.MappedMemory @ sysbus 0xe0020000 +abracom_rtc: Sensors.ABRTCMC @ i2c 0x68 + sysbus: init: ApplySVD @soc/renode.svd diff --git a/emulation/xous-release.resc b/emulation/xous-release.resc index 9768b4291..3f47b9e01 100644 --- a/emulation/xous-release.resc +++ b/emulation/xous-release.resc @@ -8,6 +8,8 @@ using sysbus # Add peripherals that are defined in C#. You must restart Renode # if you modify these files. +i @peripherals/ABRTCMC.cs +i @peripherals/BetrustedI2C.cs i @peripherals/keyboard.cs i @peripherals/LiteX_Timer_32.cs i @peripherals/memlcd.cs @@ -27,14 +29,15 @@ showAnalyzer memlcd sysbus Tag <0xB0000000, 0xB0006000> "Framebuffer" -# Silence WDT -sysbus SilenceRange <0xF001F000, 0xF001FFFF> - -# Silence I2C -sysbus SilenceRange <0xF000D000, 0xF000DFFF> - # logLevel -1 keyboard # logLevel -1 ticktimer +logLevel -1 i2c +logLevel -1 abracom_rtc + +# Silence COM and WDT and WFI +sysbus SilenceRange <0xF000D000, 0xF000DFFF> +sysbus SilenceRange <0xF0021000, 0xF0021FFF> +sysbus SilenceRange <0xF0023000, 0xF0023FFF> # The macro `reset` gets called implicitly when running `machine Reset` macro reset