aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-mxc/include
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-mxc/include')
-rw-r--r--arch/arm/plat-mxc/include/mach/devices-common.h341
1 files changed, 0 insertions, 341 deletions
diff --git a/arch/arm/plat-mxc/include/mach/devices-common.h b/arch/arm/plat-mxc/include/mach/devices-common.h
deleted file mode 100644
index eaf79d220c9a..000000000000
--- a/arch/arm/plat-mxc/include/mach/devices-common.h
+++ /dev/null
@@ -1,341 +0,0 @@
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>
12#include <linux/platform_data/dma-imx-sdma.h>
13
14extern struct device mxc_aips_bus;
15extern struct device mxc_ahb_bus;
16
17static inline struct platform_device *imx_add_platform_device_dmamask(
18 const char *name, int id,
19 const struct resource *res, unsigned int num_resources,
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}
33
34static 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}
42
43#include <linux/fec.h>
44struct imx_fec_data {
45 const char *devid;
46 resource_size_t iobase;
47 resource_size_t irq;
48};
49struct platform_device *__init imx_add_fec(
50 const struct imx_fec_data *data,
51 const struct fec_platform_data *pdata);
52
53#include <linux/can/platform/flexcan.h>
54struct imx_flexcan_data {
55 int id;
56 resource_size_t iobase;
57 resource_size_t iosize;
58 resource_size_t irq;
59};
60struct platform_device *__init imx_add_flexcan(
61 const struct imx_flexcan_data *data,
62 const struct flexcan_platform_data *pdata);
63
64#include <linux/fsl_devices.h>
65struct imx_fsl_usb2_udc_data {
66 resource_size_t iobase;
67 resource_size_t irq;
68};
69struct 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
73#include <linux/gpio_keys.h>
74struct platform_device *__init imx_add_gpio_keys(
75 const struct gpio_keys_platform_data *pdata);
76
77#include <linux/platform_data/usb-mx2.h>
78struct imx_imx21_hcd_data {
79 resource_size_t iobase;
80 resource_size_t irq;
81};
82struct platform_device *__init imx_add_imx21_hcd(
83 const struct imx_imx21_hcd_data *data,
84 const struct mx21_usbh_platform_data *pdata);
85
86struct imx_imx27_coda_data {
87 resource_size_t iobase;
88 resource_size_t iosize;
89 resource_size_t irq;
90};
91struct platform_device *__init imx_add_imx27_coda(
92 const struct imx_imx27_coda_data *data);
93
94struct imx_imx2_wdt_data {
95 int id;
96 resource_size_t iobase;
97 resource_size_t iosize;
98};
99struct platform_device *__init imx_add_imx2_wdt(
100 const struct imx_imx2_wdt_data *data);
101
102struct imx_imxdi_rtc_data {
103 resource_size_t iobase;
104 resource_size_t irq;
105};
106struct platform_device *__init imx_add_imxdi_rtc(
107 const struct imx_imxdi_rtc_data *data);
108
109#include <linux/platform_data/video-imxfb.h>
110struct imx_imx_fb_data {
111 resource_size_t iobase;
112 resource_size_t iosize;
113 resource_size_t irq;
114};
115struct platform_device *__init imx_add_imx_fb(
116 const struct imx_imx_fb_data *data,
117 const struct imx_fb_platform_data *pdata);
118
119#include <linux/platform_data/i2c-imx.h>
120struct imx_imx_i2c_data {
121 int id;
122 resource_size_t iobase;
123 resource_size_t iosize;
124 resource_size_t irq;
125};
126struct platform_device *__init imx_add_imx_i2c(
127 const struct imx_imx_i2c_data *data,
128 const struct imxi2c_platform_data *pdata);
129
130#include <linux/input/matrix_keypad.h>
131struct imx_imx_keypad_data {
132 resource_size_t iobase;
133 resource_size_t iosize;
134 resource_size_t irq;
135};
136struct platform_device *__init imx_add_imx_keypad(
137 const struct imx_imx_keypad_data *data,
138 const struct matrix_keymap_data *pdata);
139
140#include <linux/platform_data/asoc-imx-ssi.h>
141struct imx_imx_ssi_data {
142 int id;
143 resource_size_t iobase;
144 resource_size_t iosize;
145 resource_size_t irq;
146 resource_size_t dmatx0;
147 resource_size_t dmarx0;
148 resource_size_t dmatx1;
149 resource_size_t dmarx1;
150};
151struct platform_device *__init imx_add_imx_ssi(
152 const struct imx_imx_ssi_data *data,
153 const struct imx_ssi_platform_data *pdata);
154
155#include <linux/platform_data/serial-imx.h>
156struct imx_imx_uart_3irq_data {
157 int id;
158 resource_size_t iobase;
159 resource_size_t iosize;
160 resource_size_t irqrx;
161 resource_size_t irqtx;
162 resource_size_t irqrts;
163};
164struct platform_device *__init imx_add_imx_uart_3irq(
165 const struct imx_imx_uart_3irq_data *data,
166 const struct imxuart_platform_data *pdata);
167
168struct imx_imx_uart_1irq_data {
169 int id;
170 resource_size_t iobase;
171 resource_size_t iosize;
172 resource_size_t irq;
173};
174struct platform_device *__init imx_add_imx_uart_1irq(
175 const struct imx_imx_uart_1irq_data *data,
176 const struct imxuart_platform_data *pdata);
177
178#include <linux/platform_data/usb-imx_udc.h>
179struct imx_imx_udc_data {
180 resource_size_t iobase;
181 resource_size_t iosize;
182 resource_size_t irq0;
183 resource_size_t irq1;
184 resource_size_t irq2;
185 resource_size_t irq3;
186 resource_size_t irq4;
187 resource_size_t irq5;
188 resource_size_t irq6;
189};
190struct platform_device *__init imx_add_imx_udc(
191 const struct imx_imx_udc_data *data,
192 const struct imxusb_platform_data *pdata);
193
194#include <linux/platform_data/video-mx3fb.h>
195#include <linux/platform_data/camera-mx3.h>
196struct imx_ipu_core_data {
197 resource_size_t iobase;
198 resource_size_t synirq;
199 resource_size_t errirq;
200};
201struct platform_device *__init imx_add_ipu_core(
202 const struct imx_ipu_core_data *data);
203struct platform_device *__init imx_alloc_mx3_camera(
204 const struct imx_ipu_core_data *data,
205 const struct mx3_camera_pdata *pdata);
206struct platform_device *__init imx_add_mx3_sdc_fb(
207 const struct imx_ipu_core_data *data,
208 struct mx3fb_platform_data *pdata);
209
210#include <linux/platform_data/camera-mx1.h>
211struct imx_mx1_camera_data {
212 resource_size_t iobase;
213 resource_size_t iosize;
214 resource_size_t irq;
215};
216struct platform_device *__init imx_add_mx1_camera(
217 const struct imx_mx1_camera_data *data,
218 const struct mx1_camera_pdata *pdata);
219
220#include <linux/platform_data/camera-mx2.h>
221struct imx_mx2_camera_data {
222 resource_size_t iobasecsi;
223 resource_size_t iosizecsi;
224 resource_size_t irqcsi;
225 resource_size_t iobaseemmaprp;
226 resource_size_t iosizeemmaprp;
227 resource_size_t irqemmaprp;
228};
229struct platform_device *__init imx_add_mx2_camera(
230 const struct imx_mx2_camera_data *data,
231 const struct mx2_camera_platform_data *pdata);
232struct platform_device *__init imx_add_mx2_emmaprp(
233 const struct imx_mx2_camera_data *data);
234
235#include <linux/platform_data/usb-ehci-mxc.h>
236struct imx_mxc_ehci_data {
237 int id;
238 resource_size_t iobase;
239 resource_size_t irq;
240};
241struct platform_device *__init imx_add_mxc_ehci(
242 const struct imx_mxc_ehci_data *data,
243 const struct mxc_usbh_platform_data *pdata);
244
245#include <linux/platform_data/mmc-mxcmmc.h>
246struct imx_mxc_mmc_data {
247 int id;
248 resource_size_t iobase;
249 resource_size_t iosize;
250 resource_size_t irq;
251 resource_size_t dmareq;
252};
253struct platform_device *__init imx_add_mxc_mmc(
254 const struct imx_mxc_mmc_data *data,
255 const struct imxmmc_platform_data *pdata);
256
257#include <linux/platform_data/mtd-mxc_nand.h>
258struct imx_mxc_nand_data {
259 /*
260 * id is traditionally 0, but -1 is more appropriate. We use -1 for new
261 * machines but don't change existing devices as the nand device usually
262 * appears in the kernel command line to pass its partitioning.
263 */
264 int id;
265 resource_size_t iobase;
266 resource_size_t iosize;
267 resource_size_t axibase;
268 resource_size_t irq;
269};
270struct platform_device *__init imx_add_mxc_nand(
271 const struct imx_mxc_nand_data *data,
272 const struct mxc_nand_platform_data *pdata);
273
274struct imx_pata_imx_data {
275 resource_size_t iobase;
276 resource_size_t iosize;
277 resource_size_t irq;
278};
279struct platform_device *__init imx_add_pata_imx(
280 const struct imx_pata_imx_data *data);
281
282struct imx_mxc_pwm_data {
283 int id;
284 resource_size_t iobase;
285 resource_size_t iosize;
286 resource_size_t irq;
287};
288struct platform_device *__init imx_add_mxc_pwm(
289 const struct imx_mxc_pwm_data *data);
290
291/* mxc_rtc */
292struct imx_mxc_rtc_data {
293 resource_size_t iobase;
294 resource_size_t irq;
295};
296struct platform_device *__init imx_add_mxc_rtc(
297 const struct imx_mxc_rtc_data *data);
298
299/* mxc_w1 */
300struct imx_mxc_w1_data {
301 resource_size_t iobase;
302};
303struct platform_device *__init imx_add_mxc_w1(
304 const struct imx_mxc_w1_data *data);
305
306#include <linux/platform_data/mmc-esdhc-imx.h>
307struct imx_sdhci_esdhc_imx_data {
308 const char *devid;
309 int id;
310 resource_size_t iobase;
311 resource_size_t irq;
312};
313struct platform_device *__init imx_add_sdhci_esdhc_imx(
314 const struct imx_sdhci_esdhc_imx_data *data,
315 const struct esdhc_platform_data *pdata);
316
317#include <linux/platform_data/spi-imx.h>
318struct imx_spi_imx_data {
319 const char *devid;
320 int id;
321 resource_size_t iobase;
322 resource_size_t iosize;
323 int irq;
324};
325struct platform_device *__init imx_add_spi_imx(
326 const struct imx_spi_imx_data *data,
327 const struct spi_imx_master *pdata);
328
329struct platform_device *imx_add_imx_dma(void);
330struct platform_device *imx_add_imx_sdma(char *name,
331 resource_size_t iobase, int irq, struct sdma_platform_data *pdata);
332
333#include <linux/ahci_platform.h>
334struct imx_ahci_imx_data {
335 const char *devid;
336 resource_size_t iobase;
337 resource_size_t irq;
338};
339struct platform_device *__init imx_add_ahci_imx(
340 const struct imx_ahci_imx_data *data,
341 const struct ahci_platform_data *pdata);