Import pflash 0.8.6

We share code, it's easier to maintain it this way

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
external: Add the memboot utility

The memboot tool is a small utility designed to be run on the ASPEED
BMC used in some OpenPower systems. It allows you to boot the P8 host
from the main system memory of the BMC rather than from the flash
memory.

Signed-off-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
i2c: Provide FFDC data in the driver

Define SRCs of I2C component and interface with the existing
skiboot 'errorlog' infrasturcute for commiting the logs. Add the
i2c specific OPAL error codes to differentiate various types of
errors during i2c operations.

To ease debugging, dump the i2c register contents, 'master' and
'request' structure bits in case any error occured during transfer
on the bus. Minor clean-ups as well.

Signed-off-by: Neelesh Gupta <neelegup@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
i2c: Update DT bindings and minor changes

The i2c bus frequency is now per port and we use more standard properties
this and the clock frequency of the master cell itself.

Also use "ibm,opal-i2c" as a compatible match to indicate that the DT node
is compatible with the OPAL APIs, whether it's a P8 i2c bus or something
else (we will eventually expose the centaur i2c's too for example).

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
timer: Change property name "ibm,heartbeat-freq" -> "ibm,heartbeat-ms"

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
platforms/astbmc: Temporary reboot workaround

The BMC does not currently support the IPMI_RESET (03h) chassis power
control command. In order to have reboot working in the interim, send a
POWER_CYCLE (02h) instead.

This should be reverted once the BMC has support for 03h to ensure we
follow the specification.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>