summaryrefslogtreecommitdiffstats
path: root/arch/ppc64/kernel/udbg.c
diff options
context:
space:
mode:
authorMilton Miller <miltonm@bga.com>2005-09-06 03:55:38 +0200
committerPaul Mackerras <paulus@samba.org>2005-09-06 08:07:36 +0200
commit37548d58e5ce53dda609c5b35c0eb62d50d59675 (patch)
tree2cbe5b628e6120464cba4c3c6534c00a2dc72db3 /arch/ppc64/kernel/udbg.c
parent[PATCH] ppc64: Clean up CR handling (diff)
downloadlinux-37548d58e5ce53dda609c5b35c0eb62d50d59675.tar.xz
linux-37548d58e5ce53dda609c5b35c0eb62d50d59675.zip
[PATCH] ppc64: Make udbg_init_uart set the ppc_md udbg methods.
make udbg_init_uart set the ppc_md udbg methods. Signed-off-by: Milton Miller <miltonm@bga.com> Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to '')
-rw-r--r--arch/ppc64/kernel/udbg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/ppc64/kernel/udbg.c b/arch/ppc64/kernel/udbg.c
index 155670a40c3b..b531583b88d7 100644
--- a/arch/ppc64/kernel/udbg.c
+++ b/arch/ppc64/kernel/udbg.c
@@ -70,6 +70,9 @@ void udbg_init_uart(void __iomem *comport, unsigned int speed)
out_8(&udbg_comport->lcr, 0x03); /* 8 data, 1 stop, no parity */
out_8(&udbg_comport->mcr, 0x03); /* RTS/DTR */
out_8(&udbg_comport->fcr ,0x07); /* Clear & enable FIFOs */
+ ppc_md.udbg_putc = udbg_putc; /* set access methods */
+ ppc_md.udbg_getc = udbg_getc;
+ ppc_md.udbg_getc_poll = udbg_getc_poll;
}
}