diff options
author | Paul Mundt <lethal@linux-sh.org> | 2011-01-19 03:50:35 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-01-19 03:50:35 -0500 |
commit | 86b7d0e288c326d3ea7c22600cb7b6d84abb2968 (patch) | |
tree | 21755b3c5fc18054b9c4ecf7838309ea8e2ce427 | |
parent | 073e84c9320e3fbd26b6a2537c6f592466b25af3 (diff) |
serial: sh-sci: Kill off unused SCSCR definitions.
Presently there are only a few hardcoded cases using these definitions,
so kill off the unused ones completely. This will make it easier to
transition off of the remaining cases.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | drivers/serial/sh-sci.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/drivers/serial/sh-sci.h b/drivers/serial/sh-sci.h index b223d6cbf33a..5fefed53fa42 100644 --- a/drivers/serial/sh-sci.h +++ b/drivers/serial/sh-sci.h | |||
@@ -54,9 +54,6 @@ | |||
54 | # define PBCR 0xa4050102 | 54 | # define PBCR 0xa4050102 |
55 | #elif defined(CONFIG_CPU_SUBTYPE_SH7343) | 55 | #elif defined(CONFIG_CPU_SUBTYPE_SH7343) |
56 | # define SCSPTR0 0xffe00010 /* 16 bit SCIF */ | 56 | # define SCSPTR0 0xffe00010 /* 16 bit SCIF */ |
57 | # define SCSPTR1 0xffe10010 /* 16 bit SCIF */ | ||
58 | # define SCSPTR2 0xffe20010 /* 16 bit SCIF */ | ||
59 | # define SCSPTR3 0xffe30010 /* 16 bit SCIF */ | ||
60 | #elif defined(CONFIG_CPU_SUBTYPE_SH7722) | 57 | #elif defined(CONFIG_CPU_SUBTYPE_SH7722) |
61 | # define PADR 0xA4050120 | 58 | # define PADR 0xA4050120 |
62 | # define PSDR 0xA405013e | 59 | # define PSDR 0xA405013e |
@@ -69,77 +66,42 @@ | |||
69 | # define SCIF_ORER 0x0001 /* overrun error bit */ | 66 | # define SCIF_ORER 0x0001 /* overrun error bit */ |
70 | #elif defined(CONFIG_CPU_SUBTYPE_SH7723) | 67 | #elif defined(CONFIG_CPU_SUBTYPE_SH7723) |
71 | # define SCSPTR0 0xa4050160 | 68 | # define SCSPTR0 0xa4050160 |
72 | # define SCSPTR1 0xa405013e | ||
73 | # define SCSPTR2 0xa4050160 | ||
74 | # define SCSPTR3 0xa405013e | ||
75 | # define SCSPTR4 0xa4050128 | ||
76 | # define SCSPTR5 0xa4050128 | ||
77 | # define SCIF_ORER 0x0001 /* overrun error bit */ | 69 | # define SCIF_ORER 0x0001 /* overrun error bit */ |
78 | #elif defined(CONFIG_CPU_SUBTYPE_SH7724) | 70 | #elif defined(CONFIG_CPU_SUBTYPE_SH7724) |
79 | # define SCIF_ORER 0x0001 /* overrun error bit */ | 71 | # define SCIF_ORER 0x0001 /* overrun error bit */ |
80 | #elif defined(CONFIG_CPU_SUBTYPE_SH4_202) | 72 | #elif defined(CONFIG_CPU_SUBTYPE_SH4_202) |
81 | # define SCSPTR2 0xffe80020 /* 16 bit SCIF */ | 73 | # define SCSPTR2 0xffe80020 /* 16 bit SCIF */ |
82 | # define SCIF_ORER 0x0001 /* overrun error bit */ | 74 | # define SCIF_ORER 0x0001 /* overrun error bit */ |
83 | #elif defined(CONFIG_CPU_SUBTYPE_SH5_101) || defined(CONFIG_CPU_SUBTYPE_SH5_103) | ||
84 | # define SCIF_PTR2_OFFS 0x0000020 | ||
85 | # define SCSPTR2 ((port->mapbase)+SCIF_PTR2_OFFS) /* 16 bit SCIF */ | ||
86 | #elif defined(CONFIG_H83007) || defined(CONFIG_H83068) | 75 | #elif defined(CONFIG_H83007) || defined(CONFIG_H83068) |
87 | # define H8300_SCI_DR(ch) *(volatile char *)(P1DR + h8300_sci_pins[ch].port) | 76 | # define H8300_SCI_DR(ch) *(volatile char *)(P1DR + h8300_sci_pins[ch].port) |
88 | #elif defined(CONFIG_H8S2678) | 77 | #elif defined(CONFIG_H8S2678) |
89 | # define H8300_SCI_DR(ch) *(volatile char *)(P1DR + h8300_sci_pins[ch].port) | 78 | # define H8300_SCI_DR(ch) *(volatile char *)(P1DR + h8300_sci_pins[ch].port) |
90 | #elif defined(CONFIG_CPU_SUBTYPE_SH7757) | 79 | #elif defined(CONFIG_CPU_SUBTYPE_SH7757) |
91 | # define SCSPTR0 0xfe4b0020 | 80 | # define SCSPTR0 0xfe4b0020 |
92 | # define SCSPTR1 0xfe4b0020 | ||
93 | # define SCSPTR2 0xfe4b0020 | ||
94 | # define SCIF_ORER 0x0001 | 81 | # define SCIF_ORER 0x0001 |
95 | # define SCIF_ONLY | ||
96 | #elif defined(CONFIG_CPU_SUBTYPE_SH7763) | 82 | #elif defined(CONFIG_CPU_SUBTYPE_SH7763) |
97 | # define SCSPTR0 0xffe00024 /* 16 bit SCIF */ | 83 | # define SCSPTR0 0xffe00024 /* 16 bit SCIF */ |
98 | # define SCSPTR1 0xffe08024 /* 16 bit SCIF */ | ||
99 | # define SCSPTR2 0xffe10020 /* 16 bit SCIF/IRDA */ | ||
100 | # define SCIF_ORER 0x0001 /* overrun error bit */ | 84 | # define SCIF_ORER 0x0001 /* overrun error bit */ |
101 | #elif defined(CONFIG_CPU_SUBTYPE_SH7770) | 85 | #elif defined(CONFIG_CPU_SUBTYPE_SH7770) |
102 | # define SCSPTR0 0xff923020 /* 16 bit SCIF */ | 86 | # define SCSPTR0 0xff923020 /* 16 bit SCIF */ |
103 | # define SCSPTR1 0xff924020 /* 16 bit SCIF */ | ||
104 | # define SCSPTR2 0xff925020 /* 16 bit SCIF */ | ||
105 | # define SCIF_ORER 0x0001 /* overrun error bit */ | 87 | # define SCIF_ORER 0x0001 /* overrun error bit */ |
106 | #elif defined(CONFIG_CPU_SUBTYPE_SH7780) | 88 | #elif defined(CONFIG_CPU_SUBTYPE_SH7780) |
107 | # define SCSPTR0 0xffe00024 /* 16 bit SCIF */ | 89 | # define SCSPTR0 0xffe00024 /* 16 bit SCIF */ |
108 | # define SCSPTR1 0xffe10024 /* 16 bit SCIF */ | ||
109 | # define SCIF_ORER 0x0001 /* Overrun error bit */ | 90 | # define SCIF_ORER 0x0001 /* Overrun error bit */ |
110 | #elif defined(CONFIG_CPU_SUBTYPE_SH7785) || \ | 91 | #elif defined(CONFIG_CPU_SUBTYPE_SH7785) || \ |
111 | defined(CONFIG_CPU_SUBTYPE_SH7786) | 92 | defined(CONFIG_CPU_SUBTYPE_SH7786) |
112 | # define SCSPTR0 0xffea0024 /* 16 bit SCIF */ | 93 | # define SCSPTR0 0xffea0024 /* 16 bit SCIF */ |
113 | # define SCSPTR1 0xffeb0024 /* 16 bit SCIF */ | ||
114 | # define SCSPTR2 0xffec0024 /* 16 bit SCIF */ | ||
115 | # define SCSPTR3 0xffed0024 /* 16 bit SCIF */ | ||
116 | # define SCSPTR4 0xffee0024 /* 16 bit SCIF */ | ||
117 | # define SCSPTR5 0xffef0024 /* 16 bit SCIF */ | ||
118 | # define SCIF_ORER 0x0001 /* Overrun error bit */ | 94 | # define SCIF_ORER 0x0001 /* Overrun error bit */ |
119 | #elif defined(CONFIG_CPU_SUBTYPE_SH7201) || \ | 95 | #elif defined(CONFIG_CPU_SUBTYPE_SH7201) || \ |
120 | defined(CONFIG_CPU_SUBTYPE_SH7203) || \ | 96 | defined(CONFIG_CPU_SUBTYPE_SH7203) || \ |
121 | defined(CONFIG_CPU_SUBTYPE_SH7206) || \ | 97 | defined(CONFIG_CPU_SUBTYPE_SH7206) || \ |
122 | defined(CONFIG_CPU_SUBTYPE_SH7263) | 98 | defined(CONFIG_CPU_SUBTYPE_SH7263) |
123 | # define SCSPTR0 0xfffe8020 /* 16 bit SCIF */ | 99 | # define SCSPTR0 0xfffe8020 /* 16 bit SCIF */ |
124 | # define SCSPTR1 0xfffe8820 /* 16 bit SCIF */ | ||
125 | # define SCSPTR2 0xfffe9020 /* 16 bit SCIF */ | ||
126 | # define SCSPTR3 0xfffe9820 /* 16 bit SCIF */ | ||
127 | # if defined(CONFIG_CPU_SUBTYPE_SH7201) | ||
128 | # define SCSPTR4 0xfffeA020 /* 16 bit SCIF */ | ||
129 | # define SCSPTR5 0xfffeA820 /* 16 bit SCIF */ | ||
130 | # define SCSPTR6 0xfffeB020 /* 16 bit SCIF */ | ||
131 | # define SCSPTR7 0xfffeB820 /* 16 bit SCIF */ | ||
132 | # endif | ||
133 | #elif defined(CONFIG_CPU_SUBTYPE_SH7619) | 100 | #elif defined(CONFIG_CPU_SUBTYPE_SH7619) |
134 | # define SCSPTR0 0xf8400020 /* 16 bit SCIF */ | 101 | # define SCSPTR0 0xf8400020 /* 16 bit SCIF */ |
135 | # define SCSPTR1 0xf8410020 /* 16 bit SCIF */ | ||
136 | # define SCSPTR2 0xf8420020 /* 16 bit SCIF */ | ||
137 | # define SCIF_ORER 0x0001 /* overrun error bit */ | 102 | # define SCIF_ORER 0x0001 /* overrun error bit */ |
138 | #elif defined(CONFIG_CPU_SUBTYPE_SHX3) | 103 | #elif defined(CONFIG_CPU_SUBTYPE_SHX3) |
139 | # define SCSPTR0 0xffc30020 /* 16 bit SCIF */ | 104 | # define SCSPTR0 0xffc30020 /* 16 bit SCIF */ |
140 | # define SCSPTR1 0xffc40020 /* 16 bit SCIF */ | ||
141 | # define SCSPTR2 0xffc50020 /* 16 bit SCIF */ | ||
142 | # define SCSPTR3 0xffc60020 /* 16 bit SCIF */ | ||
143 | # define SCIF_ORER 0x0001 /* Overrun error bit */ | 105 | # define SCIF_ORER 0x0001 /* Overrun error bit */ |
144 | #else | 106 | #else |
145 | # error CPU subtype not defined | 107 | # error CPU subtype not defined |
@@ -411,7 +373,6 @@ SCIF_FNS(SCSPTR, 0, 0, 0x24, 16) | |||
411 | SCIF_FNS(SCLSR, 0, 0, 0x28, 16) | 373 | SCIF_FNS(SCLSR, 0, 0, 0x28, 16) |
412 | #elif defined(CONFIG_CPU_SUBTYPE_SH7763) | 374 | #elif defined(CONFIG_CPU_SUBTYPE_SH7763) |
413 | SCIF_FNS(SCFDR, 0, 0, 0x1C, 16) | 375 | SCIF_FNS(SCFDR, 0, 0, 0x1C, 16) |
414 | SCIF_FNS(SCSPTR2, 0, 0, 0x20, 16) | ||
415 | SCIF_FNS(SCTFDR, 0x0e, 16, 0x1C, 16) | 376 | SCIF_FNS(SCTFDR, 0x0e, 16, 0x1C, 16) |
416 | SCIF_FNS(SCRFDR, 0x0e, 16, 0x20, 16) | 377 | SCIF_FNS(SCRFDR, 0x0e, 16, 0x20, 16) |
417 | SCIF_FNS(SCSPTR, 0, 0, 0x24, 16) | 378 | SCIF_FNS(SCSPTR, 0, 0, 0x24, 16) |