aboutsummaryrefslogtreecommitdiff
path: root/hw/lpc-uart.c
AgeCommit message (Collapse)AuthorFilesLines
2014-10-15uart: Works better if we actually allocate out_bufBenjamin Herrenschmidt1-0/+1
That got lost during a rebase ... oops. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2014-10-15uart: Fix thinko in output ring pointersBenjamin Herrenschmidt1-2/+2
I accidentally typed uint8_t instead of uint32_t... thanks Joel. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2014-10-15uart: Use prlog instead of printfBenjamin Herrenschmidt1-4/+4
And use PR_DEBUG for everything Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2014-10-15uart: Keep synchronous console flush when IRQ not workingBenjamin Herrenschmidt1-3/+25
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>
2014-10-15uart: Add interrupt driver output ring buffer for Linux ouputBenjamin Herrenschmidt1-41/+85
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2014-10-15uart: Give UART it's own OPAL console callbacks instead of dummy consoleBenjamin Herrenschmidt1-100/+204
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>
2014-10-09uart: Exploit Tx FIFOBenjamin Herrenschmidt1-10/+18
When THRE is 1, we can write up to 16 bytes, so let's make good use of it Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2014-07-02Initial commit of Open Source releaseBenjamin Herrenschmidt1-0/+343
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>