aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/sni
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>2012-10-11 05:14:13 -0400
committerRalf Baechle <ralf@linux-mips.org>2012-10-11 05:14:13 -0400
commit49a94e9482e70777ae0e03351a0c2c18bbdfebda (patch)
tree59e4ef2118ea8722675f7691ff65fb2483862f5e /arch/mips/sni
parentfd9e8392c3353cf0c84ecc5443db5bbc1eebf861 (diff)
MIPS: SNI: Switch RM400 serial to SCCNXP driver
The new SCCNXP driver supports the SC2681 chips used in RM400 machines. We now use the new driver instead of the old SC26xx driver. Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/4417/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/sni')
-rw-r--r--arch/mips/sni/a20r.c27
1 files changed, 3 insertions, 24 deletions
diff --git a/arch/mips/sni/a20r.c b/arch/mips/sni/a20r.c
index b2d4f492d782..9cb9d43a3a0e 100644
--- a/arch/mips/sni/a20r.c
+++ b/arch/mips/sni/a20r.c
@@ -118,26 +118,6 @@ static struct resource sc26xx_rsrc[] = {
118 } 118 }
119}; 119};
120 120
121static unsigned int sc26xx_data[2] = {
122 /* DTR | RTS | DSR | CTS | DCD | RI */
123 (8 << 0) | (4 << 4) | (6 << 8) | (0 << 12) | (6 << 16) | (0 << 20),
124 (3 << 0) | (2 << 4) | (1 << 8) | (2 << 12) | (3 << 16) | (4 << 20)
125};
126
127static struct platform_device sc26xx_pdev = {
128 .name = "SC26xx",
129 .num_resources = ARRAY_SIZE(sc26xx_rsrc),
130 .resource = sc26xx_rsrc,
131 .dev = {
132 .platform_data = sc26xx_data,
133 }
134};
135
136#warning "Please try migrate to use new driver SCCNXP and report the status" \
137 "in the linux-serial mailing list."
138
139/* The code bellow is a replacement of SC26XX to SCCNXP */
140#if 0
141#include <linux/platform_data/sccnxp.h> 121#include <linux/platform_data/sccnxp.h>
142 122
143static struct sccnxp_pdata sccnxp_data = { 123static struct sccnxp_pdata sccnxp_data = {
@@ -155,15 +135,14 @@ static struct sccnxp_pdata sccnxp_data = {
155 MCTRL_SIG(RNG_IP, LINE_IP3), 135 MCTRL_SIG(RNG_IP, LINE_IP3),
156}; 136};
157 137
158static struct platform_device sc2681_pdev = { 138static struct platform_device sc26xx_pdev = {
159 .name = "sc2681", 139 .name = "sc2681",
160 .resource = sc2xxx_rsrc, 140 .resource = sc26xx_rsrc,
161 .num_resources = ARRAY_SIZE(sc2xxx_rsrc), 141 .num_resources = ARRAY_SIZE(sc26xx_rsrc),
162 .dev = { 142 .dev = {
163 .platform_data = &sccnxp_data, 143 .platform_data = &sccnxp_data,
164 }, 144 },
165}; 145};
166#endif
167 146
168static u32 a20r_ack_hwint(void) 147static u32 a20r_ack_hwint(void)
169{ 148{