aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2022-01-07 17:08:00 +0000
committerPeter Maydell <peter.maydell@linaro.org>2022-01-07 17:08:00 +0000
commit5b0829d38cccdbf05531521e45bbaf87a2f98402 (patch)
treeadee73c7fd11723d6f2859e6b9610f37a205bac1
parentb27de2c57b28eac963fa0e35cad8a2a3b7977fc4 (diff)
hw/arm: add i2c muxes to kudo-bmc
Signed-off-by: Patrick Venture <venture@google.com> Reviewed-by: Hao Wu <wuhaotsh@google.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20220102215844.2888833-4-venture@google.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--hw/arm/npcm7xx_boards.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/arm/npcm7xx_boards.c b/hw/arm/npcm7xx_boards.c
index 257bf638fd..4cd58972c5 100644
--- a/hw/arm/npcm7xx_boards.c
+++ b/hw/arm/npcm7xx_boards.c
@@ -330,8 +330,17 @@ static void quanta_gbs_i2c_init(NPCM7xxState *soc)
static void kudo_bmc_i2c_init(NPCM7xxState *soc)
{
+ i2c_slave_create_simple(npcm7xx_i2c_get_bus(soc, 1), TYPE_PCA9548, 0x75);
+ i2c_slave_create_simple(npcm7xx_i2c_get_bus(soc, 1), TYPE_PCA9548, 0x77);
+
+ i2c_slave_create_simple(npcm7xx_i2c_get_bus(soc, 4), TYPE_PCA9548, 0x77);
+
at24c_eeprom_init(soc, 4, 0x50, 8192); /* mbfru */
+
+ i2c_slave_create_simple(npcm7xx_i2c_get_bus(soc, 13), TYPE_PCA9548, 0x77);
+
at24c_eeprom_init(soc, 14, 0x55, 8192); /* bmcfru */
+
/* TODO: Add remaining i2c devices. */
}