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 { |
| 111 | resource_size_t iobase; |
Uwe Kleine-König | 194ee8e | 2010-11-11 15:32:21 +0100 | [diff] [blame] | 112 | resource_size_t iosize; |
Uwe Kleine-König | ad851bf | 2010-11-04 17:07:48 +0100 | [diff] [blame] | 113 | resource_size_t irq; |
| 114 | }; |
| 115 | struct platform_device *__init imx_add_imx_fb( |
| 116 | const struct imx_imx_fb_data *data, |
| 117 | const struct imx_fb_platform_data *pdata); |
| 118 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 119 | #include <linux/platform_data/i2c-imx.h> |
Uwe Kleine-König | 64de5ec | 2010-09-21 12:13:34 +0200 | [diff] [blame] | 120 | struct imx_imx_i2c_data { |
Shawn Guo | 5bdfba2 | 2012-09-14 15:19:00 +0800 | [diff] [blame] | 121 | const char *devid; |
Uwe Kleine-König | 64de5ec | 2010-09-21 12:13:34 +0200 | [diff] [blame] | 122 | int id; |
| 123 | resource_size_t iobase; |
| 124 | resource_size_t iosize; |
| 125 | resource_size_t irq; |
| 126 | }; |
| 127 | struct platform_device *__init imx_add_imx_i2c( |
| 128 | const struct imx_imx_i2c_data *data, |
Uwe Kleine-König | 99a754d | 2010-06-16 14:37:51 +0200 | [diff] [blame] | 129 | const struct imxi2c_platform_data *pdata); |
| 130 | |
Uwe Kleine-König | 3f88014 | 2010-11-10 09:58:56 +0100 | [diff] [blame] | 131 | #include <linux/input/matrix_keypad.h> |
| 132 | struct imx_imx_keypad_data { |
| 133 | resource_size_t iobase; |
Uwe Kleine-König | ab9cee4b | 2010-11-11 11:35:33 +0100 | [diff] [blame] | 134 | resource_size_t iosize; |
Uwe Kleine-König | 3f88014 | 2010-11-10 09:58:56 +0100 | [diff] [blame] | 135 | resource_size_t irq; |
| 136 | }; |
| 137 | struct platform_device *__init imx_add_imx_keypad( |
| 138 | const struct imx_imx_keypad_data *data, |
| 139 | const struct matrix_keymap_data *pdata); |
| 140 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 141 | #include <linux/platform_data/asoc-imx-ssi.h> |
Uwe Kleine-König | 4697bb92 | 2010-08-25 17:37:45 +0200 | [diff] [blame] | 142 | struct imx_imx_ssi_data { |
| 143 | int id; |
| 144 | resource_size_t iobase; |
| 145 | resource_size_t iosize; |
| 146 | resource_size_t irq; |
| 147 | resource_size_t dmatx0; |
| 148 | resource_size_t dmarx0; |
| 149 | resource_size_t dmatx1; |
| 150 | resource_size_t dmarx1; |
| 151 | }; |
| 152 | struct platform_device *__init imx_add_imx_ssi( |
| 153 | const struct imx_imx_ssi_data *data, |
| 154 | const struct imx_ssi_platform_data *pdata); |
| 155 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 156 | #include <linux/platform_data/serial-imx.h> |
Uwe Kleine-König | 5162de0 | 2010-08-10 22:57:24 +0200 | [diff] [blame] | 157 | struct imx_imx_uart_3irq_data { |
| 158 | int id; |
| 159 | resource_size_t iobase; |
| 160 | resource_size_t iosize; |
| 161 | resource_size_t irqrx; |
| 162 | resource_size_t irqtx; |
| 163 | resource_size_t irqrts; |
| 164 | }; |
| 165 | struct platform_device *__init imx_add_imx_uart_3irq( |
| 166 | const struct imx_imx_uart_3irq_data *data, |
Uwe Kleine-König | 2db6823 | 2010-06-22 14:49:20 +0200 | [diff] [blame] | 167 | const struct imxuart_platform_data *pdata); |
Uwe Kleine-König | 5162de0 | 2010-08-10 22:57:24 +0200 | [diff] [blame] | 168 | |
| 169 | struct imx_imx_uart_1irq_data { |
| 170 | int id; |
| 171 | resource_size_t iobase; |
| 172 | resource_size_t iosize; |
| 173 | resource_size_t irq; |
| 174 | }; |
| 175 | struct platform_device *__init imx_add_imx_uart_1irq( |
| 176 | const struct imx_imx_uart_1irq_data *data, |
Uwe Kleine-König | 2db6823 | 2010-06-22 14:49:20 +0200 | [diff] [blame] | 177 | const struct imxuart_platform_data *pdata); |
| 178 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 179 | #include <linux/platform_data/usb-imx_udc.h> |
Uwe Kleine-König | e083000 | 2010-11-02 10:03:51 +0100 | [diff] [blame] | 180 | struct imx_imx_udc_data { |
| 181 | resource_size_t iobase; |
| 182 | resource_size_t iosize; |
| 183 | resource_size_t irq0; |
| 184 | resource_size_t irq1; |
| 185 | resource_size_t irq2; |
| 186 | resource_size_t irq3; |
| 187 | resource_size_t irq4; |
| 188 | resource_size_t irq5; |
| 189 | resource_size_t irq6; |
| 190 | }; |
| 191 | struct platform_device *__init imx_add_imx_udc( |
| 192 | const struct imx_imx_udc_data *data, |
| 193 | const struct imxusb_platform_data *pdata); |
| 194 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 195 | #include <linux/platform_data/video-mx3fb.h> |
| 196 | #include <linux/platform_data/camera-mx3.h> |
Uwe Kleine-König | afa77ef | 2011-03-03 21:32:02 +0100 | [diff] [blame] | 197 | struct imx_ipu_core_data { |
| 198 | resource_size_t iobase; |
| 199 | resource_size_t synirq; |
| 200 | resource_size_t errirq; |
| 201 | }; |
| 202 | struct platform_device *__init imx_add_ipu_core( |
Shawn Guo | 88289c8 | 2012-06-13 14:07:31 +0800 | [diff] [blame] | 203 | const struct imx_ipu_core_data *data); |
Uwe Kleine-König | afa77ef | 2011-03-03 21:32:02 +0100 | [diff] [blame] | 204 | struct platform_device *__init imx_alloc_mx3_camera( |
| 205 | const struct imx_ipu_core_data *data, |
| 206 | const struct mx3_camera_pdata *pdata); |
| 207 | struct platform_device *__init imx_add_mx3_sdc_fb( |
| 208 | const struct imx_ipu_core_data *data, |
| 209 | struct mx3fb_platform_data *pdata); |
| 210 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 211 | #include <linux/platform_data/camera-mx1.h> |
Uwe Kleine-König | 9bb39b3 | 2010-11-02 11:59:08 +0100 | [diff] [blame] | 212 | struct imx_mx1_camera_data { |
| 213 | resource_size_t iobase; |
| 214 | resource_size_t iosize; |
| 215 | resource_size_t irq; |
| 216 | }; |
| 217 | struct platform_device *__init imx_add_mx1_camera( |
| 218 | const struct imx_mx1_camera_data *data, |
| 219 | const struct mx1_camera_pdata *pdata); |
| 220 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 221 | #include <linux/platform_data/camera-mx2.h> |
Uwe Kleine-König | b2997cb | 2010-11-02 17:50:55 +0100 | [diff] [blame] | 222 | struct imx_mx2_camera_data { |
| 223 | resource_size_t iobasecsi; |
| 224 | resource_size_t iosizecsi; |
| 225 | resource_size_t irqcsi; |
| 226 | resource_size_t iobaseemmaprp; |
| 227 | resource_size_t iosizeemmaprp; |
| 228 | resource_size_t irqemmaprp; |
| 229 | }; |
| 230 | struct platform_device *__init imx_add_mx2_camera( |
| 231 | const struct imx_mx2_camera_data *data, |
| 232 | const struct mx2_camera_platform_data *pdata); |
Javier Martin | 52f1a84 | 2012-01-13 06:31:57 -0300 | [diff] [blame] | 233 | struct platform_device *__init imx_add_mx2_emmaprp( |
| 234 | const struct imx_mx2_camera_data *data); |
Uwe Kleine-König | b2997cb | 2010-11-02 17:50:55 +0100 | [diff] [blame] | 235 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 236 | #include <linux/platform_data/usb-ehci-mxc.h> |
Uwe Kleine-König | 2eb42d5 | 2010-11-05 18:52:09 +0100 | [diff] [blame] | 237 | struct imx_mxc_ehci_data { |
| 238 | int id; |
| 239 | resource_size_t iobase; |
| 240 | resource_size_t irq; |
| 241 | }; |
| 242 | struct platform_device *__init imx_add_mxc_ehci( |
| 243 | const struct imx_mxc_ehci_data *data, |
| 244 | const struct mxc_usbh_platform_data *pdata); |
| 245 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 246 | #include <linux/platform_data/mmc-mxcmmc.h> |
Uwe Kleine-König | 9d3d945 | 2010-11-05 17:26:09 +0100 | [diff] [blame] | 247 | struct imx_mxc_mmc_data { |
| 248 | int id; |
| 249 | resource_size_t iobase; |
Uwe Kleine-König | 6a697e3 | 2010-11-12 11:10:55 +0100 | [diff] [blame] | 250 | resource_size_t iosize; |
Uwe Kleine-König | 9d3d945 | 2010-11-05 17:26:09 +0100 | [diff] [blame] | 251 | resource_size_t irq; |
| 252 | resource_size_t dmareq; |
| 253 | }; |
| 254 | struct platform_device *__init imx_add_mxc_mmc( |
| 255 | const struct imx_mxc_mmc_data *data, |
| 256 | const struct imxmmc_platform_data *pdata); |
| 257 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 258 | #include <linux/platform_data/mtd-mxc_nand.h> |
Uwe Kleine-König | 00b57bf | 2010-08-23 11:25:52 +0200 | [diff] [blame] | 259 | struct imx_mxc_nand_data { |
Shawn Guo | 4d62435 | 2012-09-15 13:34:09 +0800 | [diff] [blame] | 260 | const char *devid; |
Sascha Hauer | 63a7c6d | 2010-08-03 11:59:46 +0200 | [diff] [blame] | 261 | /* |
| 262 | * id is traditionally 0, but -1 is more appropriate. We use -1 for new |
| 263 | * machines but don't change existing devices as the nand device usually |
| 264 | * appears in the kernel command line to pass its partitioning. |
| 265 | */ |
| 266 | int id; |
Uwe Kleine-König | 00b57bf | 2010-08-23 11:25:52 +0200 | [diff] [blame] | 267 | resource_size_t iobase; |
| 268 | resource_size_t iosize; |
Sascha Hauer | 63a7c6d | 2010-08-03 11:59:46 +0200 | [diff] [blame] | 269 | resource_size_t axibase; |
Uwe Kleine-König | 00b57bf | 2010-08-23 11:25:52 +0200 | [diff] [blame] | 270 | resource_size_t irq; |
| 271 | }; |
| 272 | struct platform_device *__init imx_add_mxc_nand( |
| 273 | const struct imx_mxc_nand_data *data, |
| 274 | const struct mxc_nand_platform_data *pdata); |
Uwe Kleine-König | 0287073 | 2010-06-21 18:02:55 +0200 | [diff] [blame] | 275 | |
Arnaud Patard (Rtp) | a45adf1 | 2011-07-26 16:54:25 +0200 | [diff] [blame] | 276 | struct imx_pata_imx_data { |
| 277 | resource_size_t iobase; |
Fabio Estevam | 236c4e8 | 2011-08-23 17:18:06 -0300 | [diff] [blame] | 278 | resource_size_t iosize; |
Arnaud Patard (Rtp) | a45adf1 | 2011-07-26 16:54:25 +0200 | [diff] [blame] | 279 | resource_size_t irq; |
| 280 | }; |
| 281 | struct platform_device *__init imx_add_pata_imx( |
| 282 | const struct imx_pata_imx_data *data); |
| 283 | |
Uwe Kleine-König | bf182bc | 2010-11-05 15:01:16 +0100 | [diff] [blame] | 284 | struct imx_mxc_pwm_data { |
Uwe Kleine-König | 5f3d109 | 2010-11-10 22:15:45 +0100 | [diff] [blame] | 285 | int id; |
Uwe Kleine-König | bf182bc | 2010-11-05 15:01:16 +0100 | [diff] [blame] | 286 | resource_size_t iobase; |
Uwe Kleine-König | 5f3d109 | 2010-11-10 22:15:45 +0100 | [diff] [blame] | 287 | resource_size_t iosize; |
Uwe Kleine-König | bf182bc | 2010-11-05 15:01:16 +0100 | [diff] [blame] | 288 | resource_size_t irq; |
| 289 | }; |
| 290 | struct platform_device *__init imx_add_mxc_pwm( |
| 291 | const struct imx_mxc_pwm_data *data); |
| 292 | |
Uwe Kleine-König | 8342267 | 2011-03-01 11:04:34 +0100 | [diff] [blame] | 293 | /* mxc_rtc */ |
| 294 | struct imx_mxc_rtc_data { |
Shawn Guo | bb1d34a | 2012-09-15 14:26:14 +0800 | [diff] [blame^] | 295 | const char *devid; |
Uwe Kleine-König | 8342267 | 2011-03-01 11:04:34 +0100 | [diff] [blame] | 296 | resource_size_t iobase; |
| 297 | resource_size_t irq; |
| 298 | }; |
| 299 | struct platform_device *__init imx_add_mxc_rtc( |
| 300 | const struct imx_mxc_rtc_data *data); |
| 301 | |
| 302 | /* mxc_w1 */ |
Uwe Kleine-König | ae71a56 | 2010-10-29 10:56:07 +0200 | [diff] [blame] | 303 | struct imx_mxc_w1_data { |
| 304 | resource_size_t iobase; |
| 305 | }; |
| 306 | struct platform_device *__init imx_add_mxc_w1( |
| 307 | const struct imx_mxc_w1_data *data); |
| 308 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 309 | #include <linux/platform_data/mmc-esdhc-imx.h> |
Uwe Kleine-König | 124bf94 | 2010-11-19 21:03:33 +0100 | [diff] [blame] | 310 | struct imx_sdhci_esdhc_imx_data { |
Shawn Guo | 57ed331 | 2011-06-30 09:24:26 +0800 | [diff] [blame] | 311 | const char *devid; |
Uwe Kleine-König | 124bf94 | 2010-11-19 21:03:33 +0100 | [diff] [blame] | 312 | int id; |
| 313 | resource_size_t iobase; |
| 314 | resource_size_t irq; |
| 315 | }; |
| 316 | struct platform_device *__init imx_add_sdhci_esdhc_imx( |
| 317 | const struct imx_sdhci_esdhc_imx_data *data, |
| 318 | const struct esdhc_platform_data *pdata); |
| 319 | |
Arnd Bergmann | 82906b1 | 2012-08-24 15:14:29 +0200 | [diff] [blame] | 320 | #include <linux/platform_data/spi-imx.h> |
Uwe Kleine-König | 35bab05 | 2010-09-09 21:02:02 +0200 | [diff] [blame] | 321 | struct imx_spi_imx_data { |
Uwe Kleine-König | ab56050 | 2010-09-09 21:02:02 +0200 | [diff] [blame] | 322 | const char *devid; |
Uwe Kleine-König | 35bab05 | 2010-09-09 21:02:02 +0200 | [diff] [blame] | 323 | int id; |
| 324 | resource_size_t iobase; |
| 325 | resource_size_t iosize; |
| 326 | int irq; |
| 327 | }; |
| 328 | struct platform_device *__init imx_add_spi_imx( |
| 329 | const struct imx_spi_imx_data *data, |
Uwe Kleine-König | 0287073 | 2010-06-21 18:02:55 +0200 | [diff] [blame] | 330 | const struct spi_imx_master *pdata); |
Shawn Guo | 3622360 | 2011-06-22 22:41:30 +0800 | [diff] [blame] | 331 | |
| 332 | struct platform_device *imx_add_imx_dma(void); |
Shawn Guo | 62550cd | 2011-07-13 21:33:17 +0800 | [diff] [blame] | 333 | struct platform_device *imx_add_imx_sdma(char *name, |
Shawn Guo | 3622360 | 2011-06-22 22:41:30 +0800 | [diff] [blame] | 334 | resource_size_t iobase, int irq, struct sdma_platform_data *pdata); |
Richard Zhu | 97915bd | 2011-09-28 15:41:53 +0800 | [diff] [blame] | 335 | |
| 336 | #include <linux/ahci_platform.h> |
| 337 | struct imx_ahci_imx_data { |
| 338 | const char *devid; |
| 339 | resource_size_t iobase; |
| 340 | resource_size_t irq; |
| 341 | }; |
| 342 | struct platform_device *__init imx_add_ahci_imx( |
| 343 | const struct imx_ahci_imx_data *data, |
| 344 | const struct ahci_platform_data *pdata); |