diff options
author | Chris Rauer <crauer@google.com> | 2022-01-07 17:08:00 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2022-01-07 17:08:00 +0000 |
commit | 560223dcf0d9e83e26a85cec32d8aec272813d8e (patch) | |
tree | 47dab04c06811b29c180a2272b986bcab50f6501 /hw/arm | |
parent | 7f18ac3ab3337f3c83b2ab34001ef7c1bb4a43a7 (diff) | |
download | qemu-560223dcf0d9e83e26a85cec32d8aec272813d8e.zip qemu-560223dcf0d9e83e26a85cec32d8aec272813d8e.tar.gz qemu-560223dcf0d9e83e26a85cec32d8aec272813d8e.tar.bz2 |
hw/arm: Add kudo i2c eeproms.
Signed-off-by: Chris Rauer <crauer@google.com>
Reviewed-by: Hao Wu <wuhaotsh@google.com>
Reviewed-by: Patrick Venture <venture@google.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20220102215844.2888833-2-venture@google.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm')
-rw-r--r-- | hw/arm/npcm7xx_boards.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/arm/npcm7xx_boards.c b/hw/arm/npcm7xx_boards.c index 0866d2f..37de9fe 100644 --- a/hw/arm/npcm7xx_boards.c +++ b/hw/arm/npcm7xx_boards.c @@ -328,6 +328,13 @@ static void quanta_gbs_i2c_init(NPCM7xxState *soc) */ } +static void kudo_bmc_i2c_init(NPCM7xxState *soc) +{ + at24c_eeprom_init(soc, 4, 0x50, 8192); /* mbfru */ + at24c_eeprom_init(soc, 14, 0x55, 8192); /* bmcfru */ + /* TODO: Add remaining i2c devices. */ +} + static void npcm750_evb_init(MachineState *machine) { NPCM7xxState *soc; @@ -391,6 +398,7 @@ static void kudo_bmc_init(MachineState *machine) npcm7xx_connect_flash(&soc->fiu[1], 0, "mx66u51235f", drive_get(IF_MTD, 3, 0)); + kudo_bmc_i2c_init(soc); npcm7xx_load_kernel(machine, soc); } |