sim: Add i2c peripherals to SC/SMC i2c0-2 and cam_i2c are implemented in top_matcha already. host_i2c has not been added to top_matcha, will update the address if necessary. Change-Id: I4bdbc6b9b33b48bb9f2f9ff5e916b43f47ee2dac
diff --git a/platforms/secure.repl b/platforms/secure.repl index cf7957a..2cbb2fe 100644 --- a/platforms/secure.repl +++ b/platforms/secure.repl
@@ -83,9 +83,16 @@ // SPI_Device [‘h4005_0000 - ‘h4005_1FFF) 8KB SPI Device // SPI_HOST0 [‘h4006_0000 - ‘h4006_0FFF) 4KB SPI HOST 0 // SPI_HOST1 [‘h4007_0000 - ‘h4007_0FFF) 4KB SPI HOST 1 + // I2C0 [‘h4008_0000 - ‘h4008_0FFF) 4KB I2C0 +i2c0: I2C.OpenTitan_I2C @ sysbus 0x40080000 + // I2C1 [‘h4009_0000 - ‘h4009_0FFF) 4KB I2C1 +i2c1: I2C.OpenTitan_I2C @ sysbus 0x40090000 + // I2C2 [‘h400A_0000 - ‘h400A_0FFF) 4KB I2C2 +i2c2: I2C.OpenTitan_I2C @ sysbus 0x400A0000 + // PATGEN [‘h400E_0000 - ‘h400E_0FFF) 4KB PATGEN // RV_TIMER [‘h4010_0000 - ‘h4010_0FFF) 4KB RV Timer for Security Core
diff --git a/platforms/smc.repl b/platforms/smc.repl index fc6e91c..fbcade1 100644 --- a/platforms/smc.repl +++ b/platforms/smc.repl
@@ -67,6 +67,12 @@ frequency: 24000000 IRQ -> smc_plic@31 +// I2C host connection to camera +cam_i2c: I2C.OpenTitan_I2C @ sysbus 0x54040000 + +// I2C device connection to external host +ext_host_i2c: I2C.OpenTitan_I2C @ sysbus 0x54050000 + // Tag memory for debugging sysbus: init: