diff options
Diffstat (limited to 'arch/mips/sni/a20r.c')
-rw-r--r-- | arch/mips/sni/a20r.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/arch/mips/sni/a20r.c b/arch/mips/sni/a20r.c index b74607599971..3f8cf5eb2f06 100644 --- a/arch/mips/sni/a20r.c +++ b/arch/mips/sni/a20r.c | |||
@@ -117,10 +117,19 @@ static struct resource sc26xx_rsrc[] = { | |||
117 | } | 117 | } |
118 | }; | 118 | }; |
119 | 119 | ||
120 | static unsigned int sc26xx_data[2] = { | ||
121 | /* DTR | RTS | DSR | CTS | DCD | RI */ | ||
122 | (8 << 0) | (4 << 4) | (6 << 8) | (0 << 12) | (6 << 16) | (0 << 20), | ||
123 | (3 << 0) | (2 << 4) | (1 << 8) | (2 << 12) | (3 << 16) | (4 << 20) | ||
124 | }; | ||
125 | |||
120 | static struct platform_device sc26xx_pdev = { | 126 | static struct platform_device sc26xx_pdev = { |
121 | .name = "SC26xx", | 127 | .name = "SC26xx", |
122 | .num_resources = ARRAY_SIZE(sc26xx_rsrc), | 128 | .num_resources = ARRAY_SIZE(sc26xx_rsrc), |
123 | .resource = sc26xx_rsrc | 129 | .resource = sc26xx_rsrc, |
130 | .dev = { | ||
131 | .platform_data = sc26xx_data, | ||
132 | } | ||
124 | }; | 133 | }; |
125 | 134 | ||
126 | static u32 a20r_ack_hwint(void) | 135 | static u32 a20r_ack_hwint(void) |
@@ -231,9 +240,9 @@ static int __init snirm_a20r_setup_devinit(void) | |||
231 | platform_device_register(&sc26xx_pdev); | 240 | platform_device_register(&sc26xx_pdev); |
232 | platform_device_register(&a20r_serial8250_device); | 241 | platform_device_register(&a20r_serial8250_device); |
233 | platform_device_register(&a20r_ds1216_device); | 242 | platform_device_register(&a20r_ds1216_device); |
243 | sni_eisa_root_init(); | ||
234 | break; | 244 | break; |
235 | } | 245 | } |
236 | |||
237 | return 0; | 246 | return 0; |
238 | } | 247 | } |
239 | 248 | ||