summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/include/mach/devices-imx6.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-07-31 14:07:43 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-07-31 19:59:50 +0200
commit5f7811292054b39a82109da66e8d1e79e862b758 (patch)
treec72b8c9e2781c194b7c234c9e0613f139b7063f3 /arch/arm/mach-imx/include/mach/devices-imx6.h
parente8bbacab05d8a8e7e86e31e9208457409bcbb1b0 (diff)
downloadbarebox-5f7811292054b39a82109da66e8d1e79e862b758.tar.gz
barebox-5f7811292054b39a82109da66e8d1e79e862b758.tar.xz
SPI i.MX: Add support for i.MX6
The i.MX5 does not have a valid function to get the spi clock. This patch introduces a function for i.MX6, and moves the bogus spi clock speed to the speed-imx5*.c. Not nice, but preserves the current status quo for i.MX5 Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/include/mach/devices-imx6.h')
-rw-r--r--arch/arm/mach-imx/include/mach/devices-imx6.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/include/mach/devices-imx6.h b/arch/arm/mach-imx/include/mach/devices-imx6.h
index e4a72accd6..ca063c5459 100644
--- a/arch/arm/mach-imx/include/mach/devices-imx6.h
+++ b/arch/arm/mach-imx/include/mach/devices-imx6.h
@@ -44,3 +44,8 @@ static inline struct device_d *imx6_add_fec(struct fec_platform_data *pdata)
{
return imx_add_fec((void *)MX6_ENET_BASE_ADDR, pdata);
}
+
+static inline struct device_d *imx6_add_spi0(struct spi_imx_master *pdata)
+{
+ return imx_add_spi((void *)MX6_ECSPI1_BASE_ADDR, 0, pdata);
+}