diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2012-05-17 12:35:38 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-05-17 12:14:26 +0200 |
commit | a0c76b0d7cefead825eabe77ec04de209e496102 (patch) | |
tree | dde6e600aac8a5f99461cbdde8498713791c2f8d /arch/arm/mach-imx/include/mach/devices-imx51.h | |
parent | e741110f5a4089f22dbaae97443753acd4851bdd (diff) | |
download | barebox-a0c76b0d7cefead825eabe77ec04de209e496102.tar.gz barebox-a0c76b0d7cefead825eabe77ec04de209e496102.tar.xz |
i.MX51: Changed naming registers and procedures for SPI
This patch reflects real naming of SPI by Freescale.
We have two ECSPI channels and one CSPI.
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/include/mach/devices-imx51.h')
-rw-r--r-- | arch/arm/mach-imx/include/mach/devices-imx51.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-imx/include/mach/devices-imx51.h b/arch/arm/mach-imx/include/mach/devices-imx51.h index 9ad6476aa0..7ba49a426d 100644 --- a/arch/arm/mach-imx/include/mach/devices-imx51.h +++ b/arch/arm/mach-imx/include/mach/devices-imx51.h @@ -4,17 +4,17 @@ static inline struct device_d *imx51_add_spi0(struct spi_imx_master *pdata) { - return imx_add_spi((void *)MX51_CSPI1_BASE_ADDR, 0, pdata); + return imx_add_spi((void *)MX51_ECSPI1_BASE_ADDR, 0, pdata); } static inline struct device_d *imx51_add_spi1(struct spi_imx_master *pdata) { - return imx_add_spi((void *)MX51_CSPI2_BASE_ADDR, 1, pdata); + return imx_add_spi((void *)MX51_ECSPI2_BASE_ADDR, 1, pdata); } -static inline struct device_d *imx51_add_spi2(struct spi_imx_master *pdata) +static inline struct device_d *imx51_add_cspi(struct spi_imx_master *pdata) { - return imx_add_spi((void *)MX51_CSPI3_BASE_ADDR, 2, pdata); + return imx_add_spi((void *)MX51_CSPI_BASE_ADDR, 2, pdata); } static inline struct device_d *imx51_add_i2c0(struct i2c_platform_data *pdata) |