blob: efba450a051838fa49d792676f3a9285ae9a1ff8 [file] [log] [blame]
Markus Brunnerded54312007-09-12 11:54:58 +09001/*
2 * linux/arch/sh/boards/magicpanel/setup.c
3 *
4 * Copyright (C) 2007 Markus Brunner, Mark Jonas
5 *
6 * Magic Panel Release 2 board setup
7 *
8 * This file is subject to the terms and conditions of the GNU General Public
9 * License. See the file "COPYING" in the main directory of this archive
10 * for more details.
11 */
12#include <linux/init.h>
13#include <linux/irq.h>
14#include <linux/platform_device.h>
Markus Brunnerded54312007-09-12 11:54:58 +090015#include <linux/delay.h>
Magnus Damm843284d2008-10-08 20:42:56 +090016#include <linux/gpio.h>
Steve Glendinning02da9162009-01-07 17:21:29 +090017#include <linux/smsc911x.h>
Markus Brunnere87ab0c2007-09-21 15:27:35 +090018#include <linux/mtd/mtd.h>
19#include <linux/mtd/partitions.h>
20#include <linux/mtd/physmap.h>
21#include <linux/mtd/map.h>
Paul Mundt7639a452008-10-20 13:02:48 +090022#include <mach/magicpanelr2.h>
Markus Brunnerded54312007-09-12 11:54:58 +090023#include <asm/heartbeat.h>
Paul Mundtf7275652008-10-20 12:04:53 +090024#include <cpu/sh7720.h>
Markus Brunnerded54312007-09-12 11:54:58 +090025
Paul Mundt9d56dd32010-01-26 12:58:40 +090026#define LAN9115_READY (__raw_readl(0xA8000084UL) & 0x00000001UL)
Markus Brunnerded54312007-09-12 11:54:58 +090027
Markus Brunnere87ab0c2007-09-21 15:27:35 +090028/* Prefer cmdline over RedBoot */
29static const char *probes[] = { "cmdlinepart", "RedBoot", NULL };
30
Markus Brunnerded54312007-09-12 11:54:58 +090031/* Wait until reset finished. Timeout is 100ms. */
32static int __init ethernet_reset_finished(void)
33{
34 int i;
35
36 if (LAN9115_READY)
37 return 1;
38
39 for (i = 0; i < 10; ++i) {
40 mdelay(10);
41 if (LAN9115_READY)
42 return 1;
43 }
44
45 return 0;
46}
47
48static void __init reset_ethernet(void)
49{
50 /* PMDR: LAN_RESET=on */
51 CLRBITS_OUTB(0x10, PORT_PMDR);
52
53 udelay(200);
54
55 /* PMDR: LAN_RESET=off */
56 SETBITS_OUTB(0x10, PORT_PMDR);
57}
58
59static void __init setup_chip_select(void)
60{
61 /* CS2: LAN (0x08000000 - 0x0bffffff) */
62 /* no idle cycles, normal space, 8 bit data bus */
Paul Mundt9d56dd32010-01-26 12:58:40 +090063 __raw_writel(0x36db0400, CS2BCR);
Markus Brunnerded54312007-09-12 11:54:58 +090064 /* (SW:1.5 WR:3 HW:1.5), ext. wait */
Paul Mundt9d56dd32010-01-26 12:58:40 +090065 __raw_writel(0x000003c0, CS2WCR);
Markus Brunnerded54312007-09-12 11:54:58 +090066
67 /* CS4: CAN1 (0xb0000000 - 0xb3ffffff) */
68 /* no idle cycles, normal space, 8 bit data bus */
Paul Mundt9d56dd32010-01-26 12:58:40 +090069 __raw_writel(0x00000200, CS4BCR);
Markus Brunnerded54312007-09-12 11:54:58 +090070 /* (SW:1.5 WR:3 HW:1.5), ext. wait */
Paul Mundt9d56dd32010-01-26 12:58:40 +090071 __raw_writel(0x00100981, CS4WCR);
Markus Brunnerded54312007-09-12 11:54:58 +090072
73 /* CS5a: CAN2 (0xb4000000 - 0xb5ffffff) */
74 /* no idle cycles, normal space, 8 bit data bus */
Paul Mundt9d56dd32010-01-26 12:58:40 +090075 __raw_writel(0x00000200, CS5ABCR);
Markus Brunnerded54312007-09-12 11:54:58 +090076 /* (SW:1.5 WR:3 HW:1.5), ext. wait */
Paul Mundt9d56dd32010-01-26 12:58:40 +090077 __raw_writel(0x00100981, CS5AWCR);
Markus Brunnerded54312007-09-12 11:54:58 +090078
79 /* CS5b: CAN3 (0xb6000000 - 0xb7ffffff) */
80 /* no idle cycles, normal space, 8 bit data bus */
Paul Mundt9d56dd32010-01-26 12:58:40 +090081 __raw_writel(0x00000200, CS5BBCR);
Markus Brunnerded54312007-09-12 11:54:58 +090082 /* (SW:1.5 WR:3 HW:1.5), ext. wait */
Paul Mundt9d56dd32010-01-26 12:58:40 +090083 __raw_writel(0x00100981, CS5BWCR);
Markus Brunnerded54312007-09-12 11:54:58 +090084
85 /* CS6a: Rotary (0xb8000000 - 0xb9ffffff) */
86 /* no idle cycles, normal space, 8 bit data bus */
Paul Mundt9d56dd32010-01-26 12:58:40 +090087 __raw_writel(0x00000200, CS6ABCR);
Markus Brunnerded54312007-09-12 11:54:58 +090088 /* (SW:1.5 WR:3 HW:1.5), no ext. wait */
Paul Mundt9d56dd32010-01-26 12:58:40 +090089 __raw_writel(0x001009C1, CS6AWCR);
Markus Brunnerded54312007-09-12 11:54:58 +090090}
91
92static void __init setup_port_multiplexing(void)
93{
94 /* A7 GPO(LED8); A6 GPO(LED7); A5 GPO(LED6); A4 GPO(LED5);
95 * A3 GPO(LED4); A2 GPO(LED3); A1 GPO(LED2); A0 GPO(LED1);
96 */
Paul Mundt9d56dd32010-01-26 12:58:40 +090097 __raw_writew(0x5555, PORT_PACR); /* 01 01 01 01 01 01 01 01 */
Markus Brunnerded54312007-09-12 11:54:58 +090098
99 /* B7 GPO(RST4); B6 GPO(RST3); B5 GPO(RST2); B4 GPO(RST1);
100 * B3 GPO(PB3); B2 GPO(PB2); B1 GPO(PB1); B0 GPO(PB0);
101 */
Paul Mundt9d56dd32010-01-26 12:58:40 +0900102 __raw_writew(0x5555, PORT_PBCR); /* 01 01 01 01 01 01 01 01 */
Markus Brunnerded54312007-09-12 11:54:58 +0900103
104 /* C7 GPO(PC7); C6 GPO(PC6); C5 GPO(PC5); C4 GPO(PC4);
105 * C3 LCD_DATA3; C2 LCD_DATA2; C1 LCD_DATA1; C0 LCD_DATA0;
106 */
Paul Mundt9d56dd32010-01-26 12:58:40 +0900107 __raw_writew(0x5500, PORT_PCCR); /* 01 01 01 01 00 00 00 00 */
Markus Brunnerded54312007-09-12 11:54:58 +0900108
109 /* D7 GPO(PD7); D6 GPO(PD6); D5 GPO(PD5); D4 GPO(PD4);
110 * D3 GPO(PD3); D2 GPO(PD2); D1 GPO(PD1); D0 GPO(PD0);
111 */
Paul Mundt9d56dd32010-01-26 12:58:40 +0900112 __raw_writew(0x5555, PORT_PDCR); /* 01 01 01 01 01 01 01 01 */
Markus Brunnerded54312007-09-12 11:54:58 +0900113
114 /* E7 (x); E6 GPI(nu); E5 GPI(nu); E4 LCD_M_DISP;
115 * E3 LCD_CL1; E2 LCD_CL2; E1 LCD_DON; E0 LCD_FLM;
116 */
Paul Mundt9d56dd32010-01-26 12:58:40 +0900117 __raw_writew(0x3C00, PORT_PECR); /* 00 11 11 00 00 00 00 00 */
Markus Brunnerded54312007-09-12 11:54:58 +0900118
119 /* F7 (x); F6 DA1(VLCD); F5 DA0(nc); F4 AN3;
120 * F3 AN2(MID_AD); F2 AN1(EARTH_AD); F1 AN0(TEMP); F0 GPI+(nc);
121 */
Paul Mundt9d56dd32010-01-26 12:58:40 +0900122 __raw_writew(0x0002, PORT_PFCR); /* 00 00 00 00 00 00 00 10 */
Markus Brunnerded54312007-09-12 11:54:58 +0900123
124 /* G7 (x); G6 IRQ5(TOUCH_BUSY); G5 IRQ4(TOUCH_IRQ); G4 GPI(KEY2);
125 * G3 GPI(KEY1); G2 GPO(LED11); G1 GPO(LED10); G0 GPO(LED9);
126 */
Paul Mundt9d56dd32010-01-26 12:58:40 +0900127 __raw_writew(0x03D5, PORT_PGCR); /* 00 00 00 11 11 01 01 01 */
Markus Brunnerded54312007-09-12 11:54:58 +0900128
129 /* H7 (x); H6 /RAS(BRAS); H5 /CAS(BCAS); H4 CKE(BCKE);
130 * H3 GPO(EARTH_OFF); H2 GPO(EARTH_TEST); H1 USB2_PWR; H0 USB1_PWR;
131 */
Paul Mundt9d56dd32010-01-26 12:58:40 +0900132 __raw_writew(0x0050, PORT_PHCR); /* 00 00 00 00 01 01 00 00 */
Markus Brunnerded54312007-09-12 11:54:58 +0900133
134 /* J7 (x); J6 AUDCK; J5 ASEBRKAK; J4 AUDATA3;
135 * J3 AUDATA2; J2 AUDATA1; J1 AUDATA0; J0 AUDSYNC;
136 */
Paul Mundt9d56dd32010-01-26 12:58:40 +0900137 __raw_writew(0x0000, PORT_PJCR); /* 00 00 00 00 00 00 00 00 */
Markus Brunnerded54312007-09-12 11:54:58 +0900138
139 /* K7 (x); K6 (x); K5 (x); K4 (x);
140 * K3 PINT7(/PWR2); K2 PINT6(/PWR1); K1 PINT5(nu); K0 PINT4(FLASH_READY)
141 */
Paul Mundt9d56dd32010-01-26 12:58:40 +0900142 __raw_writew(0x00FF, PORT_PKCR); /* 00 00 00 00 11 11 11 11 */
Markus Brunnerded54312007-09-12 11:54:58 +0900143
144 /* L7 TRST; L6 TMS; L5 TDO; L4 TDI;
145 * L3 TCK; L2 (x); L1 (x); L0 (x);
146 */
Paul Mundt9d56dd32010-01-26 12:58:40 +0900147 __raw_writew(0x0000, PORT_PLCR); /* 00 00 00 00 00 00 00 00 */
Markus Brunnerded54312007-09-12 11:54:58 +0900148
149 /* M7 GPO(CURRENT_SINK); M6 GPO(PWR_SWITCH); M5 GPO(LAN_SPEED);
150 * M4 GPO(LAN_RESET); M3 GPO(BUZZER); M2 GPO(LCD_BL);
151 * M1 CS5B(CAN3_CS); M0 GPI+(nc);
152 */
Paul Mundt9d56dd32010-01-26 12:58:40 +0900153 __raw_writew(0x5552, PORT_PMCR); /* 01 01 01 01 01 01 00 10 */
Markus Brunnerded54312007-09-12 11:54:58 +0900154
155 /* CURRENT_SINK=off, PWR_SWITCH=off, LAN_SPEED=100MBit,
156 * LAN_RESET=off, BUZZER=off, LCD_BL=off
157 */
158#if CONFIG_SH_MAGIC_PANEL_R2_VERSION == 2
Paul Mundt9d56dd32010-01-26 12:58:40 +0900159 __raw_writeb(0x30, PORT_PMDR);
Markus Brunnerded54312007-09-12 11:54:58 +0900160#elif CONFIG_SH_MAGIC_PANEL_R2_VERSION == 3
Paul Mundt9d56dd32010-01-26 12:58:40 +0900161 __raw_writeb(0xF0, PORT_PMDR);
Markus Brunnerded54312007-09-12 11:54:58 +0900162#else
163#error Unknown revision of PLATFORM_MP_R2
164#endif
165
166 /* P7 (x); P6 (x); P5 (x);
167 * P4 GPO(nu); P3 IRQ3(LAN_IRQ); P2 IRQ2(CAN3_IRQ);
168 * P1 IRQ1(CAN2_IRQ); P0 IRQ0(CAN1_IRQ)
169 */
Paul Mundt9d56dd32010-01-26 12:58:40 +0900170 __raw_writew(0x0100, PORT_PPCR); /* 00 00 00 01 00 00 00 00 */
171 __raw_writeb(0x10, PORT_PPDR);
Markus Brunnerded54312007-09-12 11:54:58 +0900172
173 /* R7 A25; R6 A24; R5 A23; R4 A22;
174 * R3 A21; R2 A20; R1 A19; R0 A0;
175 */
Magnus Damm843284d2008-10-08 20:42:56 +0900176 gpio_request(GPIO_FN_A25, NULL);
177 gpio_request(GPIO_FN_A24, NULL);
178 gpio_request(GPIO_FN_A23, NULL);
179 gpio_request(GPIO_FN_A22, NULL);
180 gpio_request(GPIO_FN_A21, NULL);
181 gpio_request(GPIO_FN_A20, NULL);
182 gpio_request(GPIO_FN_A19, NULL);
183 gpio_request(GPIO_FN_A0, NULL);
Markus Brunnerded54312007-09-12 11:54:58 +0900184
185 /* S7 (x); S6 (x); S5 (x); S4 GPO(EEPROM_CS2);
186 * S3 GPO(EEPROM_CS1); S2 SIOF0_TXD; S1 SIOF0_RXD; S0 SIOF0_SCK;
187 */
Paul Mundt9d56dd32010-01-26 12:58:40 +0900188 __raw_writew(0x0140, PORT_PSCR); /* 00 00 00 01 01 00 00 00 */
Markus Brunnerded54312007-09-12 11:54:58 +0900189
190 /* T7 (x); T6 (x); T5 (x); T4 COM1_CTS;
191 * T3 COM1_RTS; T2 COM1_TXD; T1 COM1_RXD; T0 GPO(WDOG)
192 */
Paul Mundt9d56dd32010-01-26 12:58:40 +0900193 __raw_writew(0x0001, PORT_PTCR); /* 00 00 00 00 00 00 00 01 */
Markus Brunnerded54312007-09-12 11:54:58 +0900194
195 /* U7 (x); U6 (x); U5 (x); U4 GPI+(/AC_FAULT);
196 * U3 GPO(TOUCH_CS); U2 TOUCH_TXD; U1 TOUCH_RXD; U0 TOUCH_SCK;
197 */
Paul Mundt9d56dd32010-01-26 12:58:40 +0900198 __raw_writew(0x0240, PORT_PUCR); /* 00 00 00 10 01 00 00 00 */
Markus Brunnerded54312007-09-12 11:54:58 +0900199
200 /* V7 (x); V6 (x); V5 (x); V4 GPO(MID2);
201 * V3 GPO(MID1); V2 CARD_TxD; V1 CARD_RxD; V0 GPI+(/BAT_FAULT);
202 */
Paul Mundt9d56dd32010-01-26 12:58:40 +0900203 __raw_writew(0x0142, PORT_PVCR); /* 00 00 00 01 01 00 00 10 */
Markus Brunnerded54312007-09-12 11:54:58 +0900204}
205
206static void __init mpr2_setup(char **cmdline_p)
207{
Markus Brunnerded54312007-09-12 11:54:58 +0900208 /* set Pin Select Register A:
209 * /PCC_CD1, /PCC_CD2, PCC_BVD1, PCC_BVD2,
210 * /IOIS16, IRQ4, IRQ5, USB1d_SUSPEND
211 */
Paul Mundt9d56dd32010-01-26 12:58:40 +0900212 __raw_writew(0xAABC, PORT_PSELA);
Markus Brunnerded54312007-09-12 11:54:58 +0900213 /* set Pin Select Register B:
214 * /SCIF0_RTS, /SCIF0_CTS, LCD_VCPWC,
215 * LCD_VEPWC, IIC_SDA, IIC_SCL, Reserved
216 */
Paul Mundt9d56dd32010-01-26 12:58:40 +0900217 __raw_writew(0x3C00, PORT_PSELB);
Markus Brunnerded54312007-09-12 11:54:58 +0900218 /* set Pin Select Register C:
219 * SIOF1_SCK, SIOF1_RxD, SCIF1_RxD, SCIF1_TxD, Reserved
220 */
Paul Mundt9d56dd32010-01-26 12:58:40 +0900221 __raw_writew(0x0000, PORT_PSELC);
Markus Brunnerded54312007-09-12 11:54:58 +0900222 /* set Pin Select Register D: Reserved, SIOF1_TxD, Reserved, SIOF1_MCLK,
223 * Reserved, SIOF1_SYNC, Reserved, SCIF1_SCK, Reserved
224 */
Paul Mundt9d56dd32010-01-26 12:58:40 +0900225 __raw_writew(0x0000, PORT_PSELD);
Markus Brunnerded54312007-09-12 11:54:58 +0900226 /* set USB TxRx Control: Reserved, DRV, Reserved, USB_TRANS, USB_SEL */
Paul Mundt9d56dd32010-01-26 12:58:40 +0900227 __raw_writew(0x0101, PORT_UTRCTL);
Markus Brunnerded54312007-09-12 11:54:58 +0900228 /* set USB Clock Control: USSCS, USSTB, Reserved (HighByte always A5) */
Paul Mundt9d56dd32010-01-26 12:58:40 +0900229 __raw_writew(0xA5C0, PORT_UCLKCR_W);
Markus Brunnerded54312007-09-12 11:54:58 +0900230
231 setup_chip_select();
232
233 setup_port_multiplexing();
234
235 reset_ethernet();
236
237 printk(KERN_INFO "Magic Panel Release 2 A.%i\n",
238 CONFIG_SH_MAGIC_PANEL_R2_VERSION);
239
240 if (ethernet_reset_finished() == 0)
241 printk(KERN_WARNING "Ethernet not ready\n");
242}
243
Steve Glendinning02da9162009-01-07 17:21:29 +0900244static struct resource smsc911x_resources[] = {
Markus Brunnerded54312007-09-12 11:54:58 +0900245 [0] = {
246 .start = 0xa8000000,
247 .end = 0xabffffff,
248 .flags = IORESOURCE_MEM,
249 },
250 [1] = {
251 .start = 35,
252 .end = 35,
253 .flags = IORESOURCE_IRQ,
254 },
255};
256
Steve Glendinning02da9162009-01-07 17:21:29 +0900257static struct smsc911x_platform_config smsc911x_config = {
258 .phy_interface = PHY_INTERFACE_MODE_MII,
259 .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
260 .irq_type = SMSC911X_IRQ_TYPE_OPEN_DRAIN,
261 .flags = SMSC911X_USE_32BIT,
262};
263
264static struct platform_device smsc911x_device = {
265 .name = "smsc911x",
Markus Brunnerded54312007-09-12 11:54:58 +0900266 .id = -1,
Steve Glendinning02da9162009-01-07 17:21:29 +0900267 .num_resources = ARRAY_SIZE(smsc911x_resources),
268 .resource = smsc911x_resources,
269 .dev = {
270 .platform_data = &smsc911x_config,
271 },
Markus Brunnerded54312007-09-12 11:54:58 +0900272};
273
274static struct resource heartbeat_resources[] = {
275 [0] = {
276 .start = PA_LED,
277 .end = PA_LED,
278 .flags = IORESOURCE_MEM,
279 },
280};
281
282static struct heartbeat_data heartbeat_data = {
283 .flags = HEARTBEAT_INVERTED,
284};
285
286static struct platform_device heartbeat_device = {
287 .name = "heartbeat",
288 .id = -1,
289 .dev = {
290 .platform_data = &heartbeat_data,
291 },
292 .num_resources = ARRAY_SIZE(heartbeat_resources),
293 .resource = heartbeat_resources,
294};
295
Markus Brunnere87ab0c2007-09-21 15:27:35 +0900296static struct mtd_partition *parsed_partitions;
297
298static struct mtd_partition mpr2_partitions[] = {
299 /* Reserved for bootloader, read-only */
300 {
301 .name = "Bootloader",
302 .offset = 0x00000000UL,
303 .size = MPR2_MTD_BOOTLOADER_SIZE,
304 .mask_flags = MTD_WRITEABLE,
305 },
306 /* Reserved for kernel image */
307 {
308 .name = "Kernel",
309 .offset = MTDPART_OFS_NXTBLK,
310 .size = MPR2_MTD_KERNEL_SIZE,
311 },
312 /* Rest is used for Flash FS */
313 {
314 .name = "Flash_FS",
315 .offset = MTDPART_OFS_NXTBLK,
316 .size = MTDPART_SIZ_FULL,
317 }
318};
319
320static struct physmap_flash_data flash_data = {
321 .width = 2,
322};
323
324static struct resource flash_resource = {
325 .start = 0x00000000,
326 .end = 0x2000000UL,
327 .flags = IORESOURCE_MEM,
328};
329
330static struct platform_device flash_device = {
331 .name = "physmap-flash",
332 .id = -1,
333 .resource = &flash_resource,
334 .num_resources = 1,
335 .dev = {
336 .platform_data = &flash_data,
337 },
338};
339
340static struct mtd_info *flash_mtd;
341
342static struct map_info mpr2_flash_map = {
343 .name = "Magic Panel R2 Flash",
344 .size = 0x2000000UL,
345 .bankwidth = 2,
346};
347
348static void __init set_mtd_partitions(void)
349{
350 int nr_parts = 0;
351
352 simple_map_init(&mpr2_flash_map);
353 flash_mtd = do_map_probe("cfi_probe", &mpr2_flash_map);
354 nr_parts = parse_mtd_partitions(flash_mtd, probes,
355 &parsed_partitions, 0);
356 /* If there is no partition table, used the hard coded table */
357 if (nr_parts <= 0) {
358 flash_data.parts = mpr2_partitions;
359 flash_data.nr_parts = ARRAY_SIZE(mpr2_partitions);
360 } else {
361 flash_data.nr_parts = nr_parts;
362 flash_data.parts = parsed_partitions;
363 }
364}
365
366/*
367 * Add all resources to the platform_device
368 */
369
Markus Brunnerded54312007-09-12 11:54:58 +0900370static struct platform_device *mpr2_devices[] __initdata = {
371 &heartbeat_device,
Steve Glendinning02da9162009-01-07 17:21:29 +0900372 &smsc911x_device,
Markus Brunnere87ab0c2007-09-21 15:27:35 +0900373 &flash_device,
Markus Brunnerded54312007-09-12 11:54:58 +0900374};
375
Markus Brunnere87ab0c2007-09-21 15:27:35 +0900376
Markus Brunnerded54312007-09-12 11:54:58 +0900377static int __init mpr2_devices_setup(void)
378{
Markus Brunnere87ab0c2007-09-21 15:27:35 +0900379 set_mtd_partitions();
Markus Brunnerded54312007-09-12 11:54:58 +0900380 return platform_add_devices(mpr2_devices, ARRAY_SIZE(mpr2_devices));
381}
382device_initcall(mpr2_devices_setup);
383
384/*
385 * Initialize IRQ setting
386 */
387static void __init init_mpr2_IRQ(void)
388{
389 plat_irq_setup_pins(IRQ_MODE_IRQ); /* install handlers for IRQ0-5 */
390
391 set_irq_type(32, IRQ_TYPE_LEVEL_LOW); /* IRQ0 CAN1 */
392 set_irq_type(33, IRQ_TYPE_LEVEL_LOW); /* IRQ1 CAN2 */
393 set_irq_type(34, IRQ_TYPE_LEVEL_LOW); /* IRQ2 CAN3 */
394 set_irq_type(35, IRQ_TYPE_LEVEL_LOW); /* IRQ3 SMSC9115 */
395 set_irq_type(36, IRQ_TYPE_EDGE_RISING); /* IRQ4 touchscreen */
396 set_irq_type(37, IRQ_TYPE_EDGE_FALLING); /* IRQ5 touchscreen */
397
398 intc_set_priority(32, 13); /* IRQ0 CAN1 */
399 intc_set_priority(33, 13); /* IRQ0 CAN2 */
400 intc_set_priority(34, 13); /* IRQ0 CAN3 */
401 intc_set_priority(35, 6); /* IRQ3 SMSC9115 */
402}
403
404/*
405 * The Machine Vector
406 */
407
408static struct sh_machine_vector mv_mpr2 __initmv = {
409 .mv_name = "mpr2",
410 .mv_setup = mpr2_setup,
Markus Brunnere87ab0c2007-09-21 15:27:35 +0900411 .mv_init_irq = init_mpr2_IRQ,
Markus Brunnerded54312007-09-12 11:54:58 +0900412};