diff options
author | Milton Miller <miltonm@bga.com> | 2005-09-05 21:55:38 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-09-06 02:07:36 -0400 |
commit | 37548d58e5ce53dda609c5b35c0eb62d50d59675 (patch) | |
tree | 2cbe5b628e6120464cba4c3c6534c00a2dc72db3 | |
parent | cb14c4d641b4e083fae7ce4a0e8a3973cecb7554 (diff) |
[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>
-rw-r--r-- | arch/ppc64/kernel/maple_setup.c | 3 | ||||
-rw-r--r-- | arch/ppc64/kernel/pSeries_setup.c | 3 | ||||
-rw-r--r-- | arch/ppc64/kernel/udbg.c | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/arch/ppc64/kernel/maple_setup.c b/arch/ppc64/kernel/maple_setup.c index bb55b5a56910..fc0567498a3a 100644 --- a/arch/ppc64/kernel/maple_setup.c +++ b/arch/ppc64/kernel/maple_setup.c | |||
@@ -207,9 +207,6 @@ static void __init maple_init_early(void) | |||
207 | comport = (void *)ioremap(physport, 16); | 207 | comport = (void *)ioremap(physport, 16); |
208 | udbg_init_uart(comport, default_speed); | 208 | udbg_init_uart(comport, default_speed); |
209 | 209 | ||
210 | ppc_md.udbg_putc = udbg_putc; | ||
211 | ppc_md.udbg_getc = udbg_getc; | ||
212 | ppc_md.udbg_getc_poll = udbg_getc_poll; | ||
213 | DBG("Hello World !\n"); | 210 | DBG("Hello World !\n"); |
214 | } | 211 | } |
215 | 212 | ||
diff --git a/arch/ppc64/kernel/pSeries_setup.c b/arch/ppc64/kernel/pSeries_setup.c index f0f0630cf07c..cb570fd23031 100644 --- a/arch/ppc64/kernel/pSeries_setup.c +++ b/arch/ppc64/kernel/pSeries_setup.c | |||
@@ -397,9 +397,6 @@ static void __init pSeries_init_early(void) | |||
397 | comport = (void *)ioremap(physport, 16); | 397 | comport = (void *)ioremap(physport, 16); |
398 | udbg_init_uart(comport, default_speed); | 398 | udbg_init_uart(comport, default_speed); |
399 | 399 | ||
400 | ppc_md.udbg_putc = udbg_putc; | ||
401 | ppc_md.udbg_getc = udbg_getc; | ||
402 | ppc_md.udbg_getc_poll = udbg_getc_poll; | ||
403 | DBG("Hello World !\n"); | 400 | DBG("Hello World !\n"); |
404 | } | 401 | } |
405 | 402 | ||
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) | |||
70 | out_8(&udbg_comport->lcr, 0x03); /* 8 data, 1 stop, no parity */ | 70 | out_8(&udbg_comport->lcr, 0x03); /* 8 data, 1 stop, no parity */ |
71 | out_8(&udbg_comport->mcr, 0x03); /* RTS/DTR */ | 71 | out_8(&udbg_comport->mcr, 0x03); /* RTS/DTR */ |
72 | out_8(&udbg_comport->fcr ,0x07); /* Clear & enable FIFOs */ | 72 | out_8(&udbg_comport->fcr ,0x07); /* Clear & enable FIFOs */ |
73 | ppc_md.udbg_putc = udbg_putc; /* set access methods */ | ||
74 | ppc_md.udbg_getc = udbg_getc; | ||
75 | ppc_md.udbg_getc_poll = udbg_getc_poll; | ||
73 | } | 76 | } |
74 | } | 77 | } |
75 | 78 | ||