mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
ppc/pnv: add initial IPMI sensors for the BMC simulator
Skiboot, the firmware for the PowerNV platform, expects the BMC to provide some specific IPMI sensors. These sensors are exposed in the device tree and their values are updated by the firmware at boot time. Sensors of interest are : "FW Boot Progress" "Boot Count" As such a device is defined on the command line, we can only detect its presence at reset time. Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
04f6c8b2c0
commit
aeaef83dab
4 changed files with 112 additions and 1 deletions
|
@ -118,6 +118,8 @@ typedef struct PnvChipClass {
|
|||
#define POWERNV_MACHINE(obj) \
|
||||
OBJECT_CHECK(PnvMachineState, (obj), TYPE_POWERNV_MACHINE)
|
||||
|
||||
typedef struct IPMIBmc IPMIBmc;
|
||||
|
||||
typedef struct PnvMachineState {
|
||||
/*< private >*/
|
||||
MachineState parent_obj;
|
||||
|
@ -130,11 +132,18 @@ typedef struct PnvMachineState {
|
|||
|
||||
ISABus *isa_bus;
|
||||
uint32_t cpld_irqstate;
|
||||
|
||||
IPMIBmc *bmc;
|
||||
} PnvMachineState;
|
||||
|
||||
#define PNV_FDT_ADDR 0x01000000
|
||||
#define PNV_TIMEBASE_FREQ 512000000ULL
|
||||
|
||||
/*
|
||||
* BMC helpers
|
||||
*/
|
||||
void pnv_bmc_populate_sensors(IPMIBmc *bmc, void *fdt);
|
||||
|
||||
/*
|
||||
* POWER8 MMIO base addresses
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue