|
|
|
@ -103,6 +103,54 @@ static const uint8_t scm_eeprom[] = { |
|
|
|
}; |
|
|
|
static const size_t scm_eeprom_len = sizeof(scm_eeprom); |
|
|
|
|
|
|
|
/*
|
|
|
|
* "Power Distribution Board" FRU data. Generated with frugen. |
|
|
|
* |
|
|
|
* { |
|
|
|
* "board": { |
|
|
|
* "mfg": "Quanta", |
|
|
|
* "pname": "Catalina PDB MP (QEMU)", |
|
|
|
* "pn": "00000000000", |
|
|
|
* "serial": "00000000000000", |
|
|
|
* "date": "01/12/2025 00:00", |
|
|
|
* "custom": [ |
|
|
|
* "19-100579", |
|
|
|
* "", |
|
|
|
* "", |
|
|
|
* "hsc-ltc fsc-max vr-delta gndsen-ina p12vsen-ina p12vfan-mps" |
|
|
|
* ] |
|
|
|
* }, |
|
|
|
* "product": { |
|
|
|
* "mfg": "Quanta", |
|
|
|
* "pname": "CI-Catalina", |
|
|
|
* "pn": "10000000001", |
|
|
|
* "ver": "MP", |
|
|
|
* "serial": "10000000000000", |
|
|
|
* "atag": "QEMU" |
|
|
|
* } |
|
|
|
* } |
|
|
|
*/ |
|
|
|
static const uint8_t pdb_eeprom[] = { |
|
|
|
0x01, 0x00, 0x00, 0x01, 0x12, 0x00, 0x00, 0xec, 0x01, 0x11, 0x19, 0x8c, |
|
|
|
0x19, 0xf0, 0xc6, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x61, 0xd6, 0x43, 0x61, |
|
|
|
0x74, 0x61, 0x6c, 0x69, 0x6e, 0x61, 0x20, 0x50, 0x44, 0x42, 0x20, 0x4d, |
|
|
|
0x50, 0x20, 0x28, 0x51, 0x45, 0x4d, 0x55, 0x29, 0x8b, 0x10, 0x04, 0x41, |
|
|
|
0x10, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x89, 0x10, 0x04, 0x41, |
|
|
|
0x10, 0x04, 0x41, 0x10, 0x04, 0x01, 0xc0, 0x87, 0x51, 0xd6, 0x44, 0x10, |
|
|
|
0x54, 0x5d, 0x19, 0xc0, 0xc0, 0xfb, 0x68, 0x73, 0x63, 0x2d, 0x6c, 0x74, |
|
|
|
0x63, 0x20, 0x66, 0x73, 0x63, 0x2d, 0x6d, 0x61, 0x78, 0x20, 0x76, 0x72, |
|
|
|
0x2d, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x20, 0x67, 0x6e, 0x64, 0x73, 0x65, |
|
|
|
0x6e, 0x2d, 0x69, 0x6e, 0x61, 0x20, 0x70, 0x31, 0x32, 0x76, 0x73, 0x65, |
|
|
|
0x6e, 0x2d, 0x69, 0x6e, 0x61, 0x20, 0x70, 0x31, 0x32, 0x76, 0x66, 0x61, |
|
|
|
0x6e, 0x2d, 0x6d, 0x70, 0x73, 0xc1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, |
|
|
|
0x01, 0x07, 0x19, 0xc6, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x61, 0xcb, 0x43, |
|
|
|
0x49, 0x2d, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x69, 0x6e, 0x61, 0x89, 0x11, |
|
|
|
0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x14, 0x01, 0x82, 0x2d, 0x0c, 0x8b, |
|
|
|
0x11, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x83, |
|
|
|
0x71, 0xd9, 0xd6, 0xc0, 0xc1, 0x00, 0x00, 0x37 |
|
|
|
}; |
|
|
|
static const size_t pdb_eeprom_len = sizeof(pdb_eeprom); |
|
|
|
|
|
|
|
static void catalina_bmc_i2c_init(AspeedMachineState *bmc) |
|
|
|
{ |
|
|
|
/* Reference from v6.16-rc2 aspeed-bmc-facebook-catalina.dts */ |
|
|
|
@ -166,7 +214,8 @@ static void catalina_bmc_i2c_init(AspeedMachineState *bmc) |
|
|
|
|
|
|
|
/* i2c1mux0ch5 */ |
|
|
|
/* eeprom@54 */ |
|
|
|
at24c_eeprom_init(pca954x_i2c_get_bus(i2c_mux, 5), 0x54, 8 * KiB); |
|
|
|
at24c_eeprom_init_rom(pca954x_i2c_get_bus(i2c_mux, 5), 0x54, 8 * KiB, |
|
|
|
pdb_eeprom, pdb_eeprom_len); |
|
|
|
/* tpm75@4f */ |
|
|
|
i2c_slave_create_simple(pca954x_i2c_get_bus(i2c_mux, 5), TYPE_TMP75, 0x4f); |
|
|
|
|
|
|
|
|