diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-sh/serial.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'include/asm-sh/serial.h')
-rw-r--r-- | include/asm-sh/serial.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/include/asm-sh/serial.h b/include/asm-sh/serial.h new file mode 100644 index 000000000000..5474dbdbaa86 --- /dev/null +++ b/include/asm-sh/serial.h | |||
@@ -0,0 +1,48 @@ | |||
1 | /* | ||
2 | * include/asm-sh/serial.h | ||
3 | * | ||
4 | * Configuration details for 8250, 16450, 16550, etc. serial ports | ||
5 | */ | ||
6 | |||
7 | #ifndef _ASM_SERIAL_H | ||
8 | #define _ASM_SERIAL_H | ||
9 | |||
10 | #include <linux/config.h> | ||
11 | #include <linux/kernel.h> | ||
12 | |||
13 | #ifdef CONFIG_SH_EC3104 | ||
14 | #include <asm/serial-ec3104.h> | ||
15 | #elif defined (CONFIG_SH_BIGSUR) | ||
16 | #include <asm/serial-bigsur.h> | ||
17 | #else | ||
18 | /* | ||
19 | * This assumes you have a 1.8432 MHz clock for your UART. | ||
20 | * | ||
21 | * It'd be nice if someone built a serial card with a 24.576 MHz | ||
22 | * clock, since the 16550A is capable of handling a top speed of 1.5 | ||
23 | * megabits/second; but this requires the faster clock. | ||
24 | */ | ||
25 | #define BASE_BAUD ( 1843200 / 16 ) | ||
26 | |||
27 | #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST) | ||
28 | |||
29 | #ifdef CONFIG_HD64465 | ||
30 | #include <asm/hd64465.h> | ||
31 | |||
32 | #define STD_SERIAL_PORT_DEFNS \ | ||
33 | /* UART CLK PORT IRQ FLAGS */ \ | ||
34 | { 0, BASE_BAUD, 0x3F8, HD64465_IRQ_UART, STD_COM_FLAGS } /* ttyS0 */ | ||
35 | |||
36 | #else | ||
37 | |||
38 | #define STD_SERIAL_PORT_DEFNS \ | ||
39 | /* UART CLK PORT IRQ FLAGS */ \ | ||
40 | { 0, BASE_BAUD, 0x3F8, 4, STD_COM_FLAGS }, /* ttyS0 */ \ | ||
41 | { 0, BASE_BAUD, 0x2F8, 3, STD_COM_FLAGS } /* ttyS1 */ | ||
42 | |||
43 | #endif | ||
44 | |||
45 | #define SERIAL_PORT_DFNS STD_SERIAL_PORT_DEFNS | ||
46 | |||
47 | #endif | ||
48 | #endif /* _ASM_SERIAL_H */ | ||