hw/ast: Make PNOR offset on LPC a variable

Read the configuration from the BMC in order to be compatible
with different size flash chips.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
libflash: Sync with pflash 0.8.3

Fixes 64MB chip support, improve Macronix settings, add Micron
chip support, etc...

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
console: Move dummy_console_add_nodes() to common code

All the platforms basically do the same thing

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
uart: Give UART it's own OPAL console callbacks instead of dummy console

This means the Linux output no longer gets into our internal log,
which makes dumping of it from Linux a lot nicer. It will also allow
us to improve the way we do the bufferring for Linux and to exploit
eventually the TX interrupts. It will also allow us to implement
some form of timeouts for the OPAL console variant of it so we don't
get stuck of the BMC doesn't consume from the virtual UART.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
uart: Add interrupt driver output ring buffer for Linux ouput

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
uart: Keep synchronous console flush when IRQ not working

Some boards are missing an EC for interrupts (or might not have
the FPGA properly flashed). In that case the serial interrupt isn't
working.

We attempt to detect this by enabling all interrupts by default and
when the first one occurs, we mark interrupts as "functional".

Until they are detected as such, we keep all output flushes fully
synchronous.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
uart: Use prlog instead of printf

And use PR_DEBUG for everything

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Quieten a couple more things

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
HBRT: Cleanup log output

A line was way too long...

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
hw/ast: Print something decent for PNOR LPC offset

Print the actual offset rather than the register content and
use PR_DEBUG log level

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>