* [PATCH v1] Added TMP421 type sensor's support in yosemitev2
@ 2023-03-07 9:52 Karthikeyan Pasupathi
2023-03-07 10:12 ` Cédric Le Goater
0 siblings, 1 reply; 2+ messages in thread
From: Karthikeyan Pasupathi @ 2023-03-07 9:52 UTC (permalink / raw)
To: clg, peter.maydell, andrew, joel, qemu-arm, qemu-devel
Cc: Karthikeyan Pasupathi
Added TMP421 type support in yosemite v2 platform.
Tested: Tested and verified in yosemite V2 platform.
Signed-off-by: Karthikeyan Pasupathi <pkarthikeyan1509@gmail.com>
---
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.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH v1] Added TMP421 type sensor's support in yosemitev2
2023-03-07 9:52 [PATCH v1] Added TMP421 type sensor's support in yosemitev2 Karthikeyan Pasupathi
@ 2023-03-07 10:12 ` Cédric Le Goater
0 siblings, 0 replies; 2+ messages in thread
From: Cédric Le Goater @ 2023-03-07 10:12 UTC (permalink / raw)
To: Karthikeyan Pasupathi, peter.maydell, andrew, joel, qemu-arm,
qemu-devel
On 3/7/23 10:52, Karthikeyan Pasupathi wrote:
> 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>
Thanks,
C.
> ---
> 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)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-03-07 10:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-07 9:52 [PATCH v1] Added TMP421 type sensor's support in yosemitev2 Karthikeyan Pasupathi
2023-03-07 10:12 ` Cédric Le Goater
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).