blob: 2aa3e581e84014061a3af3dc5bcd036febb351ce [file] [log] [blame]
Fabio Estevam1553a1e2008-11-12 15:38:39 +01001/*
2 * Copyright 2008 Freescale Semiconductor, Inc. All Rights Reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
Fabio Estevam1553a1e2008-11-12 15:38:39 +010013 */
14
Magnus Liljaa2ef4562010-05-14 17:08:29 +020015#include <linux/delay.h>
Fabio Estevam1553a1e2008-11-12 15:38:39 +010016#include <linux/types.h>
17#include <linux/init.h>
18#include <linux/clk.h>
19#include <linux/irq.h>
Magnus Lilja135cad32009-05-17 20:18:08 +020020#include <linux/gpio.h>
Magnus Lilja2b0c3672009-05-18 18:46:33 +020021#include <linux/smsc911x.h>
22#include <linux/platform_device.h>
Alberto Panizzoae7a3f12010-03-23 19:51:45 +010023#include <linux/mfd/mc13783.h>
24#include <linux/spi/spi.h>
25#include <linux/regulator/machine.h>
Magnus Liljaa2ef4562010-05-14 17:08:29 +020026#include <linux/fsl_devices.h>
Alberto Panizzo54c1f632010-05-19 11:34:43 +020027#include <linux/input/matrix_keypad.h>
Fabio Estevam1553a1e2008-11-12 15:38:39 +010028
29#include <mach/hardware.h>
30#include <asm/mach-types.h>
31#include <asm/mach/arch.h>
32#include <asm/mach/time.h>
33#include <asm/memory.h>
34#include <asm/mach/map.h>
35#include <mach/common.h>
Fabio Estevam1553a1e2008-11-12 15:38:39 +010036#include <mach/imx-uart.h>
37#include <mach/iomux-mx3.h>
Uwe Kleine-Königa2ceeef2010-06-16 12:23:11 +020038
39#include "devices-imx31.h"
Fabio Estevam1553a1e2008-11-12 15:38:39 +010040#include "devices.h"
41
Uwe Kleine-Königb396dc42010-03-08 16:57:19 +010042/* Definitions for components on the Debug board */
43
44/* Base address of CPLD controller on the Debug board */
45#define DEBUG_BASE_ADDRESS CS5_IO_ADDRESS(MX3x_CS5_BASE_ADDR)
46
47/* LAN9217 ethernet base address */
48#define LAN9217_BASE_ADDR MX3x_CS5_BASE_ADDR
49
50/* CPLD config and interrupt base address */
51#define CPLD_ADDR (DEBUG_BASE_ADDRESS + 0x20000)
52
53/* status, interrupt */
54#define CPLD_INT_STATUS_REG (CPLD_ADDR + 0x10)
55#define CPLD_INT_MASK_REG (CPLD_ADDR + 0x38)
56#define CPLD_INT_RESET_REG (CPLD_ADDR + 0x20)
57/* magic word for debug CPLD */
58#define CPLD_MAGIC_NUMBER1_REG (CPLD_ADDR + 0x40)
59#define CPLD_MAGIC_NUMBER2_REG (CPLD_ADDR + 0x48)
60/* CPLD code version */
61#define CPLD_CODE_VER_REG (CPLD_ADDR + 0x50)
62/* magic word for debug CPLD */
63#define CPLD_MAGIC_NUMBER3_REG (CPLD_ADDR + 0x58)
64
65/* CPLD IRQ line for external uart, external ethernet etc */
66#define EXPIO_PARENT_INT IOMUX_TO_IRQ(MX31_PIN_GPIO1_1)
67
68#define MXC_EXP_IO_BASE (MXC_BOARD_IRQ_START)
69#define MXC_IRQ_TO_EXPIO(irq) ((irq) - MXC_EXP_IO_BASE)
70
71#define EXPIO_INT_ENET (MXC_EXP_IO_BASE + 0)
72
73#define MXC_MAX_EXP_IO_LINES 16
74
75/*
76 * This file contains the board-specific initialization routines.
Fabio Estevam1553a1e2008-11-12 15:38:39 +010077 */
78
Alberto Panizzo11a332a2010-03-23 19:46:57 +010079static int mx31_3ds_pins[] = {
Magnus Lilja153fa1d2009-05-16 12:43:10 +020080 /* UART1 */
Valentin Longchamp63d976672009-01-28 15:13:53 +010081 MX31_PIN_CTS1__CTS1,
82 MX31_PIN_RTS1__RTS1,
83 MX31_PIN_TXD1__TXD1,
Magnus Lilja135cad32009-05-17 20:18:08 +020084 MX31_PIN_RXD1__RXD1,
85 IOMUX_MODE(MX31_PIN_GPIO1_1, IOMUX_CONFIG_GPIO),
Alberto Panizzoa1ac4422010-03-23 19:50:28 +010086 /* SPI 1 */
87 MX31_PIN_CSPI2_SCLK__SCLK,
88 MX31_PIN_CSPI2_MOSI__MOSI,
89 MX31_PIN_CSPI2_MISO__MISO,
90 MX31_PIN_CSPI2_SPI_RDY__SPI_RDY,
91 MX31_PIN_CSPI2_SS0__SS0,
92 MX31_PIN_CSPI2_SS2__SS2, /*CS for MC13783 */
Alberto Panizzoae7a3f12010-03-23 19:51:45 +010093 /* MC13783 IRQ */
94 IOMUX_MODE(MX31_PIN_GPIO1_3, IOMUX_CONFIG_GPIO),
Magnus Liljaa2ef4562010-05-14 17:08:29 +020095 /* USB OTG reset */
96 IOMUX_MODE(MX31_PIN_USB_PWR, IOMUX_CONFIG_GPIO),
97 /* USB OTG */
98 MX31_PIN_USBOTG_DATA0__USBOTG_DATA0,
99 MX31_PIN_USBOTG_DATA1__USBOTG_DATA1,
100 MX31_PIN_USBOTG_DATA2__USBOTG_DATA2,
101 MX31_PIN_USBOTG_DATA3__USBOTG_DATA3,
102 MX31_PIN_USBOTG_DATA4__USBOTG_DATA4,
103 MX31_PIN_USBOTG_DATA5__USBOTG_DATA5,
104 MX31_PIN_USBOTG_DATA6__USBOTG_DATA6,
105 MX31_PIN_USBOTG_DATA7__USBOTG_DATA7,
106 MX31_PIN_USBOTG_CLK__USBOTG_CLK,
107 MX31_PIN_USBOTG_DIR__USBOTG_DIR,
108 MX31_PIN_USBOTG_NXT__USBOTG_NXT,
109 MX31_PIN_USBOTG_STP__USBOTG_STP,
Alberto Panizzo54c1f632010-05-19 11:34:43 +0200110 /*Keyboard*/
111 MX31_PIN_KEY_ROW0_KEY_ROW0,
112 MX31_PIN_KEY_ROW1_KEY_ROW1,
113 MX31_PIN_KEY_ROW2_KEY_ROW2,
114 MX31_PIN_KEY_COL0_KEY_COL0,
115 MX31_PIN_KEY_COL1_KEY_COL1,
116 MX31_PIN_KEY_COL2_KEY_COL2,
117 MX31_PIN_KEY_COL3_KEY_COL3,
118};
119
120/*
121 * Matrix keyboard
122 */
123
124static const uint32_t mx31_3ds_keymap[] = {
125 KEY(0, 0, KEY_UP),
126 KEY(0, 1, KEY_DOWN),
127 KEY(1, 0, KEY_RIGHT),
128 KEY(1, 1, KEY_LEFT),
129 KEY(1, 2, KEY_ENTER),
130 KEY(2, 0, KEY_F6),
131 KEY(2, 1, KEY_F8),
132 KEY(2, 2, KEY_F9),
133 KEY(2, 3, KEY_F10),
134};
135
136static struct matrix_keymap_data mx31_3ds_keymap_data = {
137 .keymap = mx31_3ds_keymap,
138 .keymap_size = ARRAY_SIZE(mx31_3ds_keymap),
Alberto Panizzoae7a3f12010-03-23 19:51:45 +0100139};
140
141/* Regulators */
142static struct regulator_init_data pwgtx_init = {
143 .constraints = {
144 .boot_on = 1,
145 .always_on = 1,
146 },
147};
148
149static struct mc13783_regulator_init_data mx31_3ds_regulators[] = {
150 {
151 .id = MC13783_REGU_PWGT1SPI, /* Power Gate for ARM core. */
152 .init_data = &pwgtx_init,
153 }, {
154 .id = MC13783_REGU_PWGT2SPI, /* Power Gate for L2 Cache. */
155 .init_data = &pwgtx_init,
156 },
157};
158
159/* MC13783 */
160static struct mc13783_platform_data mc13783_pdata __initdata = {
161 .regulators = mx31_3ds_regulators,
162 .num_regulators = ARRAY_SIZE(mx31_3ds_regulators),
163 .flags = MC13783_USE_REGULATOR,
Alberto Panizzoa1ac4422010-03-23 19:50:28 +0100164};
165
166/* SPI */
167static int spi1_internal_chipselect[] = {
168 MXC_SPI_CS(0),
169 MXC_SPI_CS(2),
170};
171
Uwe Kleine-König06606ff2010-06-22 10:09:14 +0200172static const struct spi_imx_master spi1_pdata __initconst = {
Alberto Panizzoa1ac4422010-03-23 19:50:28 +0100173 .chipselect = spi1_internal_chipselect,
174 .num_chipselect = ARRAY_SIZE(spi1_internal_chipselect),
Valentin Longchamp63d976672009-01-28 15:13:53 +0100175};
176
Alberto Panizzoae7a3f12010-03-23 19:51:45 +0100177static struct spi_board_info mx31_3ds_spi_devs[] __initdata = {
178 {
179 .modalias = "mc13783",
180 .max_speed_hz = 1000000,
181 .bus_num = 1,
182 .chip_select = 1, /* SS2 */
183 .platform_data = &mc13783_pdata,
184 .irq = IOMUX_TO_IRQ(MX31_PIN_GPIO1_3),
185 .mode = SPI_CS_HIGH,
186 },
187};
188
Alberto Panizzoa1b67b92010-03-23 19:49:35 +0100189/*
190 * NAND Flash
191 */
Uwe Kleine-Königa2ceeef2010-06-16 12:23:11 +0200192static const struct mxc_nand_platform_data
193mx31_3ds_nand_board_info __initconst = {
Alberto Panizzoa1b67b92010-03-23 19:49:35 +0100194 .width = 1,
195 .hw_ecc = 1,
196#ifdef MACH_MX31_3DS_MXC_NAND_USE_BBT
197 .flash_bbt = 1,
198#endif
199};
200
Magnus Liljaa2ef4562010-05-14 17:08:29 +0200201/*
202 * USB OTG
203 */
204
205#define USB_PAD_CFG (PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST | PAD_CTL_HYS_CMOS | \
206 PAD_CTL_ODE_CMOS | PAD_CTL_100K_PU)
207
208#define USBOTG_RST_B IOMUX_TO_GPIO(MX31_PIN_USB_PWR)
209
210static void mx31_3ds_usbotg_init(void)
211{
212 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA0, USB_PAD_CFG);
213 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA1, USB_PAD_CFG);
214 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA2, USB_PAD_CFG);
215 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA3, USB_PAD_CFG);
216 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA4, USB_PAD_CFG);
217 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA5, USB_PAD_CFG);
218 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA6, USB_PAD_CFG);
219 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA7, USB_PAD_CFG);
220 mxc_iomux_set_pad(MX31_PIN_USBOTG_CLK, USB_PAD_CFG);
221 mxc_iomux_set_pad(MX31_PIN_USBOTG_DIR, USB_PAD_CFG);
222 mxc_iomux_set_pad(MX31_PIN_USBOTG_NXT, USB_PAD_CFG);
223 mxc_iomux_set_pad(MX31_PIN_USBOTG_STP, USB_PAD_CFG);
224
225 gpio_request(USBOTG_RST_B, "otgusb-reset");
226 gpio_direction_output(USBOTG_RST_B, 0);
227 mdelay(1);
228 gpio_set_value(USBOTG_RST_B, 1);
229}
230
231static struct fsl_usb2_platform_data usbotg_pdata = {
232 .operating_mode = FSL_USB2_DR_DEVICE,
233 .phy_mode = FSL_USB2_PHY_ULPI,
234};
235
Magnus Lilja153fa1d2009-05-16 12:43:10 +0200236static struct imxuart_platform_data uart_pdata = {
237 .flags = IMXUART_HAVE_RTSCTS,
238};
Fabio Estevam1553a1e2008-11-12 15:38:39 +0100239
Magnus Lilja135cad32009-05-17 20:18:08 +0200240/*
Magnus Lilja2b0c3672009-05-18 18:46:33 +0200241 * Support for the SMSC9217 on the Debug board.
242 */
243
244static struct smsc911x_platform_config smsc911x_config = {
245 .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
246 .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL,
247 .flags = SMSC911X_USE_16BIT | SMSC911X_FORCE_INTERNAL_PHY,
248 .phy_interface = PHY_INTERFACE_MODE_MII,
249};
250
251static struct resource smsc911x_resources[] = {
252 {
253 .start = LAN9217_BASE_ADDR,
254 .end = LAN9217_BASE_ADDR + 0xff,
255 .flags = IORESOURCE_MEM,
256 }, {
257 .start = EXPIO_INT_ENET,
258 .end = EXPIO_INT_ENET,
259 .flags = IORESOURCE_IRQ,
260 },
261};
262
263static struct platform_device smsc911x_device = {
264 .name = "smsc911x",
265 .id = -1,
266 .num_resources = ARRAY_SIZE(smsc911x_resources),
267 .resource = smsc911x_resources,
268 .dev = {
269 .platform_data = &smsc911x_config,
270 },
271};
272
273/*
Magnus Lilja135cad32009-05-17 20:18:08 +0200274 * Routines for the CPLD on the debug board. It contains a CPLD handling
275 * LEDs, switches, interrupts for Ethernet.
276 */
277
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100278static void mx31_3ds_expio_irq_handler(uint32_t irq, struct irq_desc *desc)
Magnus Lilja135cad32009-05-17 20:18:08 +0200279{
280 uint32_t imr_val;
281 uint32_t int_valid;
282 uint32_t expio_irq;
283
284 imr_val = __raw_readw(CPLD_INT_MASK_REG);
285 int_valid = __raw_readw(CPLD_INT_STATUS_REG) & ~imr_val;
286
287 expio_irq = MXC_EXP_IO_BASE;
288 for (; int_valid != 0; int_valid >>= 1, expio_irq++) {
289 if ((int_valid & 1) == 0)
290 continue;
291 generic_handle_irq(expio_irq);
292 }
293}
294
295/*
296 * Disable an expio pin's interrupt by setting the bit in the imr.
297 * @param irq an expio virtual irq number
298 */
299static void expio_mask_irq(uint32_t irq)
300{
301 uint16_t reg;
302 uint32_t expio = MXC_IRQ_TO_EXPIO(irq);
303
304 /* mask the interrupt */
305 reg = __raw_readw(CPLD_INT_MASK_REG);
306 reg |= 1 << expio;
307 __raw_writew(reg, CPLD_INT_MASK_REG);
308}
309
310/*
311 * Acknowledge an expanded io pin's interrupt by clearing the bit in the isr.
312 * @param irq an expanded io virtual irq number
313 */
314static void expio_ack_irq(uint32_t irq)
315{
316 uint32_t expio = MXC_IRQ_TO_EXPIO(irq);
317
318 /* clear the interrupt status */
319 __raw_writew(1 << expio, CPLD_INT_RESET_REG);
320 __raw_writew(0, CPLD_INT_RESET_REG);
321 /* mask the interrupt */
322 expio_mask_irq(irq);
323}
324
325/*
326 * Enable a expio pin's interrupt by clearing the bit in the imr.
327 * @param irq a expio virtual irq number
328 */
329static void expio_unmask_irq(uint32_t irq)
330{
331 uint16_t reg;
332 uint32_t expio = MXC_IRQ_TO_EXPIO(irq);
333
334 /* unmask the interrupt */
335 reg = __raw_readw(CPLD_INT_MASK_REG);
336 reg &= ~(1 << expio);
337 __raw_writew(reg, CPLD_INT_MASK_REG);
338}
339
340static struct irq_chip expio_irq_chip = {
341 .ack = expio_ack_irq,
342 .mask = expio_mask_irq,
343 .unmask = expio_unmask_irq,
344};
345
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100346static int __init mx31_3ds_init_expio(void)
Magnus Lilja135cad32009-05-17 20:18:08 +0200347{
348 int i;
349 int ret;
350
351 /* Check if there's a debug board connected */
352 if ((__raw_readw(CPLD_MAGIC_NUMBER1_REG) != 0xAAAA) ||
353 (__raw_readw(CPLD_MAGIC_NUMBER2_REG) != 0x5555) ||
354 (__raw_readw(CPLD_MAGIC_NUMBER3_REG) != 0xCAFE)) {
355 /* No Debug board found */
356 return -ENODEV;
357 }
358
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100359 pr_info("i.MX31 3DS Debug board detected, rev = 0x%04X\n",
Magnus Lilja135cad32009-05-17 20:18:08 +0200360 __raw_readw(CPLD_CODE_VER_REG));
361
362 /*
363 * Configure INT line as GPIO input
364 */
365 ret = gpio_request(IOMUX_TO_GPIO(MX31_PIN_GPIO1_1), "sms9217-irq");
366 if (ret)
367 pr_warning("could not get LAN irq gpio\n");
368 else
369 gpio_direction_input(IOMUX_TO_GPIO(MX31_PIN_GPIO1_1));
370
371 /* Disable the interrupts and clear the status */
372 __raw_writew(0, CPLD_INT_MASK_REG);
373 __raw_writew(0xFFFF, CPLD_INT_RESET_REG);
374 __raw_writew(0, CPLD_INT_RESET_REG);
375 __raw_writew(0x1F, CPLD_INT_MASK_REG);
376 for (i = MXC_EXP_IO_BASE;
377 i < (MXC_EXP_IO_BASE + MXC_MAX_EXP_IO_LINES);
378 i++) {
379 set_irq_chip(i, &expio_irq_chip);
380 set_irq_handler(i, handle_level_irq);
381 set_irq_flags(i, IRQF_VALID);
382 }
383 set_irq_type(EXPIO_PARENT_INT, IRQ_TYPE_LEVEL_LOW);
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100384 set_irq_chained_handler(EXPIO_PARENT_INT, mx31_3ds_expio_irq_handler);
Magnus Lilja135cad32009-05-17 20:18:08 +0200385
386 return 0;
387}
388
389/*
390 * This structure defines the MX31 memory map.
391 */
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100392static struct map_desc mx31_3ds_io_desc[] __initdata = {
Magnus Lilja135cad32009-05-17 20:18:08 +0200393 {
Uwe Kleine-Königf568dd72009-12-09 11:57:21 +0100394 .virtual = MX31_CS5_BASE_ADDR_VIRT,
395 .pfn = __phys_to_pfn(MX31_CS5_BASE_ADDR),
396 .length = MX31_CS5_SIZE,
Magnus Lilja135cad32009-05-17 20:18:08 +0200397 .type = MT_DEVICE,
398 },
399};
400
401/*
402 * Set up static virtual mappings.
403 */
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100404static void __init mx31_3ds_map_io(void)
Magnus Lilja135cad32009-05-17 20:18:08 +0200405{
406 mx31_map_io();
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100407 iotable_init(mx31_3ds_io_desc, ARRAY_SIZE(mx31_3ds_io_desc));
Magnus Lilja135cad32009-05-17 20:18:08 +0200408}
409
Fabio Estevam1553a1e2008-11-12 15:38:39 +0100410/*!
Fabio Estevam1553a1e2008-11-12 15:38:39 +0100411 * Board specific initialization.
412 */
413static void __init mxc_board_init(void)
414{
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100415 mxc_iomux_setup_multiple_pins(mx31_3ds_pins, ARRAY_SIZE(mx31_3ds_pins),
416 "mx31_3ds");
Magnus Lilja153fa1d2009-05-16 12:43:10 +0200417
418 mxc_register_device(&mxc_uart_device0, &uart_pdata);
Uwe Kleine-Königa2ceeef2010-06-16 12:23:11 +0200419 imx31_add_mxc_nand(&mx31_3ds_nand_board_info);
Alberto Panizzoae7a3f12010-03-23 19:51:45 +0100420
Uwe Kleine-König06606ff2010-06-22 10:09:14 +0200421 imx31_add_spi_imx0(&spi1_pdata);
Alberto Panizzoae7a3f12010-03-23 19:51:45 +0100422 spi_register_board_info(mx31_3ds_spi_devs,
423 ARRAY_SIZE(mx31_3ds_spi_devs));
Magnus Lilja135cad32009-05-17 20:18:08 +0200424
Alberto Panizzo54c1f632010-05-19 11:34:43 +0200425 mxc_register_device(&imx_kpp_device, &mx31_3ds_keymap_data);
426
Magnus Liljaa2ef4562010-05-14 17:08:29 +0200427 mx31_3ds_usbotg_init();
428 mxc_register_device(&mxc_otg_udc_device, &usbotg_pdata);
429
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100430 if (!mx31_3ds_init_expio())
Magnus Lilja2b0c3672009-05-18 18:46:33 +0200431 platform_device_register(&smsc911x_device);
Fabio Estevam1553a1e2008-11-12 15:38:39 +0100432}
433
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100434static void __init mx31_3ds_timer_init(void)
Fabio Estevam1553a1e2008-11-12 15:38:39 +0100435{
Sascha Hauer30c730f2009-02-16 14:36:49 +0100436 mx31_clocks_init(26000000);
Fabio Estevam1553a1e2008-11-12 15:38:39 +0100437}
438
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100439static struct sys_timer mx31_3ds_timer = {
440 .init = mx31_3ds_timer_init,
Fabio Estevam1553a1e2008-11-12 15:38:39 +0100441};
442
443/*
444 * The following uses standard kernel macros defined in arch.h in order to
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100445 * initialize __mach_desc_MX31_3DS data structure.
Fabio Estevam1553a1e2008-11-12 15:38:39 +0100446 */
447MACHINE_START(MX31_3DS, "Freescale MX31PDK (3DS)")
448 /* Maintainer: Freescale Semiconductor, Inc. */
Uwe Kleine-Königf568dd72009-12-09 11:57:21 +0100449 .phys_io = MX31_AIPS1_BASE_ADDR,
Uwe Kleine-König321ed162009-12-10 10:41:26 +0100450 .io_pg_offst = (MX31_AIPS1_BASE_ADDR_VIRT >> 18) & 0xfffc,
Uwe Kleine-König34101232010-01-29 17:36:05 +0100451 .boot_params = MX3x_PHYS_OFFSET + 0x100,
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100452 .map_io = mx31_3ds_map_io,
Sascha Hauerc5aa0ad2009-05-25 17:36:19 +0200453 .init_irq = mx31_init_irq,
Fabio Estevam1553a1e2008-11-12 15:38:39 +0100454 .init_machine = mxc_board_init,
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100455 .timer = &mx31_3ds_timer,
Fabio Estevam1553a1e2008-11-12 15:38:39 +0100456MACHINE_END