blob: f3ab51bcad49529c19eb6cceca6af87610c52267 [file] [log] [blame]
Valentin Longchamp988d2d42008-11-23 17:35:08 +01001/*
2 * Copyright (C) 2008 Valentin Longchamp, EPFL Mobots group
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.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */
18
Valentin Longchampb23f1532009-08-10 18:33:11 +020019#include <linux/delay.h>
Valentin Longchamp88b05642009-08-10 18:33:12 +020020#include <linux/fsl_devices.h>
Valentin Longchamp45b131a2009-04-21 10:24:56 +020021#include <linux/gpio.h>
Valentin Longchamp988d2d42008-11-23 17:35:08 +010022#include <linux/init.h>
Valentin Longchamp45b131a2009-04-21 10:24:56 +020023#include <linux/interrupt.h>
Valentin Longchamp77aa5612009-08-12 11:29:19 +020024#include <linux/leds.h>
Valentin Longchamp220bbce2009-04-17 15:20:25 +020025#include <linux/memory.h>
Valentin Longchamp988d2d42008-11-23 17:35:08 +010026#include <linux/mtd/physmap.h>
27#include <linux/mtd/partitions.h>
Valentin Longchamp220bbce2009-04-17 15:20:25 +020028#include <linux/platform_device.h>
Valentin Longchamp65da9792009-11-03 18:09:49 +010029#include <linux/regulator/machine.h>
30#include <linux/mfd/mc13783.h>
31#include <linux/spi/spi.h>
Valentin Longchamp220bbce2009-04-17 15:20:25 +020032#include <linux/types.h>
Valentin Longchamp988d2d42008-11-23 17:35:08 +010033
Valentin Longchamp988d2d42008-11-23 17:35:08 +010034#include <asm/mach-types.h>
35#include <asm/mach/arch.h>
36#include <asm/mach/time.h>
37#include <asm/mach/map.h>
Valentin Longchamp220bbce2009-04-17 15:20:25 +020038#include <mach/board-mx31moboard.h>
Valentin Longchamp988d2d42008-11-23 17:35:08 +010039#include <mach/common.h>
Valentin Longchamp220bbce2009-04-17 15:20:25 +020040#include <mach/hardware.h>
Valentin Longchamp988d2d42008-11-23 17:35:08 +010041#include <mach/imx-uart.h>
42#include <mach/iomux-mx3.h>
Valentin Longchamp4ec6ecc2009-04-21 10:24:22 +020043#include <mach/i2c.h>
Valentin Longchamp45b131a2009-04-21 10:24:56 +020044#include <mach/mmc.h>
Valentin Longchamp65da9792009-11-03 18:09:49 +010045#include <mach/mx3_camera.h>
46#include <mach/spi.h>
Valentin Longchamp988d2d42008-11-23 17:35:08 +010047
48#include "devices.h"
49
Valentin Longchamp220bbce2009-04-17 15:20:25 +020050static unsigned int moboard_pins[] = {
51 /* UART0 */
Valentin Longchamp220bbce2009-04-17 15:20:25 +020052 MX31_PIN_TXD1__TXD1, MX31_PIN_RXD1__RXD1,
Valentin Longchamp421bf822009-11-03 18:09:47 +010053 MX31_PIN_CTS1__GPIO2_7,
Valentin Longchamp220bbce2009-04-17 15:20:25 +020054 /* UART4 */
55 MX31_PIN_PC_RST__CTS5, MX31_PIN_PC_VS2__RTS5,
56 MX31_PIN_PC_BVD2__TXD5, MX31_PIN_PC_BVD1__RXD5,
Valentin Longchamp56c7a452009-04-22 10:55:50 +020057 /* I2C0 */
58 MX31_PIN_I2C_DAT__I2C1_SDA, MX31_PIN_I2C_CLK__I2C1_SCL,
59 /* I2C1 */
60 MX31_PIN_DCD_DTE1__I2C2_SDA, MX31_PIN_RI_DTE1__I2C2_SCL,
61 /* SDHC1 */
62 MX31_PIN_SD1_DATA3__SD1_DATA3, MX31_PIN_SD1_DATA2__SD1_DATA2,
63 MX31_PIN_SD1_DATA1__SD1_DATA1, MX31_PIN_SD1_DATA0__SD1_DATA0,
64 MX31_PIN_SD1_CLK__SD1_CLK, MX31_PIN_SD1_CMD__SD1_CMD,
65 MX31_PIN_ATA_CS0__GPIO3_26, MX31_PIN_ATA_CS1__GPIO3_27,
Valentin Longchampb23f1532009-08-10 18:33:11 +020066 /* USB reset */
67 MX31_PIN_GPIO1_0__GPIO1_0,
Valentin Longchamp88b05642009-08-10 18:33:12 +020068 /* USB OTG */
69 MX31_PIN_USBOTG_DATA0__USBOTG_DATA0,
70 MX31_PIN_USBOTG_DATA1__USBOTG_DATA1,
71 MX31_PIN_USBOTG_DATA2__USBOTG_DATA2,
72 MX31_PIN_USBOTG_DATA3__USBOTG_DATA3,
73 MX31_PIN_USBOTG_DATA4__USBOTG_DATA4,
74 MX31_PIN_USBOTG_DATA5__USBOTG_DATA5,
75 MX31_PIN_USBOTG_DATA6__USBOTG_DATA6,
76 MX31_PIN_USBOTG_DATA7__USBOTG_DATA7,
77 MX31_PIN_USBOTG_CLK__USBOTG_CLK, MX31_PIN_USBOTG_DIR__USBOTG_DIR,
78 MX31_PIN_USBOTG_NXT__USBOTG_NXT, MX31_PIN_USBOTG_STP__USBOTG_STP,
79 MX31_PIN_USB_OC__GPIO1_30,
Valentin Longchamp77aa5612009-08-12 11:29:19 +020080 /* LEDs */
81 MX31_PIN_SVEN0__GPIO2_0, MX31_PIN_STX0__GPIO2_1,
82 MX31_PIN_SRX0__GPIO2_2, MX31_PIN_SIMPD0__GPIO2_3,
Valentin Longchamp8b1a5402009-08-12 11:29:20 +020083 /* SEL */
84 MX31_PIN_DTR_DCE1__GPIO2_8, MX31_PIN_DSR_DCE1__GPIO2_9,
85 MX31_PIN_RI_DCE1__GPIO2_10, MX31_PIN_DCD_DCE1__GPIO2_11,
Valentin Longchamp65da9792009-11-03 18:09:49 +010086 /* SPI1 */
87 MX31_PIN_CSPI2_MOSI__MOSI, MX31_PIN_CSPI2_MISO__MISO,
88 MX31_PIN_CSPI2_SCLK__SCLK, MX31_PIN_CSPI2_SPI_RDY__SPI_RDY,
89 MX31_PIN_CSPI2_SS0__SS0, MX31_PIN_CSPI2_SS2__SS2,
90 /* Atlas IRQ */
91 MX31_PIN_GPIO1_3__GPIO1_3,
92 /* SPI2 */
93 MX31_PIN_CSPI3_MOSI__MOSI, MX31_PIN_CSPI3_MISO__MISO,
94 MX31_PIN_CSPI3_SCLK__SCLK, MX31_PIN_CSPI3_SPI_RDY__SPI_RDY,
95 MX31_PIN_CSPI2_SS1__CSPI3_SS1,
Valentin Longchamp220bbce2009-04-17 15:20:25 +020096};
97
Valentin Longchamp988d2d42008-11-23 17:35:08 +010098static struct physmap_flash_data mx31moboard_flash_data = {
99 .width = 2,
100};
101
102static struct resource mx31moboard_flash_resource = {
103 .start = 0xa0000000,
104 .end = 0xa1ffffff,
105 .flags = IORESOURCE_MEM,
106};
107
108static struct platform_device mx31moboard_flash = {
109 .name = "physmap-flash",
110 .id = 0,
111 .dev = {
112 .platform_data = &mx31moboard_flash_data,
113 },
114 .resource = &mx31moboard_flash_resource,
115 .num_resources = 1,
116};
117
Valentin Longchamp421bf822009-11-03 18:09:47 +0100118static int moboard_uart0_init(struct platform_device *pdev)
119{
120 gpio_request(IOMUX_TO_GPIO(MX31_PIN_CTS1), "uart0-cts-hack");
121 gpio_direction_output(IOMUX_TO_GPIO(MX31_PIN_CTS1), 0);
122 return 0;
123}
124
125static struct imxuart_platform_data uart0_pdata = {
126 .init = moboard_uart0_init,
127};
128
129static struct imxuart_platform_data uart4_pdata = {
Valentin Longchamp988d2d42008-11-23 17:35:08 +0100130 .flags = IMXUART_HAVE_RTSCTS,
131};
132
Valentin Longchamp4ec6ecc2009-04-21 10:24:22 +0200133static struct imxi2c_platform_data moboard_i2c0_pdata = {
134 .bitrate = 400000,
135};
136
137static struct imxi2c_platform_data moboard_i2c1_pdata = {
138 .bitrate = 100000,
139};
140
Valentin Longchamp65da9792009-11-03 18:09:49 +0100141static int moboard_spi1_cs[] = {
142 MXC_SPI_CS(0),
143 MXC_SPI_CS(2),
144};
145
146static struct spi_imx_master moboard_spi1_master = {
147 .chipselect = moboard_spi1_cs,
148 .num_chipselect = ARRAY_SIZE(moboard_spi1_cs),
149};
150
151static struct regulator_consumer_supply sdhc_consumers[] = {
152 {
153 .dev = &mxcsdhc_device0.dev,
154 .supply = "sdhc0_vcc",
155 },
156 {
157 .dev = &mxcsdhc_device1.dev,
158 .supply = "sdhc1_vcc",
159 },
160};
161
162static struct regulator_init_data sdhc_vreg_data = {
163 .constraints = {
164 .min_uV = 2700000,
165 .max_uV = 3000000,
166 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
167 REGULATOR_CHANGE_MODE | REGULATOR_CHANGE_STATUS,
168 .valid_modes_mask = REGULATOR_MODE_NORMAL |
169 REGULATOR_MODE_FAST,
170 .always_on = 0,
171 .boot_on = 1,
172 },
173 .num_consumer_supplies = ARRAY_SIZE(sdhc_consumers),
174 .consumer_supplies = sdhc_consumers,
175};
176
177static struct regulator_consumer_supply cam_consumers[] = {
178 {
179 .dev = &mx3_camera.dev,
180 .supply = "cam_vcc",
181 },
182};
183
184static struct regulator_init_data cam_vreg_data = {
185 .constraints = {
186 .min_uV = 2700000,
187 .max_uV = 3000000,
188 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
189 REGULATOR_CHANGE_MODE | REGULATOR_CHANGE_STATUS,
190 .valid_modes_mask = REGULATOR_MODE_NORMAL |
191 REGULATOR_MODE_FAST,
192 .always_on = 0,
193 .boot_on = 1,
194 },
195 .num_consumer_supplies = ARRAY_SIZE(cam_consumers),
196 .consumer_supplies = cam_consumers,
197};
198
199static struct mc13783_regulator_init_data moboard_regulators[] = {
200 {
201 .id = MC13783_REGU_VMMC1,
202 .init_data = &sdhc_vreg_data,
203 },
204 {
205 .id = MC13783_REGU_VCAM,
206 .init_data = &cam_vreg_data,
207 },
208};
209
210static struct mc13783_platform_data moboard_pmic = {
211 .regulators = moboard_regulators,
212 .num_regulators = ARRAY_SIZE(moboard_regulators),
213 .flags = MC13783_USE_REGULATOR | MC13783_USE_RTC,
214};
215
216static struct spi_board_info moboard_spi_board_info[] __initdata = {
217 {
218 .modalias = "mc13783",
219 .irq = IOMUX_TO_IRQ(MX31_PIN_GPIO1_3),
220 .max_speed_hz = 300000,
221 .bus_num = 1,
222 .chip_select = 0,
223 .platform_data = &moboard_pmic,
224 .mode = SPI_CS_HIGH,
225 },
226 {
227 .modalias = "spidev",
228 .max_speed_hz = 300000,
229 .bus_num = 1,
230 .chip_select = 1, /* according spi1_cs[] ! */
231 },
232};
233
234static int moboard_spi2_cs[] = {
235 MXC_SPI_CS(1),
236};
237
238static struct spi_imx_master moboard_spi2_master = {
239 .chipselect = moboard_spi2_cs,
240 .num_chipselect = ARRAY_SIZE(moboard_spi2_cs),
241};
242
Valentin Longchamp45b131a2009-04-21 10:24:56 +0200243#define SDHC1_CD IOMUX_TO_GPIO(MX31_PIN_ATA_CS0)
244#define SDHC1_WP IOMUX_TO_GPIO(MX31_PIN_ATA_CS1)
245
246static int moboard_sdhc1_get_ro(struct device *dev)
247{
Valentin Longchamp563abb42009-08-11 17:29:21 +0200248 return !gpio_get_value(SDHC1_WP);
Valentin Longchamp45b131a2009-04-21 10:24:56 +0200249}
250
251static int moboard_sdhc1_init(struct device *dev, irq_handler_t detect_irq,
252 void *data)
253{
Sascha Hauer4f163eb2009-05-06 12:55:50 +0200254 int ret;
255
256 ret = gpio_request(SDHC1_CD, "sdhc-detect");
257 if (ret)
258 return ret;
259
260 gpio_direction_input(SDHC1_CD);
261
262 ret = gpio_request(SDHC1_WP, "sdhc-wp");
263 if (ret)
264 goto err_gpio_free;
265 gpio_direction_input(SDHC1_WP);
266
267 ret = request_irq(gpio_to_irq(SDHC1_CD), detect_irq,
Valentin Longchamp45b131a2009-04-21 10:24:56 +0200268 IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING,
269 "sdhc1-card-detect", data);
Sascha Hauer4f163eb2009-05-06 12:55:50 +0200270 if (ret)
271 goto err_gpio_free_2;
272
273 return 0;
274
275err_gpio_free_2:
276 gpio_free(SDHC1_WP);
277err_gpio_free:
278 gpio_free(SDHC1_CD);
279
280 return ret;
Valentin Longchamp45b131a2009-04-21 10:24:56 +0200281}
282
283static void moboard_sdhc1_exit(struct device *dev, void *data)
284{
285 free_irq(gpio_to_irq(SDHC1_CD), data);
Sascha Hauer4f163eb2009-05-06 12:55:50 +0200286 gpio_free(SDHC1_WP);
287 gpio_free(SDHC1_CD);
Valentin Longchamp45b131a2009-04-21 10:24:56 +0200288}
289
290static struct imxmmc_platform_data sdhc1_pdata = {
291 .get_ro = moboard_sdhc1_get_ro,
292 .init = moboard_sdhc1_init,
293 .exit = moboard_sdhc1_exit,
294};
295
Valentin Longchampb23f1532009-08-10 18:33:11 +0200296/*
297 * this pin is dedicated for all mx31moboard systems, so we do it here
298 */
299#define USB_RESET_B IOMUX_TO_GPIO(MX31_PIN_GPIO1_0)
300
301static void usb_xcvr_reset(void)
302{
303 gpio_request(USB_RESET_B, "usb-reset");
304 gpio_direction_output(USB_RESET_B, 0);
305 mdelay(1);
306 gpio_set_value(USB_RESET_B, 1);
307}
308
Valentin Longchamp88b05642009-08-10 18:33:12 +0200309#define USB_PAD_CFG (PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST | PAD_CTL_HYS_CMOS | \
310 PAD_CTL_ODE_CMOS | PAD_CTL_100K_PU)
311
312#define OTG_EN_B IOMUX_TO_GPIO(MX31_PIN_USB_OC)
313
314static void moboard_usbotg_init(void)
315{
316 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA0, USB_PAD_CFG);
317 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA1, USB_PAD_CFG);
318 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA2, USB_PAD_CFG);
319 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA3, USB_PAD_CFG);
320 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA4, USB_PAD_CFG);
321 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA5, USB_PAD_CFG);
322 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA6, USB_PAD_CFG);
323 mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA7, USB_PAD_CFG);
324 mxc_iomux_set_pad(MX31_PIN_USBOTG_CLK, USB_PAD_CFG);
325 mxc_iomux_set_pad(MX31_PIN_USBOTG_DIR, USB_PAD_CFG);
326 mxc_iomux_set_pad(MX31_PIN_USBOTG_NXT, USB_PAD_CFG);
327 mxc_iomux_set_pad(MX31_PIN_USBOTG_STP, USB_PAD_CFG);
328
329 gpio_request(OTG_EN_B, "usb-udc-en");
330 gpio_direction_output(OTG_EN_B, 0);
331}
332
333static struct fsl_usb2_platform_data usb_pdata = {
334 .operating_mode = FSL_USB2_DR_DEVICE,
335 .phy_mode = FSL_USB2_PHY_ULPI,
336};
337
Valentin Longchamp77aa5612009-08-12 11:29:19 +0200338static struct gpio_led mx31moboard_leds[] = {
339 {
340 .name = "coreboard-led-0:red:running",
341 .default_trigger = "heartbeat",
342 .gpio = IOMUX_TO_GPIO(MX31_PIN_SVEN0),
343 }, {
344 .name = "coreboard-led-1:red",
345 .gpio = IOMUX_TO_GPIO(MX31_PIN_STX0),
346 }, {
347 .name = "coreboard-led-2:red",
348 .gpio = IOMUX_TO_GPIO(MX31_PIN_SRX0),
349 }, {
350 .name = "coreboard-led-3:red",
351 .gpio = IOMUX_TO_GPIO(MX31_PIN_SIMPD0),
352 },
353};
354
355static struct gpio_led_platform_data mx31moboard_led_pdata = {
356 .num_leds = ARRAY_SIZE(mx31moboard_leds),
357 .leds = mx31moboard_leds,
358};
359
360static struct platform_device mx31moboard_leds_device = {
361 .name = "leds-gpio",
362 .id = -1,
363 .dev = {
364 .platform_data = &mx31moboard_led_pdata,
365 },
366};
367
Valentin Longchamp8b1a5402009-08-12 11:29:20 +0200368#define SEL0 IOMUX_TO_GPIO(MX31_PIN_DTR_DCE1)
369#define SEL1 IOMUX_TO_GPIO(MX31_PIN_DSR_DCE1)
370#define SEL2 IOMUX_TO_GPIO(MX31_PIN_RI_DCE1)
371#define SEL3 IOMUX_TO_GPIO(MX31_PIN_DCD_DCE1)
372
373static void mx31moboard_init_sel_gpios(void)
374{
375 if (!gpio_request(SEL0, "sel0")) {
376 gpio_direction_input(SEL0);
377 gpio_export(SEL0, true);
378 }
379
380 if (!gpio_request(SEL1, "sel1")) {
381 gpio_direction_input(SEL1);
382 gpio_export(SEL1, true);
383 }
384
385 if (!gpio_request(SEL2, "sel2")) {
386 gpio_direction_input(SEL2);
387 gpio_export(SEL2, true);
388 }
389
390 if (!gpio_request(SEL3, "sel3")) {
391 gpio_direction_input(SEL3);
392 gpio_export(SEL3, true);
393 }
394}
395
Valentin Longchamp988d2d42008-11-23 17:35:08 +0100396static struct platform_device *devices[] __initdata = {
397 &mx31moboard_flash,
Valentin Longchamp77aa5612009-08-12 11:29:19 +0200398 &mx31moboard_leds_device,
Valentin Longchamp988d2d42008-11-23 17:35:08 +0100399};
400
Valentin Longchampe00f0b42009-02-16 12:47:51 +0100401static int mx31moboard_baseboard;
402core_param(mx31moboard_baseboard, mx31moboard_baseboard, int, 0444);
403
Valentin Longchamp988d2d42008-11-23 17:35:08 +0100404/*
405 * Board specific initialization.
406 */
407static void __init mxc_board_init(void)
408{
Valentin Longchamp220bbce2009-04-17 15:20:25 +0200409 mxc_iomux_setup_multiple_pins(moboard_pins, ARRAY_SIZE(moboard_pins),
410 "moboard");
411
Valentin Longchamp988d2d42008-11-23 17:35:08 +0100412 platform_add_devices(devices, ARRAY_SIZE(devices));
413
Valentin Longchamp421bf822009-11-03 18:09:47 +0100414 mxc_register_device(&mxc_uart_device0, &uart0_pdata);
415
416 mxc_register_device(&mxc_uart_device4, &uart4_pdata);
Valentin Longchampe00f0b42009-02-16 12:47:51 +0100417
Valentin Longchamp8b1a5402009-08-12 11:29:20 +0200418 mx31moboard_init_sel_gpios();
419
Valentin Longchamp4ec6ecc2009-04-21 10:24:22 +0200420 mxc_register_device(&mxc_i2c_device0, &moboard_i2c0_pdata);
421 mxc_register_device(&mxc_i2c_device1, &moboard_i2c1_pdata);
422
Valentin Longchamp65da9792009-11-03 18:09:49 +0100423 mxc_register_device(&mxc_spi_device1, &moboard_spi1_master);
424 mxc_register_device(&mxc_spi_device2, &moboard_spi2_master);
425
426 gpio_request(IOMUX_TO_GPIO(MX31_PIN_GPIO1_3), "pmic-irq");
427 gpio_direction_input(IOMUX_TO_GPIO(MX31_PIN_GPIO1_3));
428 spi_register_board_info(moboard_spi_board_info,
429 ARRAY_SIZE(moboard_spi_board_info));
430
Valentin Longchamp45b131a2009-04-21 10:24:56 +0200431 mxc_register_device(&mxcsdhc_device0, &sdhc1_pdata);
432
Valentin Longchampb23f1532009-08-10 18:33:11 +0200433 usb_xcvr_reset();
434
Valentin Longchamp88b05642009-08-10 18:33:12 +0200435 moboard_usbotg_init();
436 mxc_register_device(&mxc_otg_udc_device, &usb_pdata);
437
Valentin Longchampe00f0b42009-02-16 12:47:51 +0100438 switch (mx31moboard_baseboard) {
439 case MX31NOBOARD:
440 break;
441 case MX31DEVBOARD:
442 mx31moboard_devboard_init();
443 break;
444 case MX31MARXBOT:
445 mx31moboard_marxbot_init();
446 break;
447 default:
Valentin Longchamp220bbce2009-04-17 15:20:25 +0200448 printk(KERN_ERR "Illegal mx31moboard_baseboard type %d\n",
449 mx31moboard_baseboard);
Valentin Longchampe00f0b42009-02-16 12:47:51 +0100450 }
Valentin Longchamp988d2d42008-11-23 17:35:08 +0100451}
452
Valentin Longchamp988d2d42008-11-23 17:35:08 +0100453static void __init mx31moboard_timer_init(void)
454{
Sascha Hauer30c730f2009-02-16 14:36:49 +0100455 mx31_clocks_init(26000000);
Valentin Longchamp988d2d42008-11-23 17:35:08 +0100456}
457
458struct sys_timer mx31moboard_timer = {
459 .init = mx31moboard_timer_init,
460};
461
462MACHINE_START(MX31MOBOARD, "EPFL Mobots mx31moboard")
463 /* Maintainer: Valentin Longchamp, EPFL Mobots group */
464 .phys_io = AIPS1_BASE_ADDR,
465 .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
466 .boot_params = PHYS_OFFSET + 0x100,
Sascha Hauercd4a05f2009-04-02 22:32:10 +0200467 .map_io = mx31_map_io,
Sascha Hauerc5aa0ad2009-05-25 17:36:19 +0200468 .init_irq = mx31_init_irq,
Valentin Longchamp988d2d42008-11-23 17:35:08 +0100469 .init_machine = mxc_board_init,
470 .timer = &mx31moboard_timer,
471MACHINE_END
472