[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 7/9] hw/arm/aspeed: firework: Add MAX31785 Fan controllers
From: |
Jae Hyun Yoo |
Subject: |
[PATCH 7/9] hw/arm/aspeed: firework: Add MAX31785 Fan controllers |
Date: |
Wed, 22 Jun 2022 10:28:28 -0700 |
From: Maheswara Kurapati <quic_mkurapat@quicinc.com>
Firework has two MAX31785 Fan controllers at 0x52, and 0x54. Include them
in the model so that the Linux driver populates the sysfs interface.
Signed-off-by: Maheswara Kurapati <quic_mkurapat@quicinc.com>
---
hw/arm/aspeed.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c
index 85630b497793..08e5fc178a94 100644
--- a/hw/arm/aspeed.c
+++ b/hw/arm/aspeed.c
@@ -1046,6 +1046,10 @@ static void
qcom_dc_scm_firework_i2c_init(AspeedMachineState *bmc)
/* I2C4 */
qcom_firework_fru_init(aspeed_i2c_get_bus(&soc->i2c, 4), 0x50, 128 * 1024);
+
+ /* I2C-9 Fan Controller (MAX31785) */
+ i2c_slave_create_simple(aspeed_i2c_get_bus(&soc->i2c, 9), "max31785",
0x52);
+ i2c_slave_create_simple(aspeed_i2c_get_bus(&soc->i2c, 9), "max31785",
0x54);
}
static bool aspeed_get_mmio_exec(Object *obj, Error **errp)
--
2.25.1
[PATCH 2/9] hw/arm/aspeed: add support for the Qualcomm DC-SCM v1 board, Jae Hyun Yoo, 2022/06/22
[PATCH 7/9] hw/arm/aspeed: firework: Add MAX31785 Fan controllers,
Jae Hyun Yoo <=
[PATCH 5/9] hw/i2c: pmbus: Page #255 is valid page for read requests., Jae Hyun Yoo, 2022/06/22
[PATCH 1/9] hw/arm/aspeed: add support for the Qualcomm EVB proto board, Jae Hyun Yoo, 2022/06/22
[PATCH 8/9] hw/arm/aspeed: firework: Add Thermal Diodes, Jae Hyun Yoo, 2022/06/22
[PATCH 9/9] hw/arm/aspeed: firework: add I2C MUXes for VR channels, Jae Hyun Yoo, 2022/06/22
[PATCH 6/9] hw/sensor: add Maxim MAX31785 device, Jae Hyun Yoo, 2022/06/22