diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2010-10-24 20:51:00 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-11-02 18:11:03 +0100 |
commit | e4aaf7f27fe9ba1227dd63fa6eeac8c0858a0620 (patch) | |
tree | badeeef8df34811923112bc5d9117d8828d255eb /arch/arm/mach-imx/include/mach/devices.h | |
parent | aaf125fa8141249d5e52969ce3d31913fceb6194 (diff) | |
download | barebox-e4aaf7f27fe9ba1227dd63fa6eeac8c0858a0620.tar.gz barebox-e4aaf7f27fe9ba1227dd63fa6eeac8c0858a0620.tar.xz |
ARM i.MX: Add device convenience functions
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/include/mach/devices.h')
-rw-r--r-- | arch/arm/mach-imx/include/mach/devices.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/include/mach/devices.h b/arch/arm/mach-imx/include/mach/devices.h new file mode 100644 index 0000000000..677d5b54dc --- /dev/null +++ b/arch/arm/mach-imx/include/mach/devices.h @@ -0,0 +1,17 @@ + +#include <fec.h> +#include <i2c/i2c.h> +#include <mach/spi.h> +#include <mach/imx-nand.h> +#include <mach/imxfb.h> +#include <mach/imx-ipu-fb.h> + +struct device_d *imx_add_fec(void *base, struct fec_platform_data *pdata); +struct device_d *imx_add_spi(void *base, int id, struct spi_imx_master *pdata); +struct device_d *imx_add_i2c(void *base, int id, struct i2c_platform_data *pdata); +struct device_d *imx_add_uart(void *base, int id); +struct device_d *imx_add_nand(void *base, struct imx_nand_platform_data *pdata); +struct device_d *imx_add_fb(void *base, struct imx_fb_platform_data *pdata); +struct device_d *imx_add_ipufb(void *base, struct imx_ipu_fb_platform_data *pdata); +struct device_d *imx_add_mmc(void *base, int id, void *pdata); + |