aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc64/kernel/udbg_16550.c
diff options
context:
space:
mode:
authorMilton Miller <miltonm@bga.com>2005-09-05 21:56:42 -0400
committerPaul Mackerras <paulus@samba.org>2005-09-06 02:07:36 -0400
commitc8f1c8be629ee34991fdba8bfe46a5c455393209 (patch)
tree66f218e641e87a0ca9ade7601345229b6557761e /arch/ppc64/kernel/udbg_16550.c
parent7f853352e79bf57c4ee279b7458ed0c072e2be76 (diff)
[PATCH] ppc64: Take udbg out of ppc_md
Take udbg out of ppc_md. Allows us to not overwrite early udbg inits when assigning ppc_md. 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 'arch/ppc64/kernel/udbg_16550.c')
-rw-r--r--arch/ppc64/kernel/udbg_16550.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/ppc64/kernel/udbg_16550.c b/arch/ppc64/kernel/udbg_16550.c
index 46a23e34f7c..ffe19dbecd9 100644
--- a/arch/ppc64/kernel/udbg_16550.c
+++ b/arch/ppc64/kernel/udbg_16550.c
@@ -99,9 +99,9 @@ void udbg_init_uart(void __iomem *comport, unsigned int speed)
99 out_8(&udbg_comport->lcr, 0x03); /* 8 data, 1 stop, no parity */ 99 out_8(&udbg_comport->lcr, 0x03); /* 8 data, 1 stop, no parity */
100 out_8(&udbg_comport->mcr, 0x03); /* RTS/DTR */ 100 out_8(&udbg_comport->mcr, 0x03); /* RTS/DTR */
101 out_8(&udbg_comport->fcr ,0x07); /* Clear & enable FIFOs */ 101 out_8(&udbg_comport->fcr ,0x07); /* Clear & enable FIFOs */
102 ppc_md.udbg_putc = udbg_550_putc; 102 udbg_putc = udbg_550_putc;
103 ppc_md.udbg_getc = udbg_550_getc; 103 udbg_getc = udbg_550_getc;
104 ppc_md.udbg_getc_poll = udbg_550_getc_poll; 104 udbg_getc_poll = udbg_550_getc_poll;
105 } 105 }
106} 106}
107 107
@@ -121,8 +121,8 @@ void udbg_init_maple_realmode(void)
121{ 121{
122 udbg_comport = (volatile struct NS16550 __iomem *)0xf40003f8; 122 udbg_comport = (volatile struct NS16550 __iomem *)0xf40003f8;
123 123
124 ppc_md.udbg_putc = udbg_maple_real_putc; 124 udbg_putc = udbg_maple_real_putc;
125 ppc_md.udbg_getc = NULL; 125 udbg_getc = NULL;
126 ppc_md.udbg_getc_poll = NULL; 126 udbg_getc_poll = NULL;
127} 127}
128#endif /* CONFIG_PPC_MAPLE */ 128#endif /* CONFIG_PPC_MAPLE */