ppc/pnv: Add support for "hostboot" mode

When the "hb-mode" option is activated on the powernv machine, the
firmware is mapped at 0x8000000 and the HRMOR of the HW threads are
set to the same address.

The PNOR mapping on the FW address space of the LPC bus is left enabled
to let the firmware load any other images required to boot the host.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20200127144154.10170-4-clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
Cédric Le Goater 2020-01-27 15:41:54 +01:00 committed by David Gibson
parent 59942f0ebb
commit 08c3f3a734
5 changed files with 37 additions and 2 deletions

View file

@ -217,6 +217,8 @@ struct PnvMachineState {
Notifier powerdown_notifier;
PnvPnor *pnor;
hwaddr fw_load_addr;
};
#define PNV_FDT_ADDR 0x01000000

View file

@ -40,6 +40,7 @@ typedef struct PnvCore {
/*< public >*/
PowerPCCPU **threads;
uint32_t pir;
uint64_t hrmor;
PnvChip *chip;
MemoryRegion xscom_regs;