]>
Commit | Line | Data |
---|---|---|
253ff1fa UKK |
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); | |
66384eed | 16 | |
99a754d8 UKK |
17 | #include <mach/i2c.h> |
18 | struct platform_device *__init imx_add_imx_i2c(int id, | |
19 | resource_size_t iobase, resource_size_t iosize, int irq, | |
20 | const struct imxi2c_platform_data *pdata); | |
21 | ||
66384eed UKK |
22 | #include <mach/mxc_nand.h> |
23 | struct platform_device *__init imx_add_mxc_nand_v1(resource_size_t iobase, | |
24 | int irq, const struct mxc_nand_platform_data *pdata); | |
25 | struct platform_device *__init imx_add_mxc_nand_v21(resource_size_t iobase, | |
26 | int irq, const struct mxc_nand_platform_data *pdata); | |
02870737 UKK |
27 | |
28 | #include <mach/spi.h> | |
29 | struct platform_device *__init imx_add_spi_imx(int id, | |
30 | resource_size_t iobase, resource_size_t iosize, int irq, | |
31 | const struct spi_imx_master *pdata); |