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> |
| 12 | |
| 13 | struct platform_device *imx_add_platform_device(const char *name, int id, |
| 14 | const struct resource *res, unsigned int num_resources, |
| 15 | const void *data, size_t size_data); |
Uwe Kleine-König | 66384ee | 2010-06-15 18:14:19 +0200 | [diff] [blame] | 16 | |
Marc Kleine-Budde | 61c6850 | 2010-07-22 11:45:34 +0200 | [diff] [blame] | 17 | #include <linux/can/platform/flexcan.h> |
| 18 | struct platform_device *__init imx_add_flexcan(int id, |
| 19 | resource_size_t iobase, resource_size_t iosize, |
| 20 | resource_size_t irq, |
| 21 | const struct flexcan_platform_data *pdata); |
Marc Kleine-Budde | 61c6850 | 2010-07-22 11:45:34 +0200 | [diff] [blame] | 22 | |
Uwe Kleine-König | 99a754d | 2010-06-16 14:37:51 +0200 | [diff] [blame] | 23 | #include <mach/i2c.h> |
Uwe Kleine-König | 64de5ec | 2010-09-21 12:13:34 +0200 | [diff] [blame] | 24 | struct imx_imx_i2c_data { |
| 25 | int id; |
| 26 | resource_size_t iobase; |
| 27 | resource_size_t iosize; |
| 28 | resource_size_t irq; |
| 29 | }; |
| 30 | struct platform_device *__init imx_add_imx_i2c( |
| 31 | const struct imx_imx_i2c_data *data, |
Uwe Kleine-König | 99a754d | 2010-06-16 14:37:51 +0200 | [diff] [blame] | 32 | const struct imxi2c_platform_data *pdata); |
| 33 | |
Uwe Kleine-König | 4697bb92 | 2010-08-25 17:37:45 +0200 | [diff] [blame] | 34 | #include <mach/ssi.h> |
| 35 | struct imx_imx_ssi_data { |
| 36 | int id; |
| 37 | resource_size_t iobase; |
| 38 | resource_size_t iosize; |
| 39 | resource_size_t irq; |
| 40 | resource_size_t dmatx0; |
| 41 | resource_size_t dmarx0; |
| 42 | resource_size_t dmatx1; |
| 43 | resource_size_t dmarx1; |
| 44 | }; |
| 45 | struct platform_device *__init imx_add_imx_ssi( |
| 46 | const struct imx_imx_ssi_data *data, |
| 47 | const struct imx_ssi_platform_data *pdata); |
| 48 | |
Uwe Kleine-König | 2db6823 | 2010-06-22 14:49:20 +0200 | [diff] [blame] | 49 | #include <mach/imx-uart.h> |
Uwe Kleine-König | 5162de0 | 2010-08-10 22:57:24 +0200 | [diff] [blame] | 50 | struct imx_imx_uart_3irq_data { |
| 51 | int id; |
| 52 | resource_size_t iobase; |
| 53 | resource_size_t iosize; |
| 54 | resource_size_t irqrx; |
| 55 | resource_size_t irqtx; |
| 56 | resource_size_t irqrts; |
| 57 | }; |
| 58 | struct platform_device *__init imx_add_imx_uart_3irq( |
| 59 | const struct imx_imx_uart_3irq_data *data, |
Uwe Kleine-König | 2db6823 | 2010-06-22 14:49:20 +0200 | [diff] [blame] | 60 | const struct imxuart_platform_data *pdata); |
Uwe Kleine-König | 5162de0 | 2010-08-10 22:57:24 +0200 | [diff] [blame] | 61 | |
| 62 | struct imx_imx_uart_1irq_data { |
| 63 | int id; |
| 64 | resource_size_t iobase; |
| 65 | resource_size_t iosize; |
| 66 | resource_size_t irq; |
| 67 | }; |
| 68 | struct platform_device *__init imx_add_imx_uart_1irq( |
| 69 | const struct imx_imx_uart_1irq_data *data, |
Uwe Kleine-König | 2db6823 | 2010-06-22 14:49:20 +0200 | [diff] [blame] | 70 | const struct imxuart_platform_data *pdata); |
| 71 | |
Uwe Kleine-König | 66384ee | 2010-06-15 18:14:19 +0200 | [diff] [blame] | 72 | #include <mach/mxc_nand.h> |
| 73 | struct platform_device *__init imx_add_mxc_nand_v1(resource_size_t iobase, |
| 74 | int irq, const struct mxc_nand_platform_data *pdata); |
| 75 | struct platform_device *__init imx_add_mxc_nand_v21(resource_size_t iobase, |
| 76 | int irq, const struct mxc_nand_platform_data *pdata); |
Uwe Kleine-König | 0287073 | 2010-06-21 18:02:55 +0200 | [diff] [blame] | 77 | |
| 78 | #include <mach/spi.h> |
Uwe Kleine-König | 35bab05 | 2010-09-09 21:02:02 +0200 | [diff] [blame] | 79 | struct imx_spi_imx_data { |
Uwe Kleine-König | ab56050 | 2010-09-09 21:02:02 +0200 | [diff] [blame^] | 80 | const char *devid; |
Uwe Kleine-König | 35bab05 | 2010-09-09 21:02:02 +0200 | [diff] [blame] | 81 | int id; |
| 82 | resource_size_t iobase; |
| 83 | resource_size_t iosize; |
| 84 | int irq; |
| 85 | }; |
| 86 | struct platform_device *__init imx_add_spi_imx( |
| 87 | const struct imx_spi_imx_data *data, |
Uwe Kleine-König | 0287073 | 2010-06-21 18:02:55 +0200 | [diff] [blame] | 88 | const struct spi_imx_master *pdata); |