diff options
author | Paul Mackerras <paulus@samba.org> | 2006-01-10 00:19:05 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-10 00:19:05 -0500 |
commit | 13b8a272297b29870d5bf5f8db7a381dd9e82382 (patch) | |
tree | 7abd516728d53f2d096d757412d6e9cd17819382 /include | |
parent | 0f17574a651884c721e1a33051719e59deb13c18 (diff) |
powerpc: Introduce a new config symbol to control 16550 early debug code
The previous change by Kumar Gala in this area led to legacy_serial.c
and udbg_16550.c being built as modules when CONFIG_SERIAL_8250=m.
Fix this by introducing a new symbol, CONFIG_PPC_UDBG_16550, to
control whether these files get built, and arrange for it to be selected
for those platforms that need it.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-powerpc/serial.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-powerpc/serial.h b/include/asm-powerpc/serial.h index 6dc9546d6908..3e8589b43cb2 100644 --- a/include/asm-powerpc/serial.h +++ b/include/asm-powerpc/serial.h | |||
@@ -15,6 +15,10 @@ | |||
15 | /* Default baud base if not found in device-tree */ | 15 | /* Default baud base if not found in device-tree */ |
16 | #define BASE_BAUD ( 1843200 / 16 ) | 16 | #define BASE_BAUD ( 1843200 / 16 ) |
17 | 17 | ||
18 | #ifdef CONFIG_PPC_UDBG_16550 | ||
18 | extern void find_legacy_serial_ports(void); | 19 | extern void find_legacy_serial_ports(void); |
20 | #else | ||
21 | #define find_legacy_serial_ports() do { } while (0) | ||
22 | #endif | ||
19 | 23 | ||
20 | #endif /* _PPC64_SERIAL_H */ | 24 | #endif /* _PPC64_SERIAL_H */ |