Fabio Estevam | 1553a1e | 2008-11-12 15:38:39 +0100 | [diff] [blame] | 1 | /* |
| 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 Estevam | 1553a1e | 2008-11-12 15:38:39 +0100 | [diff] [blame] | 13 | */ |
| 14 | |
Magnus Lilja | a2ef456 | 2010-05-14 17:08:29 +0200 | [diff] [blame] | 15 | #include <linux/delay.h> |
Fabio Estevam | 1553a1e | 2008-11-12 15:38:39 +0100 | [diff] [blame] | 16 | #include <linux/types.h> |
| 17 | #include <linux/init.h> |
| 18 | #include <linux/clk.h> |
| 19 | #include <linux/irq.h> |
Magnus Lilja | 135cad3 | 2009-05-17 20:18:08 +0200 | [diff] [blame] | 20 | #include <linux/gpio.h> |
Magnus Lilja | 2b0c367 | 2009-05-18 18:46:33 +0200 | [diff] [blame] | 21 | #include <linux/platform_device.h> |
Alberto Panizzo | ae7a3f1 | 2010-03-23 19:51:45 +0100 | [diff] [blame] | 22 | #include <linux/mfd/mc13783.h> |
| 23 | #include <linux/spi/spi.h> |
| 24 | #include <linux/regulator/machine.h> |
Magnus Lilja | a2ef456 | 2010-05-14 17:08:29 +0200 | [diff] [blame] | 25 | #include <linux/fsl_devices.h> |
Alberto Panizzo | 54c1f63 | 2010-05-19 11:34:43 +0200 | [diff] [blame] | 26 | #include <linux/input/matrix_keypad.h> |
Fabio Estevam | 1553a1e | 2008-11-12 15:38:39 +0100 | [diff] [blame] | 27 | |
| 28 | #include <mach/hardware.h> |
| 29 | #include <asm/mach-types.h> |
| 30 | #include <asm/mach/arch.h> |
| 31 | #include <asm/mach/time.h> |
| 32 | #include <asm/memory.h> |
| 33 | #include <asm/mach/map.h> |
| 34 | #include <mach/common.h> |
Fabio Estevam | 1553a1e | 2008-11-12 15:38:39 +0100 | [diff] [blame] | 35 | #include <mach/iomux-mx3.h> |
Jason Wang | c5d38f0 | 2010-06-24 21:11:29 +0800 | [diff] [blame] | 36 | #include <mach/3ds_debugboard.h> |
Uwe Kleine-König | a2ceeef | 2010-06-16 12:23:11 +0200 | [diff] [blame] | 37 | |
| 38 | #include "devices-imx31.h" |
Fabio Estevam | 1553a1e | 2008-11-12 15:38:39 +0100 | [diff] [blame] | 39 | #include "devices.h" |
| 40 | |
Uwe Kleine-König | b396dc4 | 2010-03-08 16:57:19 +0100 | [diff] [blame] | 41 | /* Definitions for components on the Debug board */ |
| 42 | |
| 43 | /* Base address of CPLD controller on the Debug board */ |
| 44 | #define DEBUG_BASE_ADDRESS CS5_IO_ADDRESS(MX3x_CS5_BASE_ADDR) |
| 45 | |
| 46 | /* LAN9217 ethernet base address */ |
| 47 | #define LAN9217_BASE_ADDR MX3x_CS5_BASE_ADDR |
| 48 | |
| 49 | /* CPLD config and interrupt base address */ |
| 50 | #define CPLD_ADDR (DEBUG_BASE_ADDRESS + 0x20000) |
| 51 | |
| 52 | /* status, interrupt */ |
| 53 | #define CPLD_INT_STATUS_REG (CPLD_ADDR + 0x10) |
| 54 | #define CPLD_INT_MASK_REG (CPLD_ADDR + 0x38) |
| 55 | #define CPLD_INT_RESET_REG (CPLD_ADDR + 0x20) |
| 56 | /* magic word for debug CPLD */ |
| 57 | #define CPLD_MAGIC_NUMBER1_REG (CPLD_ADDR + 0x40) |
| 58 | #define CPLD_MAGIC_NUMBER2_REG (CPLD_ADDR + 0x48) |
| 59 | /* CPLD code version */ |
| 60 | #define CPLD_CODE_VER_REG (CPLD_ADDR + 0x50) |
| 61 | /* magic word for debug CPLD */ |
| 62 | #define CPLD_MAGIC_NUMBER3_REG (CPLD_ADDR + 0x58) |
| 63 | |
| 64 | /* CPLD IRQ line for external uart, external ethernet etc */ |
| 65 | #define EXPIO_PARENT_INT IOMUX_TO_IRQ(MX31_PIN_GPIO1_1) |
| 66 | |
| 67 | #define MXC_EXP_IO_BASE (MXC_BOARD_IRQ_START) |
| 68 | #define MXC_IRQ_TO_EXPIO(irq) ((irq) - MXC_EXP_IO_BASE) |
| 69 | |
| 70 | #define EXPIO_INT_ENET (MXC_EXP_IO_BASE + 0) |
| 71 | |
| 72 | #define MXC_MAX_EXP_IO_LINES 16 |
| 73 | |
| 74 | /* |
| 75 | * This file contains the board-specific initialization routines. |
Fabio Estevam | 1553a1e | 2008-11-12 15:38:39 +0100 | [diff] [blame] | 76 | */ |
| 77 | |
Alberto Panizzo | 11a332adf | 2010-03-23 19:46:57 +0100 | [diff] [blame] | 78 | static int mx31_3ds_pins[] = { |
Magnus Lilja | 153fa1d | 2009-05-16 12:43:10 +0200 | [diff] [blame] | 79 | /* UART1 */ |
Valentin Longchamp | 63d97667 | 2009-01-28 15:13:53 +0100 | [diff] [blame] | 80 | MX31_PIN_CTS1__CTS1, |
| 81 | MX31_PIN_RTS1__RTS1, |
| 82 | MX31_PIN_TXD1__TXD1, |
Magnus Lilja | 135cad3 | 2009-05-17 20:18:08 +0200 | [diff] [blame] | 83 | MX31_PIN_RXD1__RXD1, |
| 84 | IOMUX_MODE(MX31_PIN_GPIO1_1, IOMUX_CONFIG_GPIO), |
Alberto Panizzo | a1ac442 | 2010-03-23 19:50:28 +0100 | [diff] [blame] | 85 | /* SPI 1 */ |
| 86 | MX31_PIN_CSPI2_SCLK__SCLK, |
| 87 | MX31_PIN_CSPI2_MOSI__MOSI, |
| 88 | MX31_PIN_CSPI2_MISO__MISO, |
| 89 | MX31_PIN_CSPI2_SPI_RDY__SPI_RDY, |
| 90 | MX31_PIN_CSPI2_SS0__SS0, |
| 91 | MX31_PIN_CSPI2_SS2__SS2, /*CS for MC13783 */ |
Alberto Panizzo | ae7a3f1 | 2010-03-23 19:51:45 +0100 | [diff] [blame] | 92 | /* MC13783 IRQ */ |
| 93 | IOMUX_MODE(MX31_PIN_GPIO1_3, IOMUX_CONFIG_GPIO), |
Magnus Lilja | a2ef456 | 2010-05-14 17:08:29 +0200 | [diff] [blame] | 94 | /* USB OTG reset */ |
| 95 | IOMUX_MODE(MX31_PIN_USB_PWR, IOMUX_CONFIG_GPIO), |
| 96 | /* USB OTG */ |
| 97 | MX31_PIN_USBOTG_DATA0__USBOTG_DATA0, |
| 98 | MX31_PIN_USBOTG_DATA1__USBOTG_DATA1, |
| 99 | MX31_PIN_USBOTG_DATA2__USBOTG_DATA2, |
| 100 | MX31_PIN_USBOTG_DATA3__USBOTG_DATA3, |
| 101 | MX31_PIN_USBOTG_DATA4__USBOTG_DATA4, |
| 102 | MX31_PIN_USBOTG_DATA5__USBOTG_DATA5, |
| 103 | MX31_PIN_USBOTG_DATA6__USBOTG_DATA6, |
| 104 | MX31_PIN_USBOTG_DATA7__USBOTG_DATA7, |
| 105 | MX31_PIN_USBOTG_CLK__USBOTG_CLK, |
| 106 | MX31_PIN_USBOTG_DIR__USBOTG_DIR, |
| 107 | MX31_PIN_USBOTG_NXT__USBOTG_NXT, |
| 108 | MX31_PIN_USBOTG_STP__USBOTG_STP, |
Alberto Panizzo | 54c1f63 | 2010-05-19 11:34:43 +0200 | [diff] [blame] | 109 | /*Keyboard*/ |
| 110 | MX31_PIN_KEY_ROW0_KEY_ROW0, |
| 111 | MX31_PIN_KEY_ROW1_KEY_ROW1, |
| 112 | MX31_PIN_KEY_ROW2_KEY_ROW2, |
| 113 | MX31_PIN_KEY_COL0_KEY_COL0, |
| 114 | MX31_PIN_KEY_COL1_KEY_COL1, |
| 115 | MX31_PIN_KEY_COL2_KEY_COL2, |
| 116 | MX31_PIN_KEY_COL3_KEY_COL3, |
| 117 | }; |
| 118 | |
| 119 | /* |
| 120 | * Matrix keyboard |
| 121 | */ |
| 122 | |
| 123 | static const uint32_t mx31_3ds_keymap[] = { |
| 124 | KEY(0, 0, KEY_UP), |
| 125 | KEY(0, 1, KEY_DOWN), |
| 126 | KEY(1, 0, KEY_RIGHT), |
| 127 | KEY(1, 1, KEY_LEFT), |
| 128 | KEY(1, 2, KEY_ENTER), |
| 129 | KEY(2, 0, KEY_F6), |
| 130 | KEY(2, 1, KEY_F8), |
| 131 | KEY(2, 2, KEY_F9), |
| 132 | KEY(2, 3, KEY_F10), |
| 133 | }; |
| 134 | |
| 135 | static struct matrix_keymap_data mx31_3ds_keymap_data = { |
| 136 | .keymap = mx31_3ds_keymap, |
| 137 | .keymap_size = ARRAY_SIZE(mx31_3ds_keymap), |
Alberto Panizzo | ae7a3f1 | 2010-03-23 19:51:45 +0100 | [diff] [blame] | 138 | }; |
| 139 | |
| 140 | /* Regulators */ |
| 141 | static struct regulator_init_data pwgtx_init = { |
| 142 | .constraints = { |
| 143 | .boot_on = 1, |
| 144 | .always_on = 1, |
| 145 | }, |
| 146 | }; |
| 147 | |
| 148 | static struct mc13783_regulator_init_data mx31_3ds_regulators[] = { |
| 149 | { |
| 150 | .id = MC13783_REGU_PWGT1SPI, /* Power Gate for ARM core. */ |
| 151 | .init_data = &pwgtx_init, |
| 152 | }, { |
| 153 | .id = MC13783_REGU_PWGT2SPI, /* Power Gate for L2 Cache. */ |
| 154 | .init_data = &pwgtx_init, |
| 155 | }, |
| 156 | }; |
| 157 | |
| 158 | /* MC13783 */ |
| 159 | static struct mc13783_platform_data mc13783_pdata __initdata = { |
| 160 | .regulators = mx31_3ds_regulators, |
| 161 | .num_regulators = ARRAY_SIZE(mx31_3ds_regulators), |
| 162 | .flags = MC13783_USE_REGULATOR, |
Alberto Panizzo | a1ac442 | 2010-03-23 19:50:28 +0100 | [diff] [blame] | 163 | }; |
| 164 | |
| 165 | /* SPI */ |
| 166 | static int spi1_internal_chipselect[] = { |
| 167 | MXC_SPI_CS(0), |
| 168 | MXC_SPI_CS(2), |
| 169 | }; |
| 170 | |
Uwe Kleine-König | 06606ff | 2010-06-22 10:09:14 +0200 | [diff] [blame] | 171 | static const struct spi_imx_master spi1_pdata __initconst = { |
Alberto Panizzo | a1ac442 | 2010-03-23 19:50:28 +0100 | [diff] [blame] | 172 | .chipselect = spi1_internal_chipselect, |
| 173 | .num_chipselect = ARRAY_SIZE(spi1_internal_chipselect), |
Valentin Longchamp | 63d97667 | 2009-01-28 15:13:53 +0100 | [diff] [blame] | 174 | }; |
| 175 | |
Alberto Panizzo | ae7a3f1 | 2010-03-23 19:51:45 +0100 | [diff] [blame] | 176 | static struct spi_board_info mx31_3ds_spi_devs[] __initdata = { |
| 177 | { |
| 178 | .modalias = "mc13783", |
| 179 | .max_speed_hz = 1000000, |
| 180 | .bus_num = 1, |
| 181 | .chip_select = 1, /* SS2 */ |
| 182 | .platform_data = &mc13783_pdata, |
| 183 | .irq = IOMUX_TO_IRQ(MX31_PIN_GPIO1_3), |
| 184 | .mode = SPI_CS_HIGH, |
| 185 | }, |
| 186 | }; |
| 187 | |
Alberto Panizzo | a1b67b9 | 2010-03-23 19:49:35 +0100 | [diff] [blame] | 188 | /* |
| 189 | * NAND Flash |
| 190 | */ |
Uwe Kleine-König | a2ceeef | 2010-06-16 12:23:11 +0200 | [diff] [blame] | 191 | static const struct mxc_nand_platform_data |
| 192 | mx31_3ds_nand_board_info __initconst = { |
Alberto Panizzo | a1b67b9 | 2010-03-23 19:49:35 +0100 | [diff] [blame] | 193 | .width = 1, |
| 194 | .hw_ecc = 1, |
| 195 | #ifdef MACH_MX31_3DS_MXC_NAND_USE_BBT |
| 196 | .flash_bbt = 1, |
| 197 | #endif |
| 198 | }; |
| 199 | |
Magnus Lilja | a2ef456 | 2010-05-14 17:08:29 +0200 | [diff] [blame] | 200 | /* |
| 201 | * USB OTG |
| 202 | */ |
| 203 | |
| 204 | #define USB_PAD_CFG (PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST | PAD_CTL_HYS_CMOS | \ |
| 205 | PAD_CTL_ODE_CMOS | PAD_CTL_100K_PU) |
| 206 | |
| 207 | #define USBOTG_RST_B IOMUX_TO_GPIO(MX31_PIN_USB_PWR) |
| 208 | |
Fabio Estevam | 41f6347 | 2010-06-21 13:33:05 -0700 | [diff] [blame] | 209 | static int mx31_3ds_usbotg_init(void) |
Magnus Lilja | a2ef456 | 2010-05-14 17:08:29 +0200 | [diff] [blame] | 210 | { |
Fabio Estevam | 41f6347 | 2010-06-21 13:33:05 -0700 | [diff] [blame] | 211 | int err; |
| 212 | |
Magnus Lilja | a2ef456 | 2010-05-14 17:08:29 +0200 | [diff] [blame] | 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 | |
Fabio Estevam | 41f6347 | 2010-06-21 13:33:05 -0700 | [diff] [blame] | 226 | err = gpio_request(USBOTG_RST_B, "otgusb-reset"); |
| 227 | if (err) { |
| 228 | pr_err("Failed to request the USB OTG reset gpio\n"); |
| 229 | return err; |
| 230 | } |
| 231 | |
| 232 | err = gpio_direction_output(USBOTG_RST_B, 0); |
| 233 | if (err) { |
| 234 | pr_err("Failed to drive the USB OTG reset gpio\n"); |
| 235 | goto usbotg_free_reset; |
| 236 | } |
| 237 | |
Magnus Lilja | a2ef456 | 2010-05-14 17:08:29 +0200 | [diff] [blame] | 238 | mdelay(1); |
| 239 | gpio_set_value(USBOTG_RST_B, 1); |
Fabio Estevam | 41f6347 | 2010-06-21 13:33:05 -0700 | [diff] [blame] | 240 | return 0; |
| 241 | |
| 242 | usbotg_free_reset: |
| 243 | gpio_free(USBOTG_RST_B); |
| 244 | return err; |
Magnus Lilja | a2ef456 | 2010-05-14 17:08:29 +0200 | [diff] [blame] | 245 | } |
| 246 | |
| 247 | static struct fsl_usb2_platform_data usbotg_pdata = { |
| 248 | .operating_mode = FSL_USB2_DR_DEVICE, |
| 249 | .phy_mode = FSL_USB2_PHY_ULPI, |
| 250 | }; |
| 251 | |
Uwe Kleine-König | 16cf5c4 | 2010-06-23 11:46:16 +0200 | [diff] [blame] | 252 | static const struct imxuart_platform_data uart_pdata __initconst = { |
Magnus Lilja | 153fa1d | 2009-05-16 12:43:10 +0200 | [diff] [blame] | 253 | .flags = IMXUART_HAVE_RTSCTS, |
| 254 | }; |
Fabio Estevam | 1553a1e | 2008-11-12 15:38:39 +0100 | [diff] [blame] | 255 | |
Magnus Lilja | 135cad3 | 2009-05-17 20:18:08 +0200 | [diff] [blame] | 256 | /* |
Magnus Lilja | 135cad3 | 2009-05-17 20:18:08 +0200 | [diff] [blame] | 257 | * Set up static virtual mappings. |
| 258 | */ |
Alberto Panizzo | 11a332adf | 2010-03-23 19:46:57 +0100 | [diff] [blame] | 259 | static void __init mx31_3ds_map_io(void) |
Magnus Lilja | 135cad3 | 2009-05-17 20:18:08 +0200 | [diff] [blame] | 260 | { |
| 261 | mx31_map_io(); |
Magnus Lilja | 135cad3 | 2009-05-17 20:18:08 +0200 | [diff] [blame] | 262 | } |
| 263 | |
Fabio Estevam | 1553a1e | 2008-11-12 15:38:39 +0100 | [diff] [blame] | 264 | /*! |
Fabio Estevam | 1553a1e | 2008-11-12 15:38:39 +0100 | [diff] [blame] | 265 | * Board specific initialization. |
| 266 | */ |
| 267 | static void __init mxc_board_init(void) |
| 268 | { |
Alberto Panizzo | 11a332adf | 2010-03-23 19:46:57 +0100 | [diff] [blame] | 269 | mxc_iomux_setup_multiple_pins(mx31_3ds_pins, ARRAY_SIZE(mx31_3ds_pins), |
| 270 | "mx31_3ds"); |
Magnus Lilja | 153fa1d | 2009-05-16 12:43:10 +0200 | [diff] [blame] | 271 | |
Uwe Kleine-König | 16cf5c4 | 2010-06-23 11:46:16 +0200 | [diff] [blame] | 272 | imx31_add_imx_uart0(&uart_pdata); |
Uwe Kleine-König | a2ceeef | 2010-06-16 12:23:11 +0200 | [diff] [blame] | 273 | imx31_add_mxc_nand(&mx31_3ds_nand_board_info); |
Alberto Panizzo | ae7a3f1 | 2010-03-23 19:51:45 +0100 | [diff] [blame] | 274 | |
Uwe Kleine-König | 06606ff | 2010-06-22 10:09:14 +0200 | [diff] [blame] | 275 | imx31_add_spi_imx0(&spi1_pdata); |
Alberto Panizzo | ae7a3f1 | 2010-03-23 19:51:45 +0100 | [diff] [blame] | 276 | spi_register_board_info(mx31_3ds_spi_devs, |
| 277 | ARRAY_SIZE(mx31_3ds_spi_devs)); |
Magnus Lilja | 135cad3 | 2009-05-17 20:18:08 +0200 | [diff] [blame] | 278 | |
Alberto Panizzo | 54c1f63 | 2010-05-19 11:34:43 +0200 | [diff] [blame] | 279 | mxc_register_device(&imx_kpp_device, &mx31_3ds_keymap_data); |
| 280 | |
Magnus Lilja | a2ef456 | 2010-05-14 17:08:29 +0200 | [diff] [blame] | 281 | mx31_3ds_usbotg_init(); |
| 282 | mxc_register_device(&mxc_otg_udc_device, &usbotg_pdata); |
| 283 | |
Jason Wang | c5d38f0 | 2010-06-24 21:11:29 +0800 | [diff] [blame] | 284 | if (!mxc_expio_init(CS5_BASE_ADDR, EXPIO_PARENT_INT)) |
| 285 | printk(KERN_WARNING "Init of the debugboard failed, all " |
| 286 | "devices on the board are unusable.\n"); |
Fabio Estevam | 1553a1e | 2008-11-12 15:38:39 +0100 | [diff] [blame] | 287 | } |
| 288 | |
Alberto Panizzo | 11a332adf | 2010-03-23 19:46:57 +0100 | [diff] [blame] | 289 | static void __init mx31_3ds_timer_init(void) |
Fabio Estevam | 1553a1e | 2008-11-12 15:38:39 +0100 | [diff] [blame] | 290 | { |
Sascha Hauer | 30c730f | 2009-02-16 14:36:49 +0100 | [diff] [blame] | 291 | mx31_clocks_init(26000000); |
Fabio Estevam | 1553a1e | 2008-11-12 15:38:39 +0100 | [diff] [blame] | 292 | } |
| 293 | |
Alberto Panizzo | 11a332adf | 2010-03-23 19:46:57 +0100 | [diff] [blame] | 294 | static struct sys_timer mx31_3ds_timer = { |
| 295 | .init = mx31_3ds_timer_init, |
Fabio Estevam | 1553a1e | 2008-11-12 15:38:39 +0100 | [diff] [blame] | 296 | }; |
| 297 | |
| 298 | /* |
| 299 | * The following uses standard kernel macros defined in arch.h in order to |
Alberto Panizzo | 11a332adf | 2010-03-23 19:46:57 +0100 | [diff] [blame] | 300 | * initialize __mach_desc_MX31_3DS data structure. |
Fabio Estevam | 1553a1e | 2008-11-12 15:38:39 +0100 | [diff] [blame] | 301 | */ |
| 302 | MACHINE_START(MX31_3DS, "Freescale MX31PDK (3DS)") |
| 303 | /* Maintainer: Freescale Semiconductor, Inc. */ |
Uwe Kleine-König | f568dd7 | 2009-12-09 11:57:21 +0100 | [diff] [blame] | 304 | .phys_io = MX31_AIPS1_BASE_ADDR, |
Uwe Kleine-König | 321ed16 | 2009-12-10 10:41:26 +0100 | [diff] [blame] | 305 | .io_pg_offst = (MX31_AIPS1_BASE_ADDR_VIRT >> 18) & 0xfffc, |
Uwe Kleine-König | 3410123 | 2010-01-29 17:36:05 +0100 | [diff] [blame] | 306 | .boot_params = MX3x_PHYS_OFFSET + 0x100, |
Alberto Panizzo | 11a332adf | 2010-03-23 19:46:57 +0100 | [diff] [blame] | 307 | .map_io = mx31_3ds_map_io, |
Sascha Hauer | c5aa0ad | 2009-05-25 17:36:19 +0200 | [diff] [blame] | 308 | .init_irq = mx31_init_irq, |
Fabio Estevam | 1553a1e | 2008-11-12 15:38:39 +0100 | [diff] [blame] | 309 | .init_machine = mxc_board_init, |
Alberto Panizzo | 11a332adf | 2010-03-23 19:46:57 +0100 | [diff] [blame] | 310 | .timer = &mx31_3ds_timer, |
Fabio Estevam | 1553a1e | 2008-11-12 15:38:39 +0100 | [diff] [blame] | 311 | MACHINE_END |