From a0c76b0d7cefead825eabe77ec04de209e496102 Mon Sep 17 00:00:00 2001 From: Alexander Shiyan Date: Thu, 17 May 2012 12:35:38 +0400 Subject: 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 Signed-off-by: Sascha Hauer --- arch/arm/mach-imx/include/mach/devices-imx51.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'arch/arm/mach-imx/include/mach/devices-imx51.h') 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) -- cgit v1.2.3