Merge tag 'timer' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[pandora-kernel.git] / arch / arm / mach-shmobile / board-ag5evm.c
1 /*
2  * arch/arm/mach-shmobile/board-ag5evm.c
3  *
4  * Copyright (C) 2010  Takashi Yoshii <yoshii.takashi.zj@renesas.com>
5  * Copyright (C) 2009  Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; version 2 of the License.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19  *
20  */
21
22 #include <linux/kernel.h>
23 #include <linux/init.h>
24 #include <linux/interrupt.h>
25 #include <linux/irq.h>
26 #include <linux/platform_device.h>
27 #include <linux/delay.h>
28 #include <linux/io.h>
29 #include <linux/dma-mapping.h>
30 #include <linux/serial_sci.h>
31 #include <linux/smsc911x.h>
32 #include <linux/gpio.h>
33 #include <linux/videodev2.h>
34 #include <linux/input.h>
35 #include <linux/input/sh_keysc.h>
36 #include <linux/mmc/host.h>
37 #include <linux/mmc/sh_mmcif.h>
38 #include <linux/mmc/sh_mobile_sdhi.h>
39 #include <linux/mfd/tmio.h>
40 #include <linux/sh_clk.h>
41 #include <linux/videodev2.h>
42 #include <video/sh_mobile_lcdc.h>
43 #include <video/sh_mipi_dsi.h>
44 #include <sound/sh_fsi.h>
45 #include <mach/hardware.h>
46 #include <mach/sh73a0.h>
47 #include <mach/common.h>
48 #include <asm/mach-types.h>
49 #include <asm/mach/arch.h>
50 #include <asm/hardware/gic.h>
51 #include <asm/hardware/cache-l2x0.h>
52 #include <asm/traps.h>
53
54 static struct resource smsc9220_resources[] = {
55         [0] = {
56                 .start          = 0x14000000,
57                 .end            = 0x14000000 + SZ_64K - 1,
58                 .flags          = IORESOURCE_MEM,
59         },
60         [1] = {
61                 .start          = SH73A0_PINT0_IRQ(2), /* PINTA2 */
62                 .flags          = IORESOURCE_IRQ,
63         },
64 };
65
66 static struct smsc911x_platform_config smsc9220_platdata = {
67         .flags          = SMSC911X_USE_32BIT | SMSC911X_SAVE_MAC_ADDRESS,
68         .phy_interface  = PHY_INTERFACE_MODE_MII,
69         .irq_polarity   = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
70         .irq_type       = SMSC911X_IRQ_TYPE_PUSH_PULL,
71 };
72
73 static struct platform_device eth_device = {
74         .name           = "smsc911x",
75         .id             = 0,
76         .dev  = {
77                 .platform_data = &smsc9220_platdata,
78         },
79         .resource       = smsc9220_resources,
80         .num_resources  = ARRAY_SIZE(smsc9220_resources),
81 };
82
83 static struct sh_keysc_info keysc_platdata = {
84         .mode           = SH_KEYSC_MODE_6,
85         .scan_timing    = 3,
86         .delay          = 100,
87         .keycodes       = {
88                 KEY_A, KEY_B, KEY_C, KEY_D, KEY_E, KEY_F, KEY_G,
89                 KEY_H, KEY_I, KEY_J, KEY_K, KEY_L, KEY_M, KEY_N,
90                 KEY_O, KEY_P, KEY_Q, KEY_R, KEY_S, KEY_T, KEY_U,
91                 KEY_V, KEY_W, KEY_X, KEY_Y, KEY_Z, KEY_HOME, KEY_SLEEP,
92                 KEY_SPACE, KEY_9, KEY_6, KEY_3, KEY_WAKEUP, KEY_RIGHT, \
93                 KEY_COFFEE,
94                 KEY_0, KEY_8, KEY_5, KEY_2, KEY_DOWN, KEY_ENTER, KEY_UP,
95                 KEY_KPASTERISK, KEY_7, KEY_4, KEY_1, KEY_STOP, KEY_LEFT, \
96                 KEY_COMPUTER,
97         },
98 };
99
100 static struct resource keysc_resources[] = {
101         [0] = {
102                 .name   = "KEYSC",
103                 .start  = 0xe61b0000,
104                 .end    = 0xe61b0098 - 1,
105                 .flags  = IORESOURCE_MEM,
106         },
107         [1] = {
108                 .start  = gic_spi(71),
109                 .flags  = IORESOURCE_IRQ,
110         },
111 };
112
113 static struct platform_device keysc_device = {
114         .name           = "sh_keysc",
115         .id             = 0,
116         .num_resources  = ARRAY_SIZE(keysc_resources),
117         .resource       = keysc_resources,
118         .dev            = {
119                 .platform_data  = &keysc_platdata,
120         },
121 };
122
123 /* FSI A */
124 static struct resource fsi_resources[] = {
125         [0] = {
126                 .name   = "FSI",
127                 .start  = 0xEC230000,
128                 .end    = 0xEC230400 - 1,
129                 .flags  = IORESOURCE_MEM,
130         },
131         [1] = {
132                 .start  = gic_spi(146),
133                 .flags  = IORESOURCE_IRQ,
134         },
135 };
136
137 static struct platform_device fsi_device = {
138         .name           = "sh_fsi2",
139         .id             = -1,
140         .num_resources  = ARRAY_SIZE(fsi_resources),
141         .resource       = fsi_resources,
142 };
143
144 static struct resource sh_mmcif_resources[] = {
145         [0] = {
146                 .name   = "MMCIF",
147                 .start  = 0xe6bd0000,
148                 .end    = 0xe6bd00ff,
149                 .flags  = IORESOURCE_MEM,
150         },
151         [1] = {
152                 .start  = gic_spi(141),
153                 .flags  = IORESOURCE_IRQ,
154         },
155         [2] = {
156                 .start  = gic_spi(140),
157                 .flags  = IORESOURCE_IRQ,
158         },
159 };
160
161 static struct sh_mmcif_plat_data sh_mmcif_platdata = {
162         .sup_pclk       = 0,
163         .ocr            = MMC_VDD_165_195,
164         .caps           = MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE,
165         .slave_id_tx    = SHDMA_SLAVE_MMCIF_TX,
166         .slave_id_rx    = SHDMA_SLAVE_MMCIF_RX,
167 };
168
169 static struct platform_device mmc_device = {
170         .name           = "sh_mmcif",
171         .id             = 0,
172         .dev            = {
173                 .dma_mask               = NULL,
174                 .coherent_dma_mask      = 0xffffffff,
175                 .platform_data          = &sh_mmcif_platdata,
176         },
177         .num_resources  = ARRAY_SIZE(sh_mmcif_resources),
178         .resource       = sh_mmcif_resources,
179 };
180
181 /* IrDA */
182 static struct resource irda_resources[] = {
183         [0] = {
184                 .start  = 0xE6D00000,
185                 .end    = 0xE6D01FD4 - 1,
186                 .flags  = IORESOURCE_MEM,
187         },
188         [1] = {
189                 .start  = gic_spi(95),
190                 .flags  = IORESOURCE_IRQ,
191         },
192 };
193
194 static struct platform_device irda_device = {
195         .name           = "sh_irda",
196         .id             = 0,
197         .resource       = irda_resources,
198         .num_resources  = ARRAY_SIZE(irda_resources),
199 };
200
201 static unsigned char lcd_backlight_seq[3][2] = {
202         { 0x04, 0x07 },
203         { 0x23, 0x80 },
204         { 0x03, 0x01 },
205 };
206
207 static void lcd_backlight_on(void)
208 {
209         struct i2c_adapter *a;
210         struct i2c_msg msg;
211         int k;
212
213         a = i2c_get_adapter(1);
214         for (k = 0; a && k < 3; k++) {
215                 msg.addr = 0x6d;
216                 msg.buf = &lcd_backlight_seq[k][0];
217                 msg.len = 2;
218                 msg.flags = 0;
219                 if (i2c_transfer(a, &msg, 1) != 1)
220                         break;
221         }
222 }
223
224 static void lcd_backlight_reset(void)
225 {
226         gpio_set_value(GPIO_PORT235, 0);
227         mdelay(24);
228         gpio_set_value(GPIO_PORT235, 1);
229 }
230
231 /* LCDC0 */
232 static const struct fb_videomode lcdc0_modes[] = {
233         {
234                 .name           = "R63302(QHD)",
235                 .xres           = 544,
236                 .yres           = 961,
237                 .left_margin    = 72,
238                 .right_margin   = 600,
239                 .hsync_len      = 16,
240                 .upper_margin   = 8,
241                 .lower_margin   = 8,
242                 .vsync_len      = 2,
243                 .sync           = FB_SYNC_VERT_HIGH_ACT | FB_SYNC_HOR_HIGH_ACT,
244         },
245 };
246
247 static struct sh_mobile_lcdc_info lcdc0_info = {
248         .clock_source = LCDC_CLK_PERIPHERAL,
249         .ch[0] = {
250                 .chan = LCDC_CHAN_MAINLCD,
251                 .interface_type = RGB24,
252                 .clock_divider = 1,
253                 .flags = LCDC_FLAGS_DWPOL,
254                 .fourcc = V4L2_PIX_FMT_RGB565,
255                 .lcd_modes = lcdc0_modes,
256                 .num_modes = ARRAY_SIZE(lcdc0_modes),
257                 .panel_cfg = {
258                         .width = 44,
259                         .height = 79,
260                         .display_on = lcd_backlight_on,
261                         .display_off = lcd_backlight_reset,
262                 },
263         }
264 };
265
266 static struct resource lcdc0_resources[] = {
267         [0] = {
268                 .name   = "LCDC0",
269                 .start  = 0xfe940000, /* P4-only space */
270                 .end    = 0xfe943fff,
271                 .flags  = IORESOURCE_MEM,
272         },
273         [1] = {
274                 .start  = intcs_evt2irq(0x580),
275                 .flags  = IORESOURCE_IRQ,
276         },
277 };
278
279 static struct platform_device lcdc0_device = {
280         .name           = "sh_mobile_lcdc_fb",
281         .num_resources  = ARRAY_SIZE(lcdc0_resources),
282         .resource       = lcdc0_resources,
283         .id             = 0,
284         .dev    = {
285                 .platform_data  = &lcdc0_info,
286                 .coherent_dma_mask = ~0,
287         },
288 };
289
290 /* MIPI-DSI */
291 static struct resource mipidsi0_resources[] = {
292         [0] = {
293                 .name   = "DSI0",
294                 .start  = 0xfeab0000,
295                 .end    = 0xfeab3fff,
296                 .flags  = IORESOURCE_MEM,
297         },
298         [1] = {
299                 .name   = "DSI0",
300                 .start  = 0xfeab4000,
301                 .end    = 0xfeab7fff,
302                 .flags  = IORESOURCE_MEM,
303         },
304 };
305
306 static int sh_mipi_set_dot_clock(struct platform_device *pdev,
307                                  void __iomem *base,
308                                  int enable)
309 {
310         struct clk *pck, *phy;
311         int ret;
312
313         pck = clk_get(&pdev->dev, "dsip_clk");
314         if (IS_ERR(pck)) {
315                 ret = PTR_ERR(pck);
316                 goto sh_mipi_set_dot_clock_pck_err;
317         }
318
319         phy = clk_get(&pdev->dev, "dsiphy_clk");
320         if (IS_ERR(phy)) {
321                 ret = PTR_ERR(phy);
322                 goto sh_mipi_set_dot_clock_phy_err;
323         }
324
325         if (enable) {
326                 clk_set_rate(pck, clk_round_rate(pck,  24000000));
327                 clk_set_rate(phy, clk_round_rate(pck, 510000000));
328                 clk_enable(pck);
329                 clk_enable(phy);
330         } else {
331                 clk_disable(pck);
332                 clk_disable(phy);
333         }
334
335         ret = 0;
336
337         clk_put(phy);
338 sh_mipi_set_dot_clock_phy_err:
339         clk_put(pck);
340 sh_mipi_set_dot_clock_pck_err:
341         return ret;
342 }
343
344 static struct sh_mipi_dsi_info mipidsi0_info = {
345         .data_format    = MIPI_RGB888,
346         .lcd_chan       = &lcdc0_info.ch[0],
347         .lane           = 2,
348         .vsynw_offset   = 20,
349         .clksrc         = 1,
350         .flags          = SH_MIPI_DSI_HSABM             |
351                           SH_MIPI_DSI_SYNC_PULSES_MODE  |
352                           SH_MIPI_DSI_HSbyteCLK,
353         .set_dot_clock  = sh_mipi_set_dot_clock,
354 };
355
356 static struct platform_device mipidsi0_device = {
357         .name           = "sh-mipi-dsi",
358         .num_resources  = ARRAY_SIZE(mipidsi0_resources),
359         .resource       = mipidsi0_resources,
360         .id             = 0,
361         .dev    = {
362                 .platform_data  = &mipidsi0_info,
363         },
364 };
365
366 /* SDHI0 */
367 static irqreturn_t ag5evm_sdhi0_gpio_cd(int irq, void *arg)
368 {
369         struct device *dev = arg;
370         struct sh_mobile_sdhi_info *info = dev->platform_data;
371         struct tmio_mmc_data *pdata = info->pdata;
372
373         tmio_mmc_cd_wakeup(pdata);
374
375         return IRQ_HANDLED;
376 }
377
378 static struct sh_mobile_sdhi_info sdhi0_info = {
379         .dma_slave_tx   = SHDMA_SLAVE_SDHI0_TX,
380         .dma_slave_rx   = SHDMA_SLAVE_SDHI0_RX,
381         .tmio_flags     = TMIO_MMC_HAS_IDLE_WAIT,
382         .tmio_caps      = MMC_CAP_SD_HIGHSPEED,
383         .tmio_ocr_mask  = MMC_VDD_27_28 | MMC_VDD_28_29,
384 };
385
386 static struct resource sdhi0_resources[] = {
387         [0] = {
388                 .name   = "SDHI0",
389                 .start  = 0xee100000,
390                 .end    = 0xee1000ff,
391                 .flags  = IORESOURCE_MEM,
392         },
393         [1] = {
394                 .name   = SH_MOBILE_SDHI_IRQ_CARD_DETECT,
395                 .start  = gic_spi(83),
396                 .flags  = IORESOURCE_IRQ,
397         },
398         [2] = {
399                 .name   = SH_MOBILE_SDHI_IRQ_SDCARD,
400                 .start  = gic_spi(84),
401                 .flags  = IORESOURCE_IRQ,
402         },
403         [3] = {
404                 .name   = SH_MOBILE_SDHI_IRQ_SDIO,
405                 .start  = gic_spi(85),
406                 .flags  = IORESOURCE_IRQ,
407         },
408 };
409
410 static struct platform_device sdhi0_device = {
411         .name           = "sh_mobile_sdhi",
412         .id             = 0,
413         .num_resources  = ARRAY_SIZE(sdhi0_resources),
414         .resource       = sdhi0_resources,
415         .dev    = {
416                 .platform_data  = &sdhi0_info,
417         },
418 };
419
420 void ag5evm_sdhi1_set_pwr(struct platform_device *pdev, int state)
421 {
422         gpio_set_value(GPIO_PORT114, state);
423 }
424
425 static struct sh_mobile_sdhi_info sh_sdhi1_info = {
426         .tmio_flags     = TMIO_MMC_WRPROTECT_DISABLE | TMIO_MMC_HAS_IDLE_WAIT,
427         .tmio_caps      = MMC_CAP_NONREMOVABLE | MMC_CAP_SDIO_IRQ,
428         .tmio_ocr_mask  = MMC_VDD_32_33 | MMC_VDD_33_34,
429         .set_pwr        = ag5evm_sdhi1_set_pwr,
430 };
431
432 static struct resource sdhi1_resources[] = {
433         [0] = {
434                 .name   = "SDHI1",
435                 .start  = 0xee120000,
436                 .end    = 0xee1200ff,
437                 .flags  = IORESOURCE_MEM,
438         },
439         [1] = {
440                 .name   = SH_MOBILE_SDHI_IRQ_CARD_DETECT,
441                 .start  = gic_spi(87),
442                 .flags  = IORESOURCE_IRQ,
443         },
444         [2] = {
445                 .name   = SH_MOBILE_SDHI_IRQ_SDCARD,
446                 .start  = gic_spi(88),
447                 .flags  = IORESOURCE_IRQ,
448         },
449         [3] = {
450                 .name   = SH_MOBILE_SDHI_IRQ_SDIO,
451                 .start  = gic_spi(89),
452                 .flags  = IORESOURCE_IRQ,
453         },
454 };
455
456 static struct platform_device sdhi1_device = {
457         .name           = "sh_mobile_sdhi",
458         .id             = 1,
459         .dev            = {
460                 .platform_data  = &sh_sdhi1_info,
461         },
462         .num_resources  = ARRAY_SIZE(sdhi1_resources),
463         .resource       = sdhi1_resources,
464 };
465
466 static struct platform_device *ag5evm_devices[] __initdata = {
467         &eth_device,
468         &keysc_device,
469         &fsi_device,
470         &mmc_device,
471         &irda_device,
472         &lcdc0_device,
473         &mipidsi0_device,
474         &sdhi0_device,
475         &sdhi1_device,
476 };
477
478 static void __init ag5evm_init(void)
479 {
480         sh73a0_pinmux_init();
481
482         /* enable SCIFA2 */
483         gpio_request(GPIO_FN_SCIFA2_TXD1, NULL);
484         gpio_request(GPIO_FN_SCIFA2_RXD1, NULL);
485         gpio_request(GPIO_FN_SCIFA2_RTS1_, NULL);
486         gpio_request(GPIO_FN_SCIFA2_CTS1_, NULL);
487
488         /* enable KEYSC */
489         gpio_request(GPIO_FN_KEYIN0_PU, NULL);
490         gpio_request(GPIO_FN_KEYIN1_PU, NULL);
491         gpio_request(GPIO_FN_KEYIN2_PU, NULL);
492         gpio_request(GPIO_FN_KEYIN3_PU, NULL);
493         gpio_request(GPIO_FN_KEYIN4_PU, NULL);
494         gpio_request(GPIO_FN_KEYIN5_PU, NULL);
495         gpio_request(GPIO_FN_KEYIN6_PU, NULL);
496         gpio_request(GPIO_FN_KEYIN7_PU, NULL);
497         gpio_request(GPIO_FN_KEYOUT0, NULL);
498         gpio_request(GPIO_FN_KEYOUT1, NULL);
499         gpio_request(GPIO_FN_KEYOUT2, NULL);
500         gpio_request(GPIO_FN_KEYOUT3, NULL);
501         gpio_request(GPIO_FN_KEYOUT4, NULL);
502         gpio_request(GPIO_FN_KEYOUT5, NULL);
503         gpio_request(GPIO_FN_PORT59_KEYOUT6, NULL);
504         gpio_request(GPIO_FN_PORT58_KEYOUT7, NULL);
505         gpio_request(GPIO_FN_KEYOUT8, NULL);
506         gpio_request(GPIO_FN_PORT149_KEYOUT9, NULL);
507
508         /* enable I2C channel 2 and 3 */
509         gpio_request(GPIO_FN_PORT236_I2C_SDA2, NULL);
510         gpio_request(GPIO_FN_PORT237_I2C_SCL2, NULL);
511         gpio_request(GPIO_FN_PORT248_I2C_SCL3, NULL);
512         gpio_request(GPIO_FN_PORT249_I2C_SDA3, NULL);
513
514         /* enable MMCIF */
515         gpio_request(GPIO_FN_MMCCLK0, NULL);
516         gpio_request(GPIO_FN_MMCCMD0_PU, NULL);
517         gpio_request(GPIO_FN_MMCD0_0_PU, NULL);
518         gpio_request(GPIO_FN_MMCD0_1_PU, NULL);
519         gpio_request(GPIO_FN_MMCD0_2_PU, NULL);
520         gpio_request(GPIO_FN_MMCD0_3_PU, NULL);
521         gpio_request(GPIO_FN_MMCD0_4_PU, NULL);
522         gpio_request(GPIO_FN_MMCD0_5_PU, NULL);
523         gpio_request(GPIO_FN_MMCD0_6_PU, NULL);
524         gpio_request(GPIO_FN_MMCD0_7_PU, NULL);
525         gpio_request(GPIO_PORT208, NULL); /* Reset */
526         gpio_direction_output(GPIO_PORT208, 1);
527
528         /* enable SMSC911X */
529         gpio_request(GPIO_PORT144, NULL); /* PINTA2 */
530         gpio_direction_input(GPIO_PORT144);
531         gpio_request(GPIO_PORT145, NULL); /* RESET */
532         gpio_direction_output(GPIO_PORT145, 1);
533
534         /* FSI A */
535         gpio_request(GPIO_FN_FSIACK, NULL);
536         gpio_request(GPIO_FN_FSIAILR, NULL);
537         gpio_request(GPIO_FN_FSIAIBT, NULL);
538         gpio_request(GPIO_FN_FSIAISLD, NULL);
539         gpio_request(GPIO_FN_FSIAOSLD, NULL);
540
541         /* IrDA */
542         gpio_request(GPIO_FN_PORT241_IRDA_OUT, NULL);
543         gpio_request(GPIO_FN_PORT242_IRDA_IN,  NULL);
544         gpio_request(GPIO_FN_PORT243_IRDA_FIRSEL, NULL);
545
546         /* LCD panel */
547         gpio_request(GPIO_PORT217, NULL); /* RESET */
548         gpio_direction_output(GPIO_PORT217, 0);
549         mdelay(1);
550         gpio_set_value(GPIO_PORT217, 1);
551         mdelay(100);
552
553         /* LCD backlight controller */
554         gpio_request(GPIO_PORT235, NULL); /* RESET */
555         gpio_direction_output(GPIO_PORT235, 0);
556         lcd_backlight_reset();
557
558         /* enable SDHI0 on CN15 [SD I/F] */
559         gpio_request(GPIO_FN_SDHICD0, NULL);
560         gpio_request(GPIO_FN_SDHIWP0, NULL);
561         gpio_request(GPIO_FN_SDHICMD0, NULL);
562         gpio_request(GPIO_FN_SDHICLK0, NULL);
563         gpio_request(GPIO_FN_SDHID0_3, NULL);
564         gpio_request(GPIO_FN_SDHID0_2, NULL);
565         gpio_request(GPIO_FN_SDHID0_1, NULL);
566         gpio_request(GPIO_FN_SDHID0_0, NULL);
567
568         if (!request_irq(intcs_evt2irq(0x3c0), ag5evm_sdhi0_gpio_cd,
569                          IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING,
570                          "sdhi0 cd", &sdhi0_device.dev))
571                 sdhi0_info.tmio_flags |= TMIO_MMC_HAS_COLD_CD;
572         else
573                 pr_warn("Unable to setup SDHI0 GPIO IRQ\n");
574
575         /* enable SDHI1 on CN4 [WLAN I/F] */
576         gpio_request(GPIO_FN_SDHICLK1, NULL);
577         gpio_request(GPIO_FN_SDHICMD1_PU, NULL);
578         gpio_request(GPIO_FN_SDHID1_3_PU, NULL);
579         gpio_request(GPIO_FN_SDHID1_2_PU, NULL);
580         gpio_request(GPIO_FN_SDHID1_1_PU, NULL);
581         gpio_request(GPIO_FN_SDHID1_0_PU, NULL);
582         gpio_request(GPIO_PORT114, "sdhi1_power");
583         gpio_direction_output(GPIO_PORT114, 0);
584
585 #ifdef CONFIG_CACHE_L2X0
586         /* Shared attribute override enable, 64K*8way */
587         l2x0_init(__io(0xf0100000), 0x00460000, 0xc2000fff);
588 #endif
589         sh73a0_add_standard_devices();
590         platform_add_devices(ag5evm_devices, ARRAY_SIZE(ag5evm_devices));
591 }
592
593 MACHINE_START(AG5EVM, "ag5evm")
594         .map_io         = sh73a0_map_io,
595         .init_early     = sh73a0_add_early_devices,
596         .nr_irqs        = NR_IRQS_LEGACY,
597         .init_irq       = sh73a0_init_irq,
598         .handle_irq     = gic_handle_irq,
599         .init_machine   = ag5evm_init,
600         .timer          = &shmobile_timer,
601 MACHINE_END