mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
ppc/pnv: Add a PNOR model
On a POWERPC PowerNV system, the host firmware is stored in a PNOR flash chip which contents is mapped on the LPC bus. This model adds a simple dummy device to map the contents of a block device in the host address space. Signed-off-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20191021131215.3693-2-clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
cb88904a54
commit
35dde57662
5 changed files with 180 additions and 1 deletions
|
@ -24,6 +24,7 @@
|
|||
#include "hw/sysbus.h"
|
||||
#include "hw/ipmi/ipmi.h"
|
||||
#include "hw/ppc/pnv_lpc.h"
|
||||
#include "hw/ppc/pnv_pnor.h"
|
||||
#include "hw/ppc/pnv_psi.h"
|
||||
#include "hw/ppc/pnv_occ.h"
|
||||
#include "hw/ppc/pnv_homer.h"
|
||||
|
@ -175,6 +176,8 @@ typedef struct PnvMachineState {
|
|||
|
||||
IPMIBmc *bmc;
|
||||
Notifier powerdown_notifier;
|
||||
|
||||
PnvPnor *pnor;
|
||||
} PnvMachineState;
|
||||
|
||||
static inline bool pnv_chip_is_power9(const PnvChip *chip)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue