[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 7/7] hw/arm/aspeed: firework: add I2C MUXes for VR channels
From: |
Jae Hyun Yoo |
Subject: |
[PATCH v2 7/7] hw/arm/aspeed: firework: add I2C MUXes for VR channels |
Date: |
Mon, 27 Jun 2022 08:47:03 -0700 |
Add 2-level cascaded I2C MUXes for SOC VR channels into the Firework
machine.
Signed-off-by: Jae Hyun Yoo <quic_jaehyoo@quicinc.com>
---
Changes in v2:
* None
hw/arm/aspeed.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c
index cfc322ee30e9..1708a8f3408d 100644
--- a/hw/arm/aspeed.c
+++ b/hw/arm/aspeed.c
@@ -1002,13 +1002,21 @@ static void qcom_dc_scm_bmc_i2c_init(AspeedMachineState
*bmc)
static void qcom_dc_scm_firework_i2c_init(AspeedMachineState *bmc)
{
AspeedSoCState *soc = &bmc->soc;
- I2CSlave *therm_mux;
+ I2CSlave *therm_mux, *cpuvr_mux;
/* Create the generic DC-SCM hardware */
qcom_dc_scm_bmc_i2c_init(bmc);
/* Now create the Firework specific hardware */
+ /* I2C7 CPUVR MUX */
+ cpuvr_mux = i2c_slave_create_simple(aspeed_i2c_get_bus(&soc->i2c, 7),
+ "pca9546", 0x70);
+ i2c_slave_create_simple(pca954x_i2c_get_bus(cpuvr_mux, 0), "pca9548",
0x72);
+ i2c_slave_create_simple(pca954x_i2c_get_bus(cpuvr_mux, 1), "pca9548",
0x72);
+ i2c_slave_create_simple(pca954x_i2c_get_bus(cpuvr_mux, 2), "pca9548",
0x72);
+ i2c_slave_create_simple(pca954x_i2c_get_bus(cpuvr_mux, 3), "pca9548",
0x72);
+
/* I2C8 Thermal Diodes*/
therm_mux = i2c_slave_create_simple(aspeed_i2c_get_bus(&soc->i2c, 8),
"pca9548", 0x70);
--
2.25.1
- [PATCH v2 2/7] hw/arm/aspeed: add Qualcomm Firework BMC machine, (continued)
- [PATCH v2 2/7] hw/arm/aspeed: add Qualcomm Firework BMC machine, Jae Hyun Yoo, 2022/06/27
- [PATCH v2 3/7] hw/i2c: pmbus: Page #255 is valid page for read requests., Jae Hyun Yoo, 2022/06/27
- [PATCH v2 5/7] hw/arm/aspeed: Add MAX31785 Fan controllers, Jae Hyun Yoo, 2022/06/27
- [PATCH v2 4/7] hw/sensor: add Maxim MAX31785 device, Jae Hyun Yoo, 2022/06/27
- [PATCH v2 6/7] hw/arm/aspeed: firework: Add Thermal Diodes, Jae Hyun Yoo, 2022/06/27
- [PATCH v2 7/7] hw/arm/aspeed: firework: add I2C MUXes for VR channels,
Jae Hyun Yoo <=
- [PATCH v2 1/7] hw/arm/aspeed: add support for the Qualcomm DC-SCM v1 board, Jae Hyun Yoo, 2022/06/27
- Re: [PATCH v2 0/7] Add Qualcomm BMC machines, Cédric Le Goater, 2022/06/27