Hi,
On 9/16/25 19:50, Yubin Zou wrote:
From: Patrick Venture <[email protected]>
Adds eeprom init for aspeed helper method and adds 24c64 eeproms to the
quanta-q71l bmc board.
Tested: Booted quanta-q71l bmc firmware to userspace.
Could you please provide a FW image and functional test for the
quanta-q7l1 board ?
Thanks,
C.
Signed-off-by: Patrick Venture <[email protected]>
---
hw/arm/aspeed.c | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c
index
c31bbe7701381f6980e874f9fca51805ff9fb9b4..bae59ae7394882e3fc93863049a37ff5a8737ff8
100644
--- a/hw/arm/aspeed.c
+++ b/hw/arm/aspeed.c
@@ -561,14 +561,17 @@ static void quanta_q71l_bmc_i2c_init(AspeedMachineState
*bmc)
i2c_slave_create_simple(aspeed_i2c_get_bus(&soc->i2c, 1), "tmp105", 0x4e);
i2c_slave_create_simple(aspeed_i2c_get_bus(&soc->i2c, 1), "tmp105", 0x4f);
- /* TODO: i2c-1: Add baseboard FRU eeprom@54 24c64 */
- /* TODO: i2c-1: Add Frontpanel FRU eeprom@57 24c64 */
+ /* Baseboard FRU */
+ at24c_eeprom_init(aspeed_i2c_get_bus(&soc->i2c, 1), 0x54, 8192);
+ /* Frontpanel FRU */
+ at24c_eeprom_init(aspeed_i2c_get_bus(&soc->i2c, 1), 0x57, 8192);
/* TODO: Add Memory Riser i2c mux and eeproms. */
i2c_slave_create_simple(aspeed_i2c_get_bus(&soc->i2c, 2), "pca9546", 0x74);
i2c_slave_create_simple(aspeed_i2c_get_bus(&soc->i2c, 2), "pca9548",
0x77);
- /* TODO: i2c-3: Add BIOS FRU eeprom@56 24c64 */
+ /* Add BIOS FRU */
+ at24c_eeprom_init(aspeed_i2c_get_bus(&soc->i2c, 3), 0x56, 8192);
/* i2c-7 */
i2c_slave_create_simple(aspeed_i2c_get_bus(&soc->i2c, 7), "pca9546",
0x70);
@@ -577,8 +580,10 @@ static void quanta_q71l_bmc_i2c_init(AspeedMachineState
*bmc)
/* - i2c@2: pmbus@58 */
/* - i2c@3: pmbus@59 */
- /* TODO: i2c-7: Add PDB FRU eeprom@52 */
- /* TODO: i2c-8: Add BMC FRU eeprom@50 */
+ /* PDB FRU */
+ at24c_eeprom_init(aspeed_i2c_get_bus(&soc->i2c, 7), 0x52, 8192);
+ /* BMC FRU */
+ at24c_eeprom_init(aspeed_i2c_get_bus(&soc->i2c, 8), 0x50, 8192);
}
static void ast2500_evb_i2c_init(AspeedMachineState *bmc)