diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-07-31 14:07:43 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-07-31 19:59:50 +0200 |
commit | 5f7811292054b39a82109da66e8d1e79e862b758 (patch) | |
tree | c72b8c9e2781c194b7c234c9e0613f139b7063f3 /arch/arm/mach-imx/include/mach/devices-imx6.h | |
parent | e8bbacab05d8a8e7e86e31e9208457409bcbb1b0 (diff) | |
download | barebox-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.h | 5 |
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); +} |