Added TMP421 type sensor's support in tiogapass
PATCH 1/1 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 <[email protected]>
--- hw/arm/aspeed.c | 4 ++++ 1 file changed, 4 insertions(+)
hw/arm/aspeed.c +4 -0
@@ -542,6 +542,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)
Signature · 1 line
2.34.1
Quoted 5 lines · Karthikeyan Pasupathi
Added TMP421 type sensor support in tiogapass platform.
Tested: Tested and verified in tiogapass platform.
Signed-off-by Karthikeyan Pasupathi <[email protected]>
Reviewed-by Cédric Le Goater <[email protected]>
Thanks,
C.
Quoted 19 lines
--- hw/arm/aspeed.c | 4 ++++ 1 file changed, 4 insertions(+)hw/arm/aspeed.c +4
-0@@ -542,6 +542,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)