blob: c730c090208acc8dc1d8b96c15545d9de8d6ff45 [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>
Alberto Panizzoa1ac4422010-03-23 19:50:28 +010038#include <mach/spi.h>
Uwe Kleine-Königa2ceeef2010-06-16 12:23:11 +020039
40#include "devices-imx31.h"
Fabio Estevam1553a1e2008-11-12 15:38:39 +010041#include "devices.h"
42
Uwe Kleine-Königb396dc42010-03-08 16:57:19 +010043/* Definitions for components on the Debug board */
44
45/* Base address of CPLD controller on the Debug board */
46#define DEBUG_BASE_ADDRESS CS5_IO_ADDRESS(MX3x_CS5_BASE_ADDR)
47
48/* LAN9217 ethernet base address */
49#define LAN9217_BASE_ADDR MX3x_CS5_BASE_ADDR
50
51/* CPLD config and interrupt base address */
52#define CPLD_ADDR (DEBUG_BASE_ADDRESS + 0x20000)
53
54/* status, interrupt */
55#define CPLD_INT_STATUS_REG (CPLD_ADDR + 0x10)
56#define CPLD_INT_MASK_REG (CPLD_ADDR + 0x38)
57#define CPLD_INT_RESET_REG (CPLD_ADDR + 0x20)
58/* magic word for debug CPLD */
59#define CPLD_MAGIC_NUMBER1_REG (CPLD_ADDR + 0x40)
60#define CPLD_MAGIC_NUMBER2_REG (CPLD_ADDR + 0x48)
61/* CPLD code version */
62#define CPLD_CODE_VER_REG (CPLD_ADDR + 0x50)
63/* magic word for debug CPLD */
64#define CPLD_MAGIC_NUMBER3_REG (CPLD_ADDR + 0x58)
65
66/* CPLD IRQ line for external uart, external ethernet etc */
67#define EXPIO_PARENT_INT IOMUX_TO_IRQ(MX31_PIN_GPIO1_1)
68
69#define MXC_EXP_IO_BASE (MXC_BOARD_IRQ_START)
70#define MXC_IRQ_TO_EXPIO(irq) ((irq) - MXC_EXP_IO_BASE)
71
72#define EXPIO_INT_ENET (MXC_EXP_IO_BASE + 0)
73
74#define MXC_MAX_EXP_IO_LINES 16
75
76/*
77 * This file contains the board-specific initialization routines.
Fabio Estevam1553a1e2008-11-12 15:38:39 +010078 */
79
Alberto Panizzo11a332a2010-03-23 19:46:57 +010080static int mx31_3ds_pins[] = {
Magnus Lilja153fa1d2009-05-16 12:43:10 +020081 /* UART1 */
Valentin Longchamp63d976672009-01-28 15:13:53 +010082 MX31_PIN_CTS1__CTS1,
83 MX31_PIN_RTS1__RTS1,
84 MX31_PIN_TXD1__TXD1,
Magnus Lilja135cad32009-05-17 20:18:08 +020085 MX31_PIN_RXD1__RXD1,
86 IOMUX_MODE(MX31_PIN_GPIO1_1, IOMUX_CONFIG_GPIO),
Alberto Panizzoa1ac4422010-03-23 19:50:28 +010087 /* SPI 1 */
88 MX31_PIN_CSPI2_SCLK__SCLK,
89 MX31_PIN_CSPI2_MOSI__MOSI,
90 MX31_PIN_CSPI2_MISO__MISO,
91 MX31_PIN_CSPI2_SPI_RDY__SPI_RDY,
92 MX31_PIN_CSPI2_SS0__SS0,
93 MX31_PIN_CSPI2_SS2__SS2, /*CS for MC13783 */
Alberto Panizzoae7a3f12010-03-23 19:51:45 +010094 /* MC13783 IRQ */
95 IOMUX_MODE(MX31_PIN_GPIO1_3, IOMUX_CONFIG_GPIO),
Magnus Liljaa2ef4562010-05-14 17:08:29 +020096 /* USB OTG reset */
97 IOMUX_MODE(MX31_PIN_USB_PWR, IOMUX_CONFIG_GPIO),
98 /* USB OTG */
99 MX31_PIN_USBOTG_DATA0__USBOTG_DATA0,
100 MX31_PIN_USBOTG_DATA1__USBOTG_DATA1,
101 MX31_PIN_USBOTG_DATA2__USBOTG_DATA2,
102 MX31_PIN_USBOTG_DATA3__USBOTG_DATA3,
103 MX31_PIN_USBOTG_DATA4__USBOTG_DATA4,
104 MX31_PIN_USBOTG_DATA5__USBOTG_DATA5,
105 MX31_PIN_USBOTG_DATA6__USBOTG_DATA6,
106 MX31_PIN_USBOTG_DATA7__USBOTG_DATA7,
107 MX31_PIN_USBOTG_CLK__USBOTG_CLK,
108 MX31_PIN_USBOTG_DIR__USBOTG_DIR,
109 MX31_PIN_USBOTG_NXT__USBOTG_NXT,
110 MX31_PIN_USBOTG_STP__USBOTG_STP,
Alberto Panizzo54c1f632010-05-19 11:34:43 +0200111 /*Keyboard*/
112 MX31_PIN_KEY_ROW0_KEY_ROW0,
113 MX31_PIN_KEY_ROW1_KEY_ROW1,
114 MX31_PIN_KEY_ROW2_KEY_ROW2,
115 MX31_PIN_KEY_COL0_KEY_COL0,
116 MX31_PIN_KEY_COL1_KEY_COL1,
117 MX31_PIN_KEY_COL2_KEY_COL2,
118 MX31_PIN_KEY_COL3_KEY_COL3,
119};
120
121/*
122 * Matrix keyboard
123 */
124
125static const uint32_t mx31_3ds_keymap[] = {
126 KEY(0, 0, KEY_UP),
127 KEY(0, 1, KEY_DOWN),
128 KEY(1, 0, KEY_RIGHT),
129 KEY(1, 1, KEY_LEFT),
130 KEY(1, 2, KEY_ENTER),
131 KEY(2, 0, KEY_F6),
132 KEY(2, 1, KEY_F8),
133 KEY(2, 2, KEY_F9),
134 KEY(2, 3, KEY_F10),
135};
136
137static struct matrix_keymap_data mx31_3ds_keymap_data = {
138 .keymap = mx31_3ds_keymap,
139 .keymap_size = ARRAY_SIZE(mx31_3ds_keymap),
Alberto Panizzoae7a3f12010-03-23 19:51:45 +0100140};
141
142/* Regulators */
143static struct regulator_init_data pwgtx_init = {
144 .constraints = {
145 .boot_on = 1,
146 .always_on = 1,
147 },
148};
149
150static struct mc13783_regulator_init_data mx31_3ds_regulators[] = {
151 {
152 .id = MC13783_REGU_PWGT1SPI, /* Power Gate for ARM core. */
153 .init_data = &pwgtx_init,
154 }, {
155 .id = MC13783_REGU_PWGT2SPI, /* Power Gate for L2 Cache. */
156 .init_data = &pwgtx_init,
157 },
158};
159
160/* MC13783 */
161static struct mc13783_platform_data mc13783_pdata __initdata = {
162 .regulators = mx31_3ds_regulators,
163 .num_regulators = ARRAY_SIZE(mx31_3ds_regulators),
164 .flags = MC13783_USE_REGULATOR,
Alberto Panizzoa1ac4422010-03-23 19:50:28 +0100165};
166
167/* SPI */
168static int spi1_internal_chipselect[] = {
169 MXC_SPI_CS(0),
170 MXC_SPI_CS(2),
171};
172
173static struct spi_imx_master spi1_pdata = {
174 .chipselect = spi1_internal_chipselect,
175 .num_chipselect = ARRAY_SIZE(spi1_internal_chipselect),
Valentin Longchamp63d976672009-01-28 15:13:53 +0100176};
177
Alberto Panizzoae7a3f12010-03-23 19:51:45 +0100178static struct spi_board_info mx31_3ds_spi_devs[] __initdata = {
179 {
180 .modalias = "mc13783",
181 .max_speed_hz = 1000000,
182 .bus_num = 1,
183 .chip_select = 1, /* SS2 */
184 .platform_data = &mc13783_pdata,
185 .irq = IOMUX_TO_IRQ(MX31_PIN_GPIO1_3),
186 .mode = SPI_CS_HIGH,
187 },
188};
189
Alberto Panizzoa1b67b92010-03-23 19:49:35 +0100190/*
191 * NAND Flash
192 */
Uwe Kleine-Königa2ceeef2010-06-16 12:23:11 +0200193static const struct mxc_nand_platform_data
194mx31_3ds_nand_board_info __initconst = {
Alberto Panizzoa1b67b92010-03-23 19:49:35 +0100195 .width = 1,
196 .hw_ecc = 1,
197#ifdef MACH_MX31_3DS_MXC_NAND_USE_BBT
198 .flash_bbt = 1,
199#endif
200};
201
Magnus Liljaa2ef4562010-05-14 17:08:29 +0200202/*
203 * USB OTG
204 */
205
206#define USB_PAD_CFG (PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST | PAD_CTL_HYS_CMOS | \
207 PAD_CTL_ODE_CMOS | PAD_CTL_100K_PU)
208
209#define USBOTG_RST_B IOMUX_TO_GPIO(MX31_PIN_USB_PWR)
210
211static void mx31_3ds_usbotg_init(void)
212{
213 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA0, USB_PAD_CFG);
214 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA1, USB_PAD_CFG);
215 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA2, USB_PAD_CFG);
216 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA3, USB_PAD_CFG);
217 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA4, USB_PAD_CFG);
218 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA5, USB_PAD_CFG);
219 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA6, USB_PAD_CFG);
220 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA7, USB_PAD_CFG);
221 mxc_iomux_set_pad(MX31_PIN_USBOTG_CLK, USB_PAD_CFG);
222 mxc_iomux_set_pad(MX31_PIN_USBOTG_DIR, USB_PAD_CFG);
223 mxc_iomux_set_pad(MX31_PIN_USBOTG_NXT, USB_PAD_CFG);
224 mxc_iomux_set_pad(MX31_PIN_USBOTG_STP, USB_PAD_CFG);
225
226 gpio_request(USBOTG_RST_B, "otgusb-reset");
227 gpio_direction_output(USBOTG_RST_B, 0);
228 mdelay(1);
229 gpio_set_value(USBOTG_RST_B, 1);
230}
231
232static struct fsl_usb2_platform_data usbotg_pdata = {
233 .operating_mode = FSL_USB2_DR_DEVICE,
234 .phy_mode = FSL_USB2_PHY_ULPI,
235};
236
Magnus Lilja153fa1d2009-05-16 12:43:10 +0200237static struct imxuart_platform_data uart_pdata = {
238 .flags = IMXUART_HAVE_RTSCTS,
239};
Fabio Estevam1553a1e2008-11-12 15:38:39 +0100240
Magnus Lilja135cad32009-05-17 20:18:08 +0200241/*
Magnus Lilja2b0c3672009-05-18 18:46:33 +0200242 * Support for the SMSC9217 on the Debug board.
243 */
244
245static struct smsc911x_platform_config smsc911x_config = {
246 .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
247 .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL,
248 .flags = SMSC911X_USE_16BIT | SMSC911X_FORCE_INTERNAL_PHY,
249 .phy_interface = PHY_INTERFACE_MODE_MII,
250};
251
252static struct resource smsc911x_resources[] = {
253 {
254 .start = LAN9217_BASE_ADDR,
255 .end = LAN9217_BASE_ADDR + 0xff,
256 .flags = IORESOURCE_MEM,
257 }, {
258 .start = EXPIO_INT_ENET,
259 .end = EXPIO_INT_ENET,
260 .flags = IORESOURCE_IRQ,
261 },
262};
263
264static struct platform_device smsc911x_device = {
265 .name = "smsc911x",
266 .id = -1,
267 .num_resources = ARRAY_SIZE(smsc911x_resources),
268 .resource = smsc911x_resources,
269 .dev = {
270 .platform_data = &smsc911x_config,
271 },
272};
273
274/*
Magnus Lilja135cad32009-05-17 20:18:08 +0200275 * Routines for the CPLD on the debug board. It contains a CPLD handling
276 * LEDs, switches, interrupts for Ethernet.
277 */
278
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100279static void mx31_3ds_expio_irq_handler(uint32_t irq, struct irq_desc *desc)
Magnus Lilja135cad32009-05-17 20:18:08 +0200280{
281 uint32_t imr_val;
282 uint32_t int_valid;
283 uint32_t expio_irq;
284
285 imr_val = __raw_readw(CPLD_INT_MASK_REG);
286 int_valid = __raw_readw(CPLD_INT_STATUS_REG) & ~imr_val;
287
288 expio_irq = MXC_EXP_IO_BASE;
289 for (; int_valid != 0; int_valid >>= 1, expio_irq++) {
290 if ((int_valid & 1) == 0)
291 continue;
292 generic_handle_irq(expio_irq);
293 }
294}
295
296/*
297 * Disable an expio pin's interrupt by setting the bit in the imr.
298 * @param irq an expio virtual irq number
299 */
300static void expio_mask_irq(uint32_t irq)
301{
302 uint16_t reg;
303 uint32_t expio = MXC_IRQ_TO_EXPIO(irq);
304
305 /* mask the interrupt */
306 reg = __raw_readw(CPLD_INT_MASK_REG);
307 reg |= 1 << expio;
308 __raw_writew(reg, CPLD_INT_MASK_REG);
309}
310
311/*
312 * Acknowledge an expanded io pin's interrupt by clearing the bit in the isr.
313 * @param irq an expanded io virtual irq number
314 */
315static void expio_ack_irq(uint32_t irq)
316{
317 uint32_t expio = MXC_IRQ_TO_EXPIO(irq);
318
319 /* clear the interrupt status */
320 __raw_writew(1 << expio, CPLD_INT_RESET_REG);
321 __raw_writew(0, CPLD_INT_RESET_REG);
322 /* mask the interrupt */
323 expio_mask_irq(irq);
324}
325
326/*
327 * Enable a expio pin's interrupt by clearing the bit in the imr.
328 * @param irq a expio virtual irq number
329 */
330static void expio_unmask_irq(uint32_t irq)
331{
332 uint16_t reg;
333 uint32_t expio = MXC_IRQ_TO_EXPIO(irq);
334
335 /* unmask the interrupt */
336 reg = __raw_readw(CPLD_INT_MASK_REG);
337 reg &= ~(1 << expio);
338 __raw_writew(reg, CPLD_INT_MASK_REG);
339}
340
341static struct irq_chip expio_irq_chip = {
342 .ack = expio_ack_irq,
343 .mask = expio_mask_irq,
344 .unmask = expio_unmask_irq,
345};
346
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100347static int __init mx31_3ds_init_expio(void)
Magnus Lilja135cad32009-05-17 20:18:08 +0200348{
349 int i;
350 int ret;
351
352 /* Check if there's a debug board connected */
353 if ((__raw_readw(CPLD_MAGIC_NUMBER1_REG) != 0xAAAA) ||
354 (__raw_readw(CPLD_MAGIC_NUMBER2_REG) != 0x5555) ||
355 (__raw_readw(CPLD_MAGIC_NUMBER3_REG) != 0xCAFE)) {
356 /* No Debug board found */
357 return -ENODEV;
358 }
359
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100360 pr_info("i.MX31 3DS Debug board detected, rev = 0x%04X\n",
Magnus Lilja135cad32009-05-17 20:18:08 +0200361 __raw_readw(CPLD_CODE_VER_REG));
362
363 /*
364 * Configure INT line as GPIO input
365 */
366 ret = gpio_request(IOMUX_TO_GPIO(MX31_PIN_GPIO1_1), "sms9217-irq");
367 if (ret)
368 pr_warning("could not get LAN irq gpio\n");
369 else
370 gpio_direction_input(IOMUX_TO_GPIO(MX31_PIN_GPIO1_1));
371
372 /* Disable the interrupts and clear the status */
373 __raw_writew(0, CPLD_INT_MASK_REG);
374 __raw_writew(0xFFFF, CPLD_INT_RESET_REG);
375 __raw_writew(0, CPLD_INT_RESET_REG);
376 __raw_writew(0x1F, CPLD_INT_MASK_REG);
377 for (i = MXC_EXP_IO_BASE;
378 i < (MXC_EXP_IO_BASE + MXC_MAX_EXP_IO_LINES);
379 i++) {
380 set_irq_chip(i, &expio_irq_chip);
381 set_irq_handler(i, handle_level_irq);
382 set_irq_flags(i, IRQF_VALID);
383 }
384 set_irq_type(EXPIO_PARENT_INT, IRQ_TYPE_LEVEL_LOW);
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100385 set_irq_chained_handler(EXPIO_PARENT_INT, mx31_3ds_expio_irq_handler);
Magnus Lilja135cad32009-05-17 20:18:08 +0200386
387 return 0;
388}
389
390/*
391 * This structure defines the MX31 memory map.
392 */
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100393static struct map_desc mx31_3ds_io_desc[] __initdata = {
Magnus Lilja135cad32009-05-17 20:18:08 +0200394 {
Uwe Kleine-Königf568dd72009-12-09 11:57:21 +0100395 .virtual = MX31_CS5_BASE_ADDR_VIRT,
396 .pfn = __phys_to_pfn(MX31_CS5_BASE_ADDR),
397 .length = MX31_CS5_SIZE,
Magnus Lilja135cad32009-05-17 20:18:08 +0200398 .type = MT_DEVICE,
399 },
400};
401
402/*
403 * Set up static virtual mappings.
404 */
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100405static void __init mx31_3ds_map_io(void)
Magnus Lilja135cad32009-05-17 20:18:08 +0200406{
407 mx31_map_io();
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100408 iotable_init(mx31_3ds_io_desc, ARRAY_SIZE(mx31_3ds_io_desc));
Magnus Lilja135cad32009-05-17 20:18:08 +0200409}
410
Fabio Estevam1553a1e2008-11-12 15:38:39 +0100411/*!
Fabio Estevam1553a1e2008-11-12 15:38:39 +0100412 * Board specific initialization.
413 */
414static void __init mxc_board_init(void)
415{
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100416 mxc_iomux_setup_multiple_pins(mx31_3ds_pins, ARRAY_SIZE(mx31_3ds_pins),
417 "mx31_3ds");
Magnus Lilja153fa1d2009-05-16 12:43:10 +0200418
419 mxc_register_device(&mxc_uart_device0, &uart_pdata);
Uwe Kleine-Königa2ceeef2010-06-16 12:23:11 +0200420 imx31_add_mxc_nand(&mx31_3ds_nand_board_info);
Alberto Panizzoae7a3f12010-03-23 19:51:45 +0100421
Alberto Panizzoa1ac4422010-03-23 19:50:28 +0100422 mxc_register_device(&mxc_spi_device1, &spi1_pdata);
Alberto Panizzoae7a3f12010-03-23 19:51:45 +0100423 spi_register_board_info(mx31_3ds_spi_devs,
424 ARRAY_SIZE(mx31_3ds_spi_devs));
Magnus Lilja135cad32009-05-17 20:18:08 +0200425
Alberto Panizzo54c1f632010-05-19 11:34:43 +0200426 mxc_register_device(&imx_kpp_device, &mx31_3ds_keymap_data);
427
Magnus Liljaa2ef4562010-05-14 17:08:29 +0200428 mx31_3ds_usbotg_init();
429 mxc_register_device(&mxc_otg_udc_device, &usbotg_pdata);
430
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100431 if (!mx31_3ds_init_expio())
Magnus Lilja2b0c3672009-05-18 18:46:33 +0200432 platform_device_register(&smsc911x_device);
Fabio Estevam1553a1e2008-11-12 15:38:39 +0100433}
434
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100435static void __init mx31_3ds_timer_init(void)
Fabio Estevam1553a1e2008-11-12 15:38:39 +0100436{
Sascha Hauer30c730f2009-02-16 14:36:49 +0100437 mx31_clocks_init(26000000);
Fabio Estevam1553a1e2008-11-12 15:38:39 +0100438}
439
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100440static struct sys_timer mx31_3ds_timer = {
441 .init = mx31_3ds_timer_init,
Fabio Estevam1553a1e2008-11-12 15:38:39 +0100442};
443
444/*
445 * The following uses standard kernel macros defined in arch.h in order to
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100446 * initialize __mach_desc_MX31_3DS data structure.
Fabio Estevam1553a1e2008-11-12 15:38:39 +0100447 */
448MACHINE_START(MX31_3DS, "Freescale MX31PDK (3DS)")
449 /* Maintainer: Freescale Semiconductor, Inc. */
Uwe Kleine-Königf568dd72009-12-09 11:57:21 +0100450 .phys_io = MX31_AIPS1_BASE_ADDR,
Uwe Kleine-König321ed162009-12-10 10:41:26 +0100451 .io_pg_offst = (MX31_AIPS1_BASE_ADDR_VIRT >> 18) & 0xfffc,
Uwe Kleine-König34101232010-01-29 17:36:05 +0100452 .boot_params = MX3x_PHYS_OFFSET + 0x100,
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100453 .map_io = mx31_3ds_map_io,
Sascha Hauerc5aa0ad2009-05-25 17:36:19 +0200454 .init_irq = mx31_init_irq,
Fabio Estevam1553a1e2008-11-12 15:38:39 +0100455 .init_machine = mxc_board_init,
Alberto Panizzo11a332a2010-03-23 19:46:57 +0100456 .timer = &mx31_3ds_timer,
Fabio Estevam1553a1e2008-11-12 15:38:39 +0100457MACHINE_END