[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 3/5] hw/arm/aspeed: Added TMP421 type sensor's support in yosemite
From: |
Cédric Le Goater |
Subject: |
[PULL 3/5] hw/arm/aspeed: Added TMP421 type sensor's support in yosemitev2 |
Date: |
Tue, 7 Mar 2023 16:55:26 +0100 |
From: Karthikeyan Pasupathi <pkarthikeyan1509@gmail.com>
Added TMP421 type support in yosemite v2 platform.
Tested: Tested and verified in yosemite V2 platform.
Signed-off-by: Karthikeyan Pasupathi <pkarthikeyan1509@gmail.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20230307095239.3583613-1-pkarthikeyan1509@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
---
hw/arm/aspeed.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c
index 86601cb1a5..7b5e603bc4 100644
--- a/hw/arm/aspeed.c
+++ b/hw/arm/aspeed.c
@@ -524,6 +524,11 @@ static void yosemitev2_bmc_i2c_init(AspeedMachineState
*bmc)
at24c_eeprom_init(aspeed_i2c_get_bus(&soc->i2c, 4), 0x51, 128 * KiB);
at24c_eeprom_init_rom(aspeed_i2c_get_bus(&soc->i2c, 8), 0x51, 128 * KiB,
yosemitev2_bmc_fruid, yosemitev2_bmc_fruid_len);
+ /* TMP421 */
+ i2c_slave_create_simple(aspeed_i2c_get_bus(&soc->i2c, 11), "tmp421", 0x1f);
+ i2c_slave_create_simple(aspeed_i2c_get_bus(&soc->i2c, 9), "tmp421", 0x4e);
+ i2c_slave_create_simple(aspeed_i2c_get_bus(&soc->i2c, 9), "tmp421", 0x4f);
+
}
static void romulus_bmc_i2c_init(AspeedMachineState *bmc)
--
2.39.2
- [PULL 0/5] aspeed queue, Cédric Le Goater, 2023/03/07
- [PULL 3/5] hw/arm/aspeed: Added TMP421 type sensor's support in yosemitev2,
Cédric Le Goater <=
- [PULL 4/5] hw/arm/aspeed: Added TMP421 type sensor's support in tiogapass, Cédric Le Goater, 2023/03/07
- [PULL 2/5] pflash: Fix blk_pread_nonzeroes(), Cédric Le Goater, 2023/03/07
- [PULL 1/5] m25p80: Improve error when the backend file size does not match the device, Cédric Le Goater, 2023/03/07
- [PULL 5/5] hw/arm/aspeed: Modified BMC FRU byte data in yosemitev2, Cédric Le Goater, 2023/03/07
- Re: [PULL 0/5] aspeed queue, Peter Maydell, 2023/03/09