hw/arm: kudo add lm75s behind bus 1 switch at 75
PATCH 1/1 hw/arm: kudo add lm75s behind bus 1 switch at 75
Reviewed-by Hao Wu <[email protected]>
Signed-off-by Patrick Venture <[email protected]>
--- hw/arm/npcm7xx_boards.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
hw/arm/npcm7xx_boards.c +9 -1
@@ -332,7 +332,15 @@ static void kudo_bmc_i2c_init(NPCM7xxState *soc) {I2CSlave *i2c_mux; -i2c_slave_create_simple (npcm7xx_i2c_get_bus (soc,1 ),TYPE_PCA9548 ,0x75 ); + i2c_mux =i2c_slave_create_simple (npcm7xx_i2c_get_bus (soc,1 ), +TYPE_PCA9548 ,0x75 ); + +/* tmp105 is compatible with the lm75 */ +i2c_slave_create_simple (pca954x_i2c_get_bus (i2c_mux,4 ),"tmp105" ,0x5c ); +i2c_slave_create_simple (pca954x_i2c_get_bus (i2c_mux,5 ),"tmp105" ,0x5c ); +i2c_slave_create_simple (pca954x_i2c_get_bus (i2c_mux,6 ),"tmp105" ,0x5c ); +i2c_slave_create_simple (pca954x_i2c_get_bus (i2c_mux,7 ),"tmp105" ,0x5c ); +i2c_slave_create_simple (npcm7xx_i2c_get_bus (soc,1 ),TYPE_PCA9548 ,0x77 );i2c_slave_create_simple (npcm7xx_i2c_get_bus (soc,4 ),TYPE_PCA9548 ,0x77 );
Signature · 1 line
2.34.1.575.g55b058a8bb-goog
Peter Maydell
AppliedQuoted 6 lines · Patrick Venture
Reviewed-by Hao Wu <[email protected]>Signed-off-by Patrick Venture <[email protected]>--- hw/arm/npcm7xx_boards.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
Applied to target-arm.next, thanks.
-- PMM