summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx5
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-09-10 16:57:07 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-10-01 09:32:15 +0200
commit9f0c11ee67d9a5ab76c27d2f9dbdd9ee85fbce10 (patch)
treeaabb8a4851d52e06ba7fb40e8032e110dd37988b /arch/arm/mach-mx5
parentab5605037c119f1bde0f01786ede16d0ea5dcd8a (diff)
downloadlinux-9f0c11ee67d9a5ab76c27d2f9dbdd9ee85fbce10.tar.gz
linux-9f0c11ee67d9a5ab76c27d2f9dbdd9ee85fbce10.tar.bz2
linux-9f0c11ee67d9a5ab76c27d2f9dbdd9ee85fbce10.zip
ARM: mx5: add spi_imx device registration
Acked-by: Jason Wang <jason77.wang@gmail.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx5')
-rw-r--r--arch/arm/mach-mx5/devices-imx51.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-mx5/devices-imx51.h b/arch/arm/mach-mx5/devices-imx51.h
index a3cc3834c9fe..09d2b5c8b4f5 100644
--- a/arch/arm/mach-mx5/devices-imx51.h
+++ b/arch/arm/mach-mx5/devices-imx51.h
@@ -12,3 +12,11 @@
extern const struct imx_imx_i2c_data imx51_imx_i2c_data[] __initconst;
#define imx51_add_imx_i2c(id, pdata) \
imx_add_imx_i2c(&imx51_imx_i2c_data[id], pdata)
+
+extern const struct imx_spi_imx_data imx51_cspi_data __initconst;
+#define imx51_add_cspi(pdata) \
+ imx_add_spi_imx(&imx51_cspi_data, pdata)
+
+extern const struct imx_spi_imx_data imx51_ecspi_data[] __initconst;
+#define imx51_add_ecspi(id, pdata) \
+ imx_add_spi_imx(&imx51_ecspi_data[id], pdata)