diff options
author | Paul Mundt <lethal@linux-sh.org> | 2011-06-08 06:13:06 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-06-08 06:13:06 -0400 |
commit | e13198894bf6308c097e5678ee315e12b2e1b7a8 (patch) | |
tree | fcb525252ffd9ac9c44735dc4673a9985a3b9a9d | |
parent | 514820eb982eb85677ed2ecef9710e90e24fbdab (diff) |
serial: sh-sci: More unused define purging.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | drivers/tty/serial/sh-sci.h | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/drivers/tty/serial/sh-sci.h b/drivers/tty/serial/sh-sci.h index 1c20f7f9ba4f..5834f33d20ff 100644 --- a/drivers/tty/serial/sh-sci.h +++ b/drivers/tty/serial/sh-sci.h | |||
@@ -2,15 +2,13 @@ | |||
2 | #include <linux/io.h> | 2 | #include <linux/io.h> |
3 | #include <linux/gpio.h> | 3 | #include <linux/gpio.h> |
4 | 4 | ||
5 | #if defined(CONFIG_CPU_SUBTYPE_SH7706) || \ | 5 | #if defined(CONFIG_CPU_SUBTYPE_SH7705) || \ |
6 | defined(CONFIG_CPU_SUBTYPE_SH7706) || \ | ||
6 | defined(CONFIG_CPU_SUBTYPE_SH7707) || \ | 7 | defined(CONFIG_CPU_SUBTYPE_SH7707) || \ |
7 | defined(CONFIG_CPU_SUBTYPE_SH7708) || \ | 8 | defined(CONFIG_CPU_SUBTYPE_SH7708) || \ |
8 | defined(CONFIG_CPU_SUBTYPE_SH7709) | 9 | defined(CONFIG_CPU_SUBTYPE_SH7709) |
9 | # define SCPCR 0xA4000116 /* 16 bit SCI and SCIF */ | 10 | # define SCPCR 0xA4000116 /* 16 bit SCI and SCIF */ |
10 | # define SCPDR 0xA4000136 /* 8 bit SCI and SCIF */ | 11 | # define SCPDR 0xA4000136 /* 8 bit SCI and SCIF */ |
11 | #elif defined(CONFIG_CPU_SUBTYPE_SH7705) | ||
12 | # define SCPCR 0xA4000116 | ||
13 | # define SCPDR 0xA4000136 | ||
14 | #elif defined(CONFIG_CPU_SUBTYPE_SH7720) || \ | 12 | #elif defined(CONFIG_CPU_SUBTYPE_SH7720) || \ |
15 | defined(CONFIG_CPU_SUBTYPE_SH7721) || \ | 13 | defined(CONFIG_CPU_SUBTYPE_SH7721) || \ |
16 | defined(CONFIG_ARCH_SH73A0) || \ | 14 | defined(CONFIG_ARCH_SH73A0) || \ |
@@ -19,20 +17,16 @@ | |||
19 | defined(CONFIG_ARCH_SH7372) | 17 | defined(CONFIG_ARCH_SH7372) |
20 | # define PORT_PTCR 0xA405011EUL | 18 | # define PORT_PTCR 0xA405011EUL |
21 | # define PORT_PVCR 0xA4050122UL | 19 | # define PORT_PVCR 0xA4050122UL |
22 | #elif defined(CONFIG_SH_RTS7751R2D) | ||
23 | # define SCSPTR1 0xFFE0001C /* 8 bit SCIF */ | ||
24 | # define SCSPTR2 0xFFE80020 /* 16 bit SCIF */ | ||
25 | #elif defined(CONFIG_CPU_SUBTYPE_SH7750) || \ | 20 | #elif defined(CONFIG_CPU_SUBTYPE_SH7750) || \ |
26 | defined(CONFIG_CPU_SUBTYPE_SH7750R) || \ | 21 | defined(CONFIG_CPU_SUBTYPE_SH7750R) || \ |
27 | defined(CONFIG_CPU_SUBTYPE_SH7750S) || \ | 22 | defined(CONFIG_CPU_SUBTYPE_SH7750S) || \ |
28 | defined(CONFIG_CPU_SUBTYPE_SH7091) || \ | 23 | defined(CONFIG_CPU_SUBTYPE_SH7091) || \ |
29 | defined(CONFIG_CPU_SUBTYPE_SH7751) || \ | 24 | defined(CONFIG_CPU_SUBTYPE_SH7751) || \ |
30 | defined(CONFIG_CPU_SUBTYPE_SH7751R) | 25 | defined(CONFIG_CPU_SUBTYPE_SH7751R) || \ |
31 | # define SCSPTR1 0xffe0001c /* 8 bit SCI */ | 26 | defined(CONFIG_CPU_SUBTYPE_SH4_202) |
32 | # define SCSPTR2 0xFFE80020 /* 16 bit SCIF */ | 27 | # define SCSPTR2 0xFFE80020 /* 16 bit SCIF */ |
33 | #elif defined(CONFIG_CPU_SUBTYPE_SH7760) | 28 | #elif defined(CONFIG_CPU_SUBTYPE_SH7760) |
34 | # define SCSPTR0 0xfe600024 /* 16 bit SCIF */ | 29 | # define SCSPTR0 0xfe600024 /* 16 bit SCIF */ |
35 | # define SCSPTR1 0xfe610024 /* 16 bit SCIF */ | ||
36 | # define SCSPTR2 0xfe620024 /* 16 bit SCIF */ | 30 | # define SCSPTR2 0xfe620024 /* 16 bit SCIF */ |
37 | #elif defined(CONFIG_CPU_SUBTYPE_SH7710) || defined(CONFIG_CPU_SUBTYPE_SH7712) | 31 | #elif defined(CONFIG_CPU_SUBTYPE_SH7710) || defined(CONFIG_CPU_SUBTYPE_SH7712) |
38 | # define SCSPTR0 0xA4400000 /* 16 bit SCIF */ | 32 | # define SCSPTR0 0xA4400000 /* 16 bit SCIF */ |
@@ -48,16 +42,13 @@ | |||
48 | # define SCSPTR0 SCPDR0 | 42 | # define SCSPTR0 SCPDR0 |
49 | #elif defined(CONFIG_CPU_SUBTYPE_SH7723) | 43 | #elif defined(CONFIG_CPU_SUBTYPE_SH7723) |
50 | # define SCSPTR0 0xa4050160 | 44 | # define SCSPTR0 0xa4050160 |
51 | #elif defined(CONFIG_CPU_SUBTYPE_SH4_202) | ||
52 | # define SCSPTR2 0xffe80020 /* 16 bit SCIF */ | ||
53 | #elif defined(CONFIG_CPU_SUBTYPE_SH7757) | 45 | #elif defined(CONFIG_CPU_SUBTYPE_SH7757) |
54 | # define SCSPTR0 0xfe4b0020 | 46 | # define SCSPTR0 0xfe4b0020 |
55 | #elif defined(CONFIG_CPU_SUBTYPE_SH7763) | 47 | #elif defined(CONFIG_CPU_SUBTYPE_SH7763) || \ |
48 | defined(CONFIG_CPU_SUBTYPE_SH7780) | ||
56 | # define SCSPTR0 0xffe00024 /* 16 bit SCIF */ | 49 | # define SCSPTR0 0xffe00024 /* 16 bit SCIF */ |
57 | #elif defined(CONFIG_CPU_SUBTYPE_SH7770) | 50 | #elif defined(CONFIG_CPU_SUBTYPE_SH7770) |
58 | # define SCSPTR0 0xff923020 /* 16 bit SCIF */ | 51 | # define SCSPTR0 0xff923020 /* 16 bit SCIF */ |
59 | #elif defined(CONFIG_CPU_SUBTYPE_SH7780) | ||
60 | # define SCSPTR0 0xffe00024 /* 16 bit SCIF */ | ||
61 | #elif defined(CONFIG_CPU_SUBTYPE_SH7785) || \ | 52 | #elif defined(CONFIG_CPU_SUBTYPE_SH7785) || \ |
62 | defined(CONFIG_CPU_SUBTYPE_SH7786) | 53 | defined(CONFIG_CPU_SUBTYPE_SH7786) |
63 | # define SCSPTR0 0xffea0024 /* 16 bit SCIF */ | 54 | # define SCSPTR0 0xffea0024 /* 16 bit SCIF */ |