2 * armadillo 800 eva board support
4 * Copyright (C) 2012 Renesas Solutions Corp.
5 * Copyright (C) 2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
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.
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.
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
22 #include <linux/clk.h>
23 #include <linux/delay.h>
24 #include <linux/err.h>
25 #include <linux/kernel.h>
26 #include <linux/input.h>
27 #include <linux/irq.h>
28 #include <linux/platform_device.h>
29 #include <linux/gpio.h>
30 #include <linux/gpio_keys.h>
31 #include <linux/sh_eth.h>
32 #include <linux/videodev2.h>
33 #include <linux/usb/renesas_usbhs.h>
34 #include <linux/mfd/tmio.h>
35 #include <linux/mmc/host.h>
36 #include <linux/mmc/sh_mmcif.h>
37 #include <linux/mmc/sh_mobile_sdhi.h>
38 #include <mach/common.h>
39 #include <mach/irqs.h>
41 #include <asm/mach-types.h>
42 #include <asm/mach/arch.h>
43 #include <asm/mach/map.h>
44 #include <asm/mach/time.h>
45 #include <asm/hardware/cache-l2x0.h>
46 #include <mach/r8a7740.h>
47 #include <video/sh_mobile_lcdc.h>
53 * CON4 Composite Video Output
59 * CON10 Monaural Mic Input
60 * CON11 Stereo Headphone Output
61 * CON12 Audio Line Output(L)
62 * CON13 Audio Line Output(R)
73 * LED1 Camera LED(Yellow)
74 * LED2 Power LED (Green)
75 * ED3-LED6 User LED(Yellow)
76 * LED7 LAN link LED(Green)
77 * LED8 LAN activity LED(Yellow)
85 * -12345678-+---------------+----------------------------
87 * 0 | boot | OS auto boot
88 * -12345678-+---------------+----------------------------
89 * 00 | boot device | eMMC
90 * 10 | boot device | SDHI0 (CON7)
91 * 01 | boot device | -
92 * 11 | boot device | Extension Buss (CS0)
93 * -12345678-+---------------+----------------------------
94 * 0 | Extension Bus | D8-D15 disable, eMMC enable
95 * 1 | Extension Bus | D8-D15 enable, eMMC disable
96 * -12345678-+---------------+----------------------------
97 * 0 | SDHI1 | COM8 disable, COM14 enable
98 * 1 | SDHI1 | COM8 enable, COM14 disable
99 * -12345678-+---------------+----------------------------
100 * 0 | USB0 | COM20 enable, COM24 disable
101 * 1 | USB0 | COM20 disable, COM24 enable
102 * -12345678-+---------------+----------------------------
106 * 11 | JTAG | Boundary Scan
107 *-----------+---------------+----------------------------
113 * When you use USB Function,
114 * set SW1.6 ON, and connect cable to CN24.
116 * USBF needs workaround on R8A7740 chip.
117 * These are a little bit complex.
119 * usbhsf_power_ctrl()
123 * It uses autonomy mode for USB hotplug at this point
124 * (= usbhs_private.platform_callback.get_vbus is NULL),
125 * since we don't know what's happen on PM control
126 * on this workaround.
128 #define USBCR1 0xe605810a
129 #define USBH 0xC6700000
130 #define USBH_USBCTR 0x10834
132 struct usbhsf_private
{
138 void __iomem
*usbh_base
;
139 struct renesas_usbhs_platform_info info
;
142 #define usbhsf_get_priv(pdev) \
143 container_of(renesas_usbhs_get_info(pdev), \
144 struct usbhsf_private, info)
146 static int usbhsf_get_id(struct platform_device
*pdev
)
151 static void usbhsf_power_ctrl(struct platform_device
*pdev
,
152 void __iomem
*base
, int enable
)
154 struct usbhsf_private
*priv
= usbhsf_get_priv(pdev
);
157 * Work around for USB Function.
158 * It needs USB host clock, and settings
162 * enable all the related usb clocks
165 clk_enable(priv
->usb24
);
166 clk_enable(priv
->pci
);
167 clk_enable(priv
->host
);
168 clk_enable(priv
->func
);
169 clk_enable(priv
->phy
);
174 * Port1 is driven by USB function,
175 * Port2 is driven by USB HOST
176 * One HOST (Port1 or Port2 is HOST)
177 * USB PLL input clock = 24MHz
179 __raw_writew(0xd750, USBCR1
);
185 __raw_writel(0x0000000c, priv
->usbh_base
+ USBH_USBCTR
);
186 __raw_writel(0x00000008, priv
->usbh_base
+ USBH_USBCTR
);
192 __raw_writew(0xd770, USBCR1
);
193 __raw_writew(0x4000, base
+ 0x102); /* USBF :: SUSPMODE */
196 __raw_writel(0x0000010f, priv
->usbh_base
+ USBH_USBCTR
);
197 __raw_writew(0xd7c0, USBCR1
); /* GPIO */
199 clk_disable(priv
->phy
);
200 clk_disable(priv
->func
); /* usb work around */
201 clk_disable(priv
->host
); /* usb work around */
202 clk_disable(priv
->pci
); /* usb work around */
203 clk_disable(priv
->usb24
); /* usb work around */
207 static void usbhsf_hardware_exit(struct platform_device
*pdev
)
209 struct usbhsf_private
*priv
= usbhsf_get_priv(pdev
);
211 if (!IS_ERR(priv
->phy
))
213 if (!IS_ERR(priv
->usb24
))
214 clk_put(priv
->usb24
);
215 if (!IS_ERR(priv
->pci
))
217 if (!IS_ERR(priv
->host
))
219 if (!IS_ERR(priv
->func
))
222 iounmap(priv
->usbh_base
);
229 priv
->usbh_base
= NULL
;
232 static int usbhsf_hardware_init(struct platform_device
*pdev
)
234 struct usbhsf_private
*priv
= usbhsf_get_priv(pdev
);
236 priv
->phy
= clk_get(&pdev
->dev
, "phy");
237 priv
->usb24
= clk_get(&pdev
->dev
, "usb24");
238 priv
->pci
= clk_get(&pdev
->dev
, "pci");
239 priv
->func
= clk_get(&pdev
->dev
, "func");
240 priv
->host
= clk_get(&pdev
->dev
, "host");
241 priv
->usbh_base
= ioremap_nocache(USBH
, 0x20000);
243 if (IS_ERR(priv
->phy
) ||
244 IS_ERR(priv
->usb24
) ||
246 IS_ERR(priv
->host
) ||
247 IS_ERR(priv
->func
) ||
249 dev_err(&pdev
->dev
, "USB clock setting failed\n");
250 usbhsf_hardware_exit(pdev
);
254 /* usb24 use 1/1 of parent clock (= usb24s = 24MHz) */
255 clk_set_rate(priv
->usb24
,
256 clk_get_rate(clk_get_parent(priv
->usb24
)));
261 static struct usbhsf_private usbhsf_private
= {
263 .platform_callback
= {
264 .get_id
= usbhsf_get_id
,
265 .hardware_init
= usbhsf_hardware_init
,
266 .hardware_exit
= usbhsf_hardware_exit
,
267 .power_ctrl
= usbhsf_power_ctrl
,
271 .detection_delay
= 5,
276 static struct resource usbhsf_resources
[] = {
280 .end
= 0xe6890104 - 1,
281 .flags
= IORESOURCE_MEM
,
284 .start
= evt2irq(0x0A20),
285 .flags
= IORESOURCE_IRQ
,
289 static struct platform_device usbhsf_device
= {
290 .name
= "renesas_usbhs",
292 .platform_data
= &usbhsf_private
.info
,
295 .num_resources
= ARRAY_SIZE(usbhsf_resources
),
296 .resource
= usbhsf_resources
,
300 static struct sh_eth_plat_data sh_eth_platdata
= {
301 .phy
= 0x00, /* LAN8710A */
302 .edmac_endian
= EDMAC_LITTLE_ENDIAN
,
303 .register_type
= SH_ETH_REG_GIGABIT
,
304 .phy_interface
= PHY_INTERFACE_MODE_MII
,
307 static struct resource sh_eth_resources
[] = {
310 .end
= 0xe9a00800 - 1,
311 .flags
= IORESOURCE_MEM
,
314 .end
= 0xe9a02000 - 1,
315 .flags
= IORESOURCE_MEM
,
317 .start
= evt2irq(0x0500),
318 .flags
= IORESOURCE_IRQ
,
322 static struct platform_device sh_eth_device
= {
326 .platform_data
= &sh_eth_platdata
,
328 .resource
= sh_eth_resources
,
329 .num_resources
= ARRAY_SIZE(sh_eth_resources
),
333 static struct fb_videomode lcdc0_mode
= {
334 .name
= "AMPIER/AM-800480",
346 static struct sh_mobile_lcdc_info lcdc0_info
= {
347 .clock_source
= LCDC_CLK_BUS
,
349 .chan
= LCDC_CHAN_MAINLCD
,
350 .fourcc
= V4L2_PIX_FMT_RGB565
,
351 .interface_type
= RGB24
,
354 .lcd_modes
= &lcdc0_mode
,
363 static struct resource lcdc0_resources
[] = {
368 .flags
= IORESOURCE_MEM
,
371 .start
= intcs_evt2irq(0x580),
372 .flags
= IORESOURCE_IRQ
,
376 static struct platform_device lcdc0_device
= {
377 .name
= "sh_mobile_lcdc_fb",
378 .num_resources
= ARRAY_SIZE(lcdc0_resources
),
379 .resource
= lcdc0_resources
,
382 .platform_data
= &lcdc0_info
,
383 .coherent_dma_mask
= ~0,
388 #define GPIO_KEY(c, g, d) { .code = c, .gpio = g, .desc = d, .active_low = 1 }
390 static struct gpio_keys_button gpio_buttons
[] = {
391 GPIO_KEY(KEY_POWER
, GPIO_PORT99
, "SW1"),
392 GPIO_KEY(KEY_BACK
, GPIO_PORT100
, "SW2"),
393 GPIO_KEY(KEY_MENU
, GPIO_PORT97
, "SW3"),
394 GPIO_KEY(KEY_HOME
, GPIO_PORT98
, "SW4"),
397 static struct gpio_keys_platform_data gpio_key_info
= {
398 .buttons
= gpio_buttons
,
399 .nbuttons
= ARRAY_SIZE(gpio_buttons
),
402 static struct platform_device gpio_keys_device
= {
406 .platform_data
= &gpio_key_info
,
414 * It use polling mode here, since
415 * CD (= Card Detect) pin is not connected to SDHI0_CD.
416 * We can use IRQ31 as card detect irq,
417 * but it needs chattering removal operation
419 #define IRQ31 evt2irq(0x33E0)
420 static struct sh_mobile_sdhi_info sdhi0_info
= {
421 .tmio_caps
= MMC_CAP_SD_HIGHSPEED
| MMC_CAP_SDIO_IRQ
|\
423 .tmio_ocr_mask
= MMC_VDD_165_195
| MMC_VDD_32_33
| MMC_VDD_33_34
,
424 .tmio_flags
= TMIO_MMC_HAS_IDLE_WAIT
,
427 static struct resource sdhi0_resources
[] = {
431 .end
= 0xe6850100 - 1,
432 .flags
= IORESOURCE_MEM
,
435 * no SH_MOBILE_SDHI_IRQ_CARD_DETECT here
438 .name
= SH_MOBILE_SDHI_IRQ_SDCARD
,
439 .start
= evt2irq(0x0E20),
440 .flags
= IORESOURCE_IRQ
,
443 .name
= SH_MOBILE_SDHI_IRQ_SDIO
,
444 .start
= evt2irq(0x0E40),
445 .flags
= IORESOURCE_IRQ
,
449 static struct platform_device sdhi0_device
= {
450 .name
= "sh_mobile_sdhi",
453 .platform_data
= &sdhi0_info
,
455 .num_resources
= ARRAY_SIZE(sdhi0_resources
),
456 .resource
= sdhi0_resources
,
460 static struct sh_mobile_sdhi_info sdhi1_info
= {
461 .tmio_caps
= MMC_CAP_SD_HIGHSPEED
| MMC_CAP_SDIO_IRQ
,
462 .tmio_ocr_mask
= MMC_VDD_165_195
| MMC_VDD_32_33
| MMC_VDD_33_34
,
463 .tmio_flags
= TMIO_MMC_HAS_IDLE_WAIT
,
466 static struct resource sdhi1_resources
[] = {
470 .end
= 0xe6860100 - 1,
471 .flags
= IORESOURCE_MEM
,
474 .start
= evt2irq(0x0E80),
475 .flags
= IORESOURCE_IRQ
,
478 .start
= evt2irq(0x0EA0),
479 .flags
= IORESOURCE_IRQ
,
482 .start
= evt2irq(0x0EC0),
483 .flags
= IORESOURCE_IRQ
,
487 static struct platform_device sdhi1_device
= {
488 .name
= "sh_mobile_sdhi",
491 .platform_data
= &sdhi1_info
,
493 .num_resources
= ARRAY_SIZE(sdhi1_resources
),
494 .resource
= sdhi1_resources
,
498 static struct sh_mmcif_plat_data sh_mmcif_plat
= {
500 .ocr
= MMC_VDD_165_195
| MMC_VDD_32_33
| MMC_VDD_33_34
,
501 .caps
= MMC_CAP_4_BIT_DATA
|
503 MMC_CAP_NONREMOVABLE
,
506 static struct resource sh_mmcif_resources
[] = {
510 .end
= 0xe6bd0100 - 1,
511 .flags
= IORESOURCE_MEM
,
515 .start
= evt2irq(0x1AC0),
516 .flags
= IORESOURCE_IRQ
,
520 .start
= evt2irq(0x1AE0),
521 .flags
= IORESOURCE_IRQ
,
525 static struct platform_device sh_mmcif_device
= {
529 .platform_data
= &sh_mmcif_plat
,
531 .num_resources
= ARRAY_SIZE(sh_mmcif_resources
),
532 .resource
= sh_mmcif_resources
,
536 static struct i2c_board_info i2c0_devices
[] = {
538 I2C_BOARD_INFO("st1232-ts", 0x55),
539 .irq
= evt2irq(0x0340),
546 static struct platform_device
*eva_devices
[] __initdata
= {
554 static void __init
eva_clock_init(void)
556 struct clk
*system
= clk_get(NULL
, "system_clk");
557 struct clk
*xtal1
= clk_get(NULL
, "extal1");
558 struct clk
*usb24s
= clk_get(NULL
, "usb24s");
560 if (IS_ERR(system
) ||
563 pr_err("armadillo800eva board clock init failed\n");
567 /* armadillo 800 eva extal1 is 24MHz */
568 clk_set_rate(xtal1
, 24000000);
570 /* usb24s use extal1 (= system) clock (= 24MHz) */
571 clk_set_parent(usb24s
, system
);
585 static void __init
eva_init(void)
589 r8a7740_pinmux_init();
592 gpio_request(GPIO_FN_SCIFA1_RXD
, NULL
);
593 gpio_request(GPIO_FN_SCIFA1_TXD
, NULL
);
596 gpio_request(GPIO_FN_LCDC0_SELECT
, NULL
);
597 gpio_request(GPIO_FN_LCD0_D0
, NULL
);
598 gpio_request(GPIO_FN_LCD0_D1
, NULL
);
599 gpio_request(GPIO_FN_LCD0_D2
, NULL
);
600 gpio_request(GPIO_FN_LCD0_D3
, NULL
);
601 gpio_request(GPIO_FN_LCD0_D4
, NULL
);
602 gpio_request(GPIO_FN_LCD0_D5
, NULL
);
603 gpio_request(GPIO_FN_LCD0_D6
, NULL
);
604 gpio_request(GPIO_FN_LCD0_D7
, NULL
);
605 gpio_request(GPIO_FN_LCD0_D8
, NULL
);
606 gpio_request(GPIO_FN_LCD0_D9
, NULL
);
607 gpio_request(GPIO_FN_LCD0_D10
, NULL
);
608 gpio_request(GPIO_FN_LCD0_D11
, NULL
);
609 gpio_request(GPIO_FN_LCD0_D12
, NULL
);
610 gpio_request(GPIO_FN_LCD0_D13
, NULL
);
611 gpio_request(GPIO_FN_LCD0_D14
, NULL
);
612 gpio_request(GPIO_FN_LCD0_D15
, NULL
);
613 gpio_request(GPIO_FN_LCD0_D16
, NULL
);
614 gpio_request(GPIO_FN_LCD0_D17
, NULL
);
615 gpio_request(GPIO_FN_LCD0_D18_PORT40
, NULL
);
616 gpio_request(GPIO_FN_LCD0_D19_PORT4
, NULL
);
617 gpio_request(GPIO_FN_LCD0_D20_PORT3
, NULL
);
618 gpio_request(GPIO_FN_LCD0_D21_PORT2
, NULL
);
619 gpio_request(GPIO_FN_LCD0_D22_PORT0
, NULL
);
620 gpio_request(GPIO_FN_LCD0_D23_PORT1
, NULL
);
621 gpio_request(GPIO_FN_LCD0_DCK
, NULL
);
622 gpio_request(GPIO_FN_LCD0_VSYN
, NULL
);
623 gpio_request(GPIO_FN_LCD0_HSYN
, NULL
);
624 gpio_request(GPIO_FN_LCD0_DISP
, NULL
);
625 gpio_request(GPIO_FN_LCD0_LCLK_PORT165
, NULL
);
627 gpio_request(GPIO_PORT61
, NULL
); /* LCDDON */
628 gpio_direction_output(GPIO_PORT61
, 1);
630 gpio_request(GPIO_PORT202
, NULL
); /* LCD0_LED_CONT */
631 gpio_direction_output(GPIO_PORT202
, 0);
634 gpio_request(GPIO_FN_IRQ10
, NULL
); /* TP_INT */
635 gpio_request(GPIO_PORT166
, NULL
); /* TP_RST_B */
636 gpio_direction_output(GPIO_PORT166
, 1);
639 gpio_request(GPIO_FN_ET_CRS
, NULL
);
640 gpio_request(GPIO_FN_ET_MDC
, NULL
);
641 gpio_request(GPIO_FN_ET_MDIO
, NULL
);
642 gpio_request(GPIO_FN_ET_TX_ER
, NULL
);
643 gpio_request(GPIO_FN_ET_RX_ER
, NULL
);
644 gpio_request(GPIO_FN_ET_ERXD0
, NULL
);
645 gpio_request(GPIO_FN_ET_ERXD1
, NULL
);
646 gpio_request(GPIO_FN_ET_ERXD2
, NULL
);
647 gpio_request(GPIO_FN_ET_ERXD3
, NULL
);
648 gpio_request(GPIO_FN_ET_TX_CLK
, NULL
);
649 gpio_request(GPIO_FN_ET_TX_EN
, NULL
);
650 gpio_request(GPIO_FN_ET_ETXD0
, NULL
);
651 gpio_request(GPIO_FN_ET_ETXD1
, NULL
);
652 gpio_request(GPIO_FN_ET_ETXD2
, NULL
);
653 gpio_request(GPIO_FN_ET_ETXD3
, NULL
);
654 gpio_request(GPIO_FN_ET_PHY_INT
, NULL
);
655 gpio_request(GPIO_FN_ET_COL
, NULL
);
656 gpio_request(GPIO_FN_ET_RX_DV
, NULL
);
657 gpio_request(GPIO_FN_ET_RX_CLK
, NULL
);
659 gpio_request(GPIO_PORT18
, NULL
); /* PHY_RST */
660 gpio_direction_output(GPIO_PORT18
, 1);
663 gpio_request(GPIO_PORT159
, NULL
); /* USB_DEVICE_MODE */
664 gpio_direction_input(GPIO_PORT159
);
666 if (gpio_get_value(GPIO_PORT159
)) {
670 gpio_request(GPIO_FN_VBUS
, NULL
);
671 platform_device_register(&usbhsf_device
);
675 gpio_request(GPIO_FN_SDHI0_CMD
, NULL
);
676 gpio_request(GPIO_FN_SDHI0_CLK
, NULL
);
677 gpio_request(GPIO_FN_SDHI0_D0
, NULL
);
678 gpio_request(GPIO_FN_SDHI0_D1
, NULL
);
679 gpio_request(GPIO_FN_SDHI0_D2
, NULL
);
680 gpio_request(GPIO_FN_SDHI0_D3
, NULL
);
681 gpio_request(GPIO_FN_SDHI0_WP
, NULL
);
683 gpio_request(GPIO_PORT17
, NULL
); /* SDHI0_18/33_B */
684 gpio_request(GPIO_PORT74
, NULL
); /* SDHI0_PON */
685 gpio_request(GPIO_PORT75
, NULL
); /* SDSLOT1_PON */
686 gpio_direction_output(GPIO_PORT17
, 0);
687 gpio_direction_output(GPIO_PORT74
, 1);
688 gpio_direction_output(GPIO_PORT75
, 1);
690 /* we can use GPIO_FN_IRQ31_PORT167 here for SDHI0 CD irq */
695 * Here doesn't care SW1.4 status,
696 * since CON2 is not mounted.
698 gpio_request(GPIO_FN_MMC1_CLK_PORT103
, NULL
);
699 gpio_request(GPIO_FN_MMC1_CMD_PORT104
, NULL
);
700 gpio_request(GPIO_FN_MMC1_D0_PORT149
, NULL
);
701 gpio_request(GPIO_FN_MMC1_D1_PORT148
, NULL
);
702 gpio_request(GPIO_FN_MMC1_D2_PORT147
, NULL
);
703 gpio_request(GPIO_FN_MMC1_D3_PORT146
, NULL
);
704 gpio_request(GPIO_FN_MMC1_D4_PORT145
, NULL
);
705 gpio_request(GPIO_FN_MMC1_D5_PORT144
, NULL
);
706 gpio_request(GPIO_FN_MMC1_D6_PORT143
, NULL
);
707 gpio_request(GPIO_FN_MMC1_D7_PORT142
, NULL
);
712 * DBGMD/LCDC0/FSIA MUX
713 * DBGMD_SELECT_B should be set after setting PFC Function.
715 gpio_request(GPIO_PORT176
, NULL
);
716 gpio_direction_output(GPIO_PORT176
, 1);
719 * We can switch CON8/CON14 by SW1.5,
720 * but it needs after DBGMD_SELECT_B
722 gpio_request(GPIO_PORT6
, NULL
);
723 gpio_direction_input(GPIO_PORT6
);
724 if (gpio_get_value(GPIO_PORT6
)) {
727 /* CON8 (SDHI1) enable */
728 gpio_request(GPIO_FN_SDHI1_CLK
, NULL
);
729 gpio_request(GPIO_FN_SDHI1_CMD
, NULL
);
730 gpio_request(GPIO_FN_SDHI1_D0
, NULL
);
731 gpio_request(GPIO_FN_SDHI1_D1
, NULL
);
732 gpio_request(GPIO_FN_SDHI1_D2
, NULL
);
733 gpio_request(GPIO_FN_SDHI1_D3
, NULL
);
734 gpio_request(GPIO_FN_SDHI1_CD
, NULL
);
735 gpio_request(GPIO_FN_SDHI1_WP
, NULL
);
737 gpio_request(GPIO_PORT16
, NULL
); /* SDSLOT2_PON */
738 gpio_direction_output(GPIO_PORT16
, 1);
740 platform_device_register(&sdhi1_device
);
744 #ifdef CONFIG_CACHE_L2X0
745 /* Early BRESP enable, Shared attribute override enable, 32K*8way */
746 l2x0_init(__io(0xf0002000), 0x40440000, 0x82000fff);
749 i2c_register_board_info(0, i2c0_devices
, ARRAY_SIZE(i2c0_devices
));
751 r8a7740_add_standard_devices();
753 platform_add_devices(eva_devices
,
754 ARRAY_SIZE(eva_devices
));
757 static void __init
eva_earlytimer_init(void)
759 r8a7740_clock_init(MD_CK0
| MD_CK2
);
760 shmobile_earlytimer_init();
763 static void __init
eva_add_early_devices(void)
765 r8a7740_add_early_devices();
767 /* override timer setup with board-specific code */
768 shmobile_timer
.init
= eva_earlytimer_init
;
771 static const char *eva_boards_compat_dt
[] __initdata
= {
772 "renesas,armadillo800eva",
776 DT_MACHINE_START(ARMADILLO800EVA_DT
, "armadillo800eva")
777 .map_io
= r8a7740_map_io
,
778 .init_early
= eva_add_early_devices
,
779 .init_irq
= r8a7740_init_irq
,
780 .handle_irq
= shmobile_handle_irq_intc
,
781 .init_machine
= eva_init
,
782 .init_late
= shmobile_init_late
,
783 .timer
= &shmobile_timer
,
784 .dt_compat
= eva_boards_compat_dt
,