Uwe Kleine-König | 253ff1f | 2010-06-15 11:31:02 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2009-2010 Pengutronix |
| 3 | * Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de> |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify it under |
| 6 | * the terms of the GNU General Public License version 2 as published by the |
| 7 | * Free Software Foundation. |
| 8 | */ |
| 9 | #include <linux/kernel.h> |
| 10 | #include <linux/platform_device.h> |
| 11 | #include <linux/init.h> |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 12 | #include <linux/platform_data/dma-imx-sdma.h> |
Uwe Kleine-König | 253ff1f | 2010-06-15 11:31:02 +0200 | [diff] [blame] | 13 | |
Shawn Guo | b78d8e5 | 2011-06-06 00:07:55 +0800 | [diff] [blame] | 14 | extern struct device mxc_aips_bus; |
Shawn Guo | 3622360 | 2011-06-22 22:41:30 +0800 | [diff] [blame] | 15 | extern struct device mxc_ahb_bus; |
Shawn Guo | b78d8e5 | 2011-06-06 00:07:55 +0800 | [diff] [blame] | 16 | |
Uwe Kleine-König | 0e39241 | 2011-08-25 11:16:01 +0200 | [diff] [blame] | 17 | static inline struct platform_device *imx_add_platform_device_dmamask( |
Uwe Kleine-König | 6332c10 | 2010-11-02 11:56:54 +0100 | [diff] [blame] | 18 | const char *name, int id, |
Uwe Kleine-König | 253ff1f | 2010-06-15 11:31:02 +0200 | [diff] [blame] | 19 | const struct resource *res, unsigned int num_resources, |
Uwe Kleine-König | 0e39241 | 2011-08-25 11:16:01 +0200 | [diff] [blame] | 20 | const void *data, size_t size_data, u64 dmamask) |
| 21 | { |
| 22 | struct platform_device_info pdevinfo = { |
| 23 | .name = name, |
| 24 | .id = id, |
| 25 | .res = res, |
| 26 | .num_res = num_resources, |
| 27 | .data = data, |
| 28 | .size_data = size_data, |
| 29 | .dma_mask = dmamask, |
| 30 | }; |
| 31 | return platform_device_register_full(&pdevinfo); |
| 32 | } |
Uwe Kleine-König | 6332c10 | 2010-11-02 11:56:54 +0100 | [diff] [blame] | 33 | |
| 34 | static inline struct platform_device *imx_add_platform_device( |
| 35 | const char *name, int id, |
| 36 | const struct resource *res, unsigned int num_resources, |
| 37 | const void *data, size_t size_data) |
| 38 | { |
| 39 | return imx_add_platform_device_dmamask( |
| 40 | name, id, res, num_resources, data, size_data, 0); |
| 41 | } |
Uwe Kleine-König | 66384ee | 2010-06-15 18:14:19 +0200 | [diff] [blame] | 42 | |
Uwe Kleine-König | 6bd96f3 | 2010-10-06 12:00:18 +0200 | [diff] [blame] | 43 | #include <linux/fec.h> |
| 44 | struct imx_fec_data { |
Shawn Guo | 0ca1e29 | 2011-07-01 18:11:22 +0800 | [diff] [blame] | 45 | const char *devid; |
Uwe Kleine-König | 6bd96f3 | 2010-10-06 12:00:18 +0200 | [diff] [blame] | 46 | resource_size_t iobase; |
| 47 | resource_size_t irq; |
| 48 | }; |
| 49 | struct platform_device *__init imx_add_fec( |
| 50 | const struct imx_fec_data *data, |
| 51 | const struct fec_platform_data *pdata); |
| 52 | |
Marc Kleine-Budde | 61c6850 | 2010-07-22 11:45:34 +0200 | [diff] [blame] | 53 | #include <linux/can/platform/flexcan.h> |
Uwe Kleine-König | fc40d01 | 2010-11-04 12:02:35 +0100 | [diff] [blame] | 54 | struct imx_flexcan_data { |
| 55 | int id; |
| 56 | resource_size_t iobase; |
| 57 | resource_size_t iosize; |
| 58 | resource_size_t irq; |
| 59 | }; |
| 60 | struct platform_device *__init imx_add_flexcan( |
| 61 | const struct imx_flexcan_data *data, |
Marc Kleine-Budde | 61c6850 | 2010-07-22 11:45:34 +0200 | [diff] [blame] | 62 | const struct flexcan_platform_data *pdata); |
Marc Kleine-Budde | 61c6850 | 2010-07-22 11:45:34 +0200 | [diff] [blame] | 63 | |
Uwe Kleine-König | bd455ed | 2010-11-09 17:52:14 +0100 | [diff] [blame] | 64 | #include <linux/fsl_devices.h> |
| 65 | struct imx_fsl_usb2_udc_data { |
| 66 | resource_size_t iobase; |
| 67 | resource_size_t irq; |
| 68 | }; |
| 69 | struct platform_device *__init imx_add_fsl_usb2_udc( |
| 70 | const struct imx_fsl_usb2_udc_data *data, |
| 71 | const struct fsl_usb2_platform_data *pdata); |
| 72 | |
Dinh Nguyen | 47c5382 | 2010-10-23 09:12:46 -0500 | [diff] [blame] | 73 | #include <linux/gpio_keys.h> |
| 74 | struct platform_device *__init imx_add_gpio_keys( |
| 75 | const struct gpio_keys_platform_data *pdata); |
| 76 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 77 | #include <linux/platform_data/usb-mx2.h> |
Uwe Kleine-König | 9f871469 | 2010-11-10 10:11:23 +0100 | [diff] [blame] | 78 | struct imx_imx21_hcd_data { |
| 79 | resource_size_t iobase; |
| 80 | resource_size_t irq; |
| 81 | }; |
| 82 | struct platform_device *__init imx_add_imx21_hcd( |
| 83 | const struct imx_imx21_hcd_data *data, |
| 84 | const struct mx21_usbh_platform_data *pdata); |
| 85 | |
Javier Martin | 6d8c452 | 2012-07-26 05:45:32 -0300 | [diff] [blame] | 86 | struct imx_imx27_coda_data { |
| 87 | resource_size_t iobase; |
| 88 | resource_size_t iosize; |
| 89 | resource_size_t irq; |
| 90 | }; |
| 91 | struct platform_device *__init imx_add_imx27_coda( |
| 92 | const struct imx_imx27_coda_data *data); |
| 93 | |
Uwe Kleine-König | e0a1961 | 2010-11-04 10:09:10 +0100 | [diff] [blame] | 94 | struct imx_imx2_wdt_data { |
Fabio Estevam | 8c2efec | 2010-12-06 16:38:32 -0200 | [diff] [blame] | 95 | int id; |
Uwe Kleine-König | e0a1961 | 2010-11-04 10:09:10 +0100 | [diff] [blame] | 96 | resource_size_t iobase; |
Uwe Kleine-König | 0087150 | 2010-11-11 16:58:50 +0100 | [diff] [blame] | 97 | resource_size_t iosize; |
Uwe Kleine-König | e0a1961 | 2010-11-04 10:09:10 +0100 | [diff] [blame] | 98 | }; |
| 99 | struct platform_device *__init imx_add_imx2_wdt( |
| 100 | const struct imx_imx2_wdt_data *data); |
| 101 | |
Uwe Kleine-König | e7c74b3 | 2010-11-11 11:57:21 +0100 | [diff] [blame] | 102 | struct imx_imxdi_rtc_data { |
| 103 | resource_size_t iobase; |
| 104 | resource_size_t irq; |
| 105 | }; |
| 106 | struct platform_device *__init imx_add_imxdi_rtc( |
| 107 | const struct imx_imxdi_rtc_data *data); |
| 108 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 109 | #include <linux/platform_data/video-imxfb.h> |
Uwe Kleine-König | ad851bf | 2010-11-04 17:07:48 +0100 | [diff] [blame] | 110 | struct imx_imx_fb_data { |
Shawn Guo | e69dc9a | 2012-09-16 19:59:53 +0800 | [diff] [blame] | 111 | const char *devid; |
Uwe Kleine-König | ad851bf | 2010-11-04 17:07:48 +0100 | [diff] [blame] | 112 | resource_size_t iobase; |
Uwe Kleine-König | 194ee8e | 2010-11-11 15:32:21 +0100 | [diff] [blame] | 113 | resource_size_t iosize; |
Uwe Kleine-König | ad851bf | 2010-11-04 17:07:48 +0100 | [diff] [blame] | 114 | resource_size_t irq; |
| 115 | }; |
| 116 | struct platform_device *__init imx_add_imx_fb( |
| 117 | const struct imx_imx_fb_data *data, |
| 118 | const struct imx_fb_platform_data *pdata); |
| 119 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 120 | #include <linux/platform_data/i2c-imx.h> |
Uwe Kleine-König | 64de5ec | 2010-09-21 12:13:34 +0200 | [diff] [blame] | 121 | struct imx_imx_i2c_data { |
Shawn Guo | 5bdfba2 | 2012-09-14 15:19:00 +0800 | [diff] [blame] | 122 | const char *devid; |
Uwe Kleine-König | 64de5ec | 2010-09-21 12:13:34 +0200 | [diff] [blame] | 123 | int id; |
| 124 | resource_size_t iobase; |
| 125 | resource_size_t iosize; |
| 126 | resource_size_t irq; |
| 127 | }; |
| 128 | struct platform_device *__init imx_add_imx_i2c( |
| 129 | const struct imx_imx_i2c_data *data, |
Uwe Kleine-König | 99a754d | 2010-06-16 14:37:51 +0200 | [diff] [blame] | 130 | const struct imxi2c_platform_data *pdata); |
| 131 | |
Uwe Kleine-König | 3f88014 | 2010-11-10 09:58:56 +0100 | [diff] [blame] | 132 | #include <linux/input/matrix_keypad.h> |
| 133 | struct imx_imx_keypad_data { |
| 134 | resource_size_t iobase; |
Uwe Kleine-König | ab9cee4b | 2010-11-11 11:35:33 +0100 | [diff] [blame] | 135 | resource_size_t iosize; |
Uwe Kleine-König | 3f88014 | 2010-11-10 09:58:56 +0100 | [diff] [blame] | 136 | resource_size_t irq; |
| 137 | }; |
| 138 | struct platform_device *__init imx_add_imx_keypad( |
| 139 | const struct imx_imx_keypad_data *data, |
| 140 | const struct matrix_keymap_data *pdata); |
| 141 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 142 | #include <linux/platform_data/asoc-imx-ssi.h> |
Uwe Kleine-König | 4697bb92 | 2010-08-25 17:37:45 +0200 | [diff] [blame] | 143 | struct imx_imx_ssi_data { |
| 144 | int id; |
| 145 | resource_size_t iobase; |
| 146 | resource_size_t iosize; |
| 147 | resource_size_t irq; |
| 148 | resource_size_t dmatx0; |
| 149 | resource_size_t dmarx0; |
| 150 | resource_size_t dmatx1; |
| 151 | resource_size_t dmarx1; |
| 152 | }; |
| 153 | struct platform_device *__init imx_add_imx_ssi( |
| 154 | const struct imx_imx_ssi_data *data, |
| 155 | const struct imx_ssi_platform_data *pdata); |
| 156 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 157 | #include <linux/platform_data/serial-imx.h> |
Uwe Kleine-König | 5162de0 | 2010-08-10 22:57:24 +0200 | [diff] [blame] | 158 | struct imx_imx_uart_3irq_data { |
| 159 | int id; |
| 160 | resource_size_t iobase; |
| 161 | resource_size_t iosize; |
| 162 | resource_size_t irqrx; |
| 163 | resource_size_t irqtx; |
| 164 | resource_size_t irqrts; |
| 165 | }; |
| 166 | struct platform_device *__init imx_add_imx_uart_3irq( |
| 167 | const struct imx_imx_uart_3irq_data *data, |
Uwe Kleine-König | 2db6823 | 2010-06-22 14:49:20 +0200 | [diff] [blame] | 168 | const struct imxuart_platform_data *pdata); |
Uwe Kleine-König | 5162de0 | 2010-08-10 22:57:24 +0200 | [diff] [blame] | 169 | |
| 170 | struct imx_imx_uart_1irq_data { |
| 171 | int id; |
| 172 | resource_size_t iobase; |
| 173 | resource_size_t iosize; |
| 174 | resource_size_t irq; |
| 175 | }; |
| 176 | struct platform_device *__init imx_add_imx_uart_1irq( |
| 177 | const struct imx_imx_uart_1irq_data *data, |
Uwe Kleine-König | 2db6823 | 2010-06-22 14:49:20 +0200 | [diff] [blame] | 178 | const struct imxuart_platform_data *pdata); |
| 179 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 180 | #include <linux/platform_data/usb-imx_udc.h> |
Uwe Kleine-König | e083000 | 2010-11-02 10:03:51 +0100 | [diff] [blame] | 181 | struct imx_imx_udc_data { |
| 182 | resource_size_t iobase; |
| 183 | resource_size_t iosize; |
| 184 | resource_size_t irq0; |
| 185 | resource_size_t irq1; |
| 186 | resource_size_t irq2; |
| 187 | resource_size_t irq3; |
| 188 | resource_size_t irq4; |
| 189 | resource_size_t irq5; |
| 190 | resource_size_t irq6; |
| 191 | }; |
| 192 | struct platform_device *__init imx_add_imx_udc( |
| 193 | const struct imx_imx_udc_data *data, |
| 194 | const struct imxusb_platform_data *pdata); |
| 195 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 196 | #include <linux/platform_data/video-mx3fb.h> |
| 197 | #include <linux/platform_data/camera-mx3.h> |
Uwe Kleine-König | afa77ef | 2011-03-03 21:32:02 +0100 | [diff] [blame] | 198 | struct imx_ipu_core_data { |
| 199 | resource_size_t iobase; |
| 200 | resource_size_t synirq; |
| 201 | resource_size_t errirq; |
| 202 | }; |
| 203 | struct platform_device *__init imx_add_ipu_core( |
Shawn Guo | 88289c8 | 2012-06-13 14:07:31 +0800 | [diff] [blame] | 204 | const struct imx_ipu_core_data *data); |
Uwe Kleine-König | afa77ef | 2011-03-03 21:32:02 +0100 | [diff] [blame] | 205 | struct platform_device *__init imx_alloc_mx3_camera( |
| 206 | const struct imx_ipu_core_data *data, |
| 207 | const struct mx3_camera_pdata *pdata); |
| 208 | struct platform_device *__init imx_add_mx3_sdc_fb( |
| 209 | const struct imx_ipu_core_data *data, |
| 210 | struct mx3fb_platform_data *pdata); |
| 211 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 212 | #include <linux/platform_data/camera-mx1.h> |
Uwe Kleine-König | 9bb39b3 | 2010-11-02 11:59:08 +0100 | [diff] [blame] | 213 | struct imx_mx1_camera_data { |
| 214 | resource_size_t iobase; |
| 215 | resource_size_t iosize; |
| 216 | resource_size_t irq; |
| 217 | }; |
| 218 | struct platform_device *__init imx_add_mx1_camera( |
| 219 | const struct imx_mx1_camera_data *data, |
| 220 | const struct mx1_camera_pdata *pdata); |
| 221 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 222 | #include <linux/platform_data/camera-mx2.h> |
Uwe Kleine-König | b2997cb | 2010-11-02 17:50:55 +0100 | [diff] [blame] | 223 | struct imx_mx2_camera_data { |
Shawn Guo | 27b7648 | 2012-09-16 16:26:20 +0800 | [diff] [blame] | 224 | const char *devid; |
Uwe Kleine-König | b2997cb | 2010-11-02 17:50:55 +0100 | [diff] [blame] | 225 | resource_size_t iobasecsi; |
| 226 | resource_size_t iosizecsi; |
| 227 | resource_size_t irqcsi; |
| 228 | resource_size_t iobaseemmaprp; |
| 229 | resource_size_t iosizeemmaprp; |
| 230 | resource_size_t irqemmaprp; |
| 231 | }; |
| 232 | struct platform_device *__init imx_add_mx2_camera( |
| 233 | const struct imx_mx2_camera_data *data, |
| 234 | const struct mx2_camera_platform_data *pdata); |
Gaëtan Carlier | 3ab3a35 | 2012-09-05 13:06:15 +0200 | [diff] [blame^] | 235 | |
| 236 | |
| 237 | struct imx_mx2_emma_data { |
| 238 | resource_size_t iobase; |
| 239 | resource_size_t iosize; |
| 240 | resource_size_t irq; |
| 241 | }; |
Javier Martin | 52f1a84 | 2012-01-13 06:31:57 -0300 | [diff] [blame] | 242 | struct platform_device *__init imx_add_mx2_emmaprp( |
Gaëtan Carlier | 3ab3a35 | 2012-09-05 13:06:15 +0200 | [diff] [blame^] | 243 | const struct imx_mx2_emma_data *data); |
Uwe Kleine-König | b2997cb | 2010-11-02 17:50:55 +0100 | [diff] [blame] | 244 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 245 | #include <linux/platform_data/usb-ehci-mxc.h> |
Uwe Kleine-König | 2eb42d5 | 2010-11-05 18:52:09 +0100 | [diff] [blame] | 246 | struct imx_mxc_ehci_data { |
| 247 | int id; |
| 248 | resource_size_t iobase; |
| 249 | resource_size_t irq; |
| 250 | }; |
| 251 | struct platform_device *__init imx_add_mxc_ehci( |
| 252 | const struct imx_mxc_ehci_data *data, |
| 253 | const struct mxc_usbh_platform_data *pdata); |
| 254 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 255 | #include <linux/platform_data/mmc-mxcmmc.h> |
Uwe Kleine-König | 9d3d945 | 2010-11-05 17:26:09 +0100 | [diff] [blame] | 256 | struct imx_mxc_mmc_data { |
Shawn Guo | 7f917a8 | 2012-09-16 16:54:30 +0800 | [diff] [blame] | 257 | const char *devid; |
Uwe Kleine-König | 9d3d945 | 2010-11-05 17:26:09 +0100 | [diff] [blame] | 258 | int id; |
| 259 | resource_size_t iobase; |
Uwe Kleine-König | 6a697e3 | 2010-11-12 11:10:55 +0100 | [diff] [blame] | 260 | resource_size_t iosize; |
Uwe Kleine-König | 9d3d945 | 2010-11-05 17:26:09 +0100 | [diff] [blame] | 261 | resource_size_t irq; |
| 262 | resource_size_t dmareq; |
| 263 | }; |
| 264 | struct platform_device *__init imx_add_mxc_mmc( |
| 265 | const struct imx_mxc_mmc_data *data, |
| 266 | const struct imxmmc_platform_data *pdata); |
| 267 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 268 | #include <linux/platform_data/mtd-mxc_nand.h> |
Uwe Kleine-König | 00b57bf | 2010-08-23 11:25:52 +0200 | [diff] [blame] | 269 | struct imx_mxc_nand_data { |
Shawn Guo | 4d62435 | 2012-09-15 13:34:09 +0800 | [diff] [blame] | 270 | const char *devid; |
Sascha Hauer | 63a7c6d | 2010-08-03 11:59:46 +0200 | [diff] [blame] | 271 | /* |
| 272 | * id is traditionally 0, but -1 is more appropriate. We use -1 for new |
| 273 | * machines but don't change existing devices as the nand device usually |
| 274 | * appears in the kernel command line to pass its partitioning. |
| 275 | */ |
| 276 | int id; |
Uwe Kleine-König | 00b57bf | 2010-08-23 11:25:52 +0200 | [diff] [blame] | 277 | resource_size_t iobase; |
| 278 | resource_size_t iosize; |
Sascha Hauer | 63a7c6d | 2010-08-03 11:59:46 +0200 | [diff] [blame] | 279 | resource_size_t axibase; |
Uwe Kleine-König | 00b57bf | 2010-08-23 11:25:52 +0200 | [diff] [blame] | 280 | resource_size_t irq; |
| 281 | }; |
| 282 | struct platform_device *__init imx_add_mxc_nand( |
| 283 | const struct imx_mxc_nand_data *data, |
| 284 | const struct mxc_nand_platform_data *pdata); |
Uwe Kleine-König | 0287073 | 2010-06-21 18:02:55 +0200 | [diff] [blame] | 285 | |
Arnaud Patard (Rtp) | a45adf1 | 2011-07-26 16:54:25 +0200 | [diff] [blame] | 286 | struct imx_pata_imx_data { |
| 287 | resource_size_t iobase; |
Fabio Estevam | 236c4e8 | 2011-08-23 17:18:06 -0300 | [diff] [blame] | 288 | resource_size_t iosize; |
Arnaud Patard (Rtp) | a45adf1 | 2011-07-26 16:54:25 +0200 | [diff] [blame] | 289 | resource_size_t irq; |
| 290 | }; |
| 291 | struct platform_device *__init imx_add_pata_imx( |
| 292 | const struct imx_pata_imx_data *data); |
| 293 | |
Uwe Kleine-König | bf182bc | 2010-11-05 15:01:16 +0100 | [diff] [blame] | 294 | struct imx_mxc_pwm_data { |
Uwe Kleine-König | 5f3d109 | 2010-11-10 22:15:45 +0100 | [diff] [blame] | 295 | int id; |
Uwe Kleine-König | bf182bc | 2010-11-05 15:01:16 +0100 | [diff] [blame] | 296 | resource_size_t iobase; |
Uwe Kleine-König | 5f3d109 | 2010-11-10 22:15:45 +0100 | [diff] [blame] | 297 | resource_size_t iosize; |
Uwe Kleine-König | bf182bc | 2010-11-05 15:01:16 +0100 | [diff] [blame] | 298 | resource_size_t irq; |
| 299 | }; |
| 300 | struct platform_device *__init imx_add_mxc_pwm( |
| 301 | const struct imx_mxc_pwm_data *data); |
| 302 | |
Uwe Kleine-König | 8342267 | 2011-03-01 11:04:34 +0100 | [diff] [blame] | 303 | /* mxc_rtc */ |
| 304 | struct imx_mxc_rtc_data { |
Shawn Guo | bb1d34a | 2012-09-15 14:26:14 +0800 | [diff] [blame] | 305 | const char *devid; |
Uwe Kleine-König | 8342267 | 2011-03-01 11:04:34 +0100 | [diff] [blame] | 306 | resource_size_t iobase; |
| 307 | resource_size_t irq; |
| 308 | }; |
| 309 | struct platform_device *__init imx_add_mxc_rtc( |
| 310 | const struct imx_mxc_rtc_data *data); |
| 311 | |
| 312 | /* mxc_w1 */ |
Uwe Kleine-König | ae71a56 | 2010-10-29 10:56:07 +0200 | [diff] [blame] | 313 | struct imx_mxc_w1_data { |
| 314 | resource_size_t iobase; |
| 315 | }; |
| 316 | struct platform_device *__init imx_add_mxc_w1( |
| 317 | const struct imx_mxc_w1_data *data); |
| 318 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 319 | #include <linux/platform_data/mmc-esdhc-imx.h> |
Uwe Kleine-König | 124bf94 | 2010-11-19 21:03:33 +0100 | [diff] [blame] | 320 | struct imx_sdhci_esdhc_imx_data { |
Shawn Guo | 57ed331 | 2011-06-30 09:24:26 +0800 | [diff] [blame] | 321 | const char *devid; |
Uwe Kleine-König | 124bf94 | 2010-11-19 21:03:33 +0100 | [diff] [blame] | 322 | int id; |
| 323 | resource_size_t iobase; |
| 324 | resource_size_t irq; |
| 325 | }; |
| 326 | struct platform_device *__init imx_add_sdhci_esdhc_imx( |
| 327 | const struct imx_sdhci_esdhc_imx_data *data, |
| 328 | const struct esdhc_platform_data *pdata); |
| 329 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 330 | #include <linux/platform_data/spi-imx.h> |
Uwe Kleine-König | 35bab05 | 2010-09-09 21:02:02 +0200 | [diff] [blame] | 331 | struct imx_spi_imx_data { |
Uwe Kleine-König | ab56050 | 2010-09-09 21:02:02 +0200 | [diff] [blame] | 332 | const char *devid; |
Uwe Kleine-König | 35bab05 | 2010-09-09 21:02:02 +0200 | [diff] [blame] | 333 | int id; |
| 334 | resource_size_t iobase; |
| 335 | resource_size_t iosize; |
| 336 | int irq; |
| 337 | }; |
| 338 | struct platform_device *__init imx_add_spi_imx( |
| 339 | const struct imx_spi_imx_data *data, |
Uwe Kleine-König | 0287073 | 2010-06-21 18:02:55 +0200 | [diff] [blame] | 340 | const struct spi_imx_master *pdata); |
Shawn Guo | 3622360 | 2011-06-22 22:41:30 +0800 | [diff] [blame] | 341 | |
Shawn Guo | e51d0f0 | 2012-09-15 21:11:28 +0800 | [diff] [blame] | 342 | struct platform_device *imx_add_imx_dma(char *name, resource_size_t iobase, |
Shawn Guo | 73930eb | 2012-09-15 15:57:00 +0800 | [diff] [blame] | 343 | int irq, int irq_err); |
Shawn Guo | 62550cd | 2011-07-13 21:33:17 +0800 | [diff] [blame] | 344 | struct platform_device *imx_add_imx_sdma(char *name, |
Shawn Guo | 3622360 | 2011-06-22 22:41:30 +0800 | [diff] [blame] | 345 | resource_size_t iobase, int irq, struct sdma_platform_data *pdata); |
Richard Zhu | 97915bd | 2011-09-28 15:41:53 +0800 | [diff] [blame] | 346 | |
| 347 | #include <linux/ahci_platform.h> |
| 348 | struct imx_ahci_imx_data { |
| 349 | const char *devid; |
| 350 | resource_size_t iobase; |
| 351 | resource_size_t irq; |
| 352 | }; |
| 353 | struct platform_device *__init imx_add_ahci_imx( |
| 354 | const struct imx_ahci_imx_data *data, |
| 355 | const struct ahci_platform_data *pdata); |