diff options
author | Karthikeyan Pasupathi <pkarthikeyan1509@gmail.com> | 2023-03-07 16:53:18 +0100 |
---|---|---|
committer | Cédric Le Goater <clg@kaod.org> | 2023-03-07 16:53:18 +0100 |
commit | a09d357dd33e93eff4f7aca503dd1e5d4f279b21 (patch) | |
tree | 8245ef54ca55997dfce6f0cfd7d4a8d18670e27b /hw/arm | |
parent | 0a1f86bac9672fe34654ed001b0edfb660f7a1ba (diff) | |
download | qemu-a09d357dd33e93eff4f7aca503dd1e5d4f279b21.zip qemu-a09d357dd33e93eff4f7aca503dd1e5d4f279b21.tar.gz qemu-a09d357dd33e93eff4f7aca503dd1e5d4f279b21.tar.bz2 |
hw/arm/aspeed: Added TMP421 type sensor's support in tiogapass
Added TMP421 type sensor support in tiogapass platform.
Tested: Tested and verified in tiogapass platform.
Signed-off-by: Karthikeyan Pasupathi <pkarthikeyan1509@gmail.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20230307103334.3586755-1-pkarthikeyan1509@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'hw/arm')
-rw-r--r-- | hw/arm/aspeed.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c index 7b5e603..c1f2b9c 100644 --- a/hw/arm/aspeed.c +++ b/hw/arm/aspeed.c @@ -547,6 +547,10 @@ static void tiogapass_bmc_i2c_init(AspeedMachineState *bmc) at24c_eeprom_init(aspeed_i2c_get_bus(&soc->i2c, 4), 0x54, 128 * KiB); at24c_eeprom_init_rom(aspeed_i2c_get_bus(&soc->i2c, 6), 0x54, 128 * KiB, tiogapass_bmc_fruid, tiogapass_bmc_fruid_len); + /* TMP421 */ + i2c_slave_create_simple(aspeed_i2c_get_bus(&soc->i2c, 8), "tmp421", 0x1f); + i2c_slave_create_simple(aspeed_i2c_get_bus(&soc->i2c, 6), "tmp421", 0x4f); + i2c_slave_create_simple(aspeed_i2c_get_bus(&soc->i2c, 6), "tmp421", 0x4e); } static void create_pca9552(AspeedSoCState *soc, int bus_id, int addr) |