summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/include/mach/devices-imx21.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2010-10-24 20:51:00 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-11-02 18:11:03 +0100
commite4aaf7f27fe9ba1227dd63fa6eeac8c0858a0620 (patch)
treebadeeef8df34811923112bc5d9117d8828d255eb /arch/arm/mach-imx/include/mach/devices-imx21.h
parentaaf125fa8141249d5e52969ce3d31913fceb6194 (diff)
downloadbarebox-e4aaf7f27fe9ba1227dd63fa6eeac8c0858a0620.tar.gz
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-imx21.h')
-rw-r--r--arch/arm/mach-imx/include/mach/devices-imx21.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/include/mach/devices-imx21.h b/arch/arm/mach-imx/include/mach/devices-imx21.h
new file mode 100644
index 0000000..1e1fbbd
--- /dev/null
+++ b/arch/arm/mach-imx/include/mach/devices-imx21.h
@@ -0,0 +1,33 @@
+
+#include <mach/devices.h>
+
+static inline struct device_d *imx21_add_uart0(void)
+{
+ return imx_add_uart((void *)IMX_UART1_BASE, 0);
+}
+
+static inline struct device_d *imx21_add_uart1(void)
+{
+ return imx_add_uart((void *)IMX_UART2_BASE, 1);
+}
+
+static inline struct device_d *imx21_add_uart2(void)
+{
+ return imx_add_uart((void *)IMX_UART3_BASE, 2);
+}
+
+static inline struct device_d *imx21_add_uart3(void)
+{
+ return imx_add_uart((void *)IMX_UART4_BASE, 3);
+}
+
+static inline struct device_d *imx21_add_nand(struct imx_nand_platform_data *pdata)
+{
+ return imx_add_nand((void *)0xDF003000, pdata);
+}
+
+static inline struct device_d *imx21_add_fb(struct imx_fb_platform_data *pdata)
+{
+ return imx_add_fb((void *)0x10021000, pdata);
+}
+