aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/udbg.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-07-14 23:03:12 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-08-14 00:58:15 -0400
commit309257484cc1a592e8ac5fbdd8cd661be2b80bf8 (patch)
treedf500d08cef6def1e1a2f6ef51e6e91c563c2c08 /arch/powerpc/include/asm/udbg.h
parent3fafe9c202321a3edc47386d2071af89555c9f45 (diff)
powerpc: Cleanup udbg_16550 and add support for LPC PIO-only UARTs
The udbg_16550 code, which we use for our early consoles and debug backends was fairly messy. Especially for the debug consoles, it would re-implement the "high level" getc/putc/poll functions for each access method. It also had code to configure the UART but only for the straight MMIO method. This changes it to instead abstract at the register accessor level, and have the various functions and configuration routines use these. The result is simpler and slightly smaller code, and free support for non-MMIO mapped PIO UARTs, which such as the ones that can be present on a POWER 8 LPC bus. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/udbg.h')
-rw-r--r--arch/powerpc/include/asm/udbg.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/powerpc/include/asm/udbg.h b/arch/powerpc/include/asm/udbg.h
index dc590919f8eb..b51fba10e733 100644
--- a/arch/powerpc/include/asm/udbg.h
+++ b/arch/powerpc/include/asm/udbg.h
@@ -27,10 +27,11 @@ extern void udbg_printf(const char *fmt, ...)
27 __attribute__ ((format (printf, 1, 2))); 27 __attribute__ ((format (printf, 1, 2)));
28extern void udbg_progress(char *s, unsigned short hex); 28extern void udbg_progress(char *s, unsigned short hex);
29 29
30extern void udbg_init_uart(void __iomem *comport, unsigned int speed, 30extern void udbg_uart_init_mmio(void __iomem *addr, unsigned int stride);
31 unsigned int clock); 31extern void udbg_uart_init_pio(unsigned long port, unsigned int stride);
32extern unsigned int udbg_probe_uart_speed(void __iomem *comport, 32
33 unsigned int clock); 33extern void udbg_uart_setup(unsigned int speed, unsigned int clock);
34extern unsigned int udbg_probe_uart_speed(unsigned int clock);
34 35
35struct device_node; 36struct device_node;
36extern void udbg_scc_init(int force_scc); 37extern void udbg_scc_init(int force_scc);