ppc/pnv: Add HIOMAP commands
commitca661fae81d3b36b72c316a63165d9318dbd2439
authorCédric Le Goater <clg@kaod.org>
Mon, 28 Oct 2019 07:00:27 +0000 (28 08:00 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 16 Dec 2019 23:39:47 +0000 (17 10:39 +1100)
tree5171d2957f99f67c48132c71de30eff9d7ace561
parented8da05cdb18a32a8a41165d5b7b367bc05fdab0
ppc/pnv: Add HIOMAP commands

This activates HIOMAP support on the QEMU PowerNV machine. The PnvPnor
model is used to access the flash contents. The model simply maps the
contents at a fix offset and enables or disables the mapping.

HIOMAP Protocol description :

  https://github.com/openbmc/hiomapd/blob/master/Documentation/protocol.md

Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20191028070027.22752-3-clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/pnv.c
hw/ppc/pnv_bmc.c
hw/ppc/pnv_lpc.c
include/hw/ppc/pnv.h
include/hw/ppc/pnv_pnor.h