From aa4ff5606ba243440cab38b8d116fd8a2403e7e2 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 15 Aug 2011 18:20:28 +0200 Subject: ARM i.MX27: Add spi2 support Signed-off-by: Sascha Hauer --- arch/arm/mach-imx/include/mach/devices-imx27.h | 5 +++++ arch/arm/mach-imx/include/mach/imx27-regs.h | 1 + 2 files changed, 6 insertions(+) diff --git a/arch/arm/mach-imx/include/mach/devices-imx27.h b/arch/arm/mach-imx/include/mach/devices-imx27.h index 0518e3b146..3141d96b33 100644 --- a/arch/arm/mach-imx/include/mach/devices-imx27.h +++ b/arch/arm/mach-imx/include/mach/devices-imx27.h @@ -6,6 +6,11 @@ static inline struct device_d *imx27_add_spi0(struct spi_imx_master *pdata) return imx_add_spi((void *)IMX_SPI1_BASE, 0, pdata); } +static inline struct device_d *imx27_add_spi1(struct spi_imx_master *pdata) +{ + return imx_add_spi((void *)IMX_SPI2_BASE, 1, pdata); +} + static inline struct device_d *imx27_add_i2c0(struct i2c_platform_data *pdata) { return imx_add_i2c((void *)IMX_I2C1_BASE, 0, pdata); diff --git a/arch/arm/mach-imx/include/mach/imx27-regs.h b/arch/arm/mach-imx/include/mach/imx27-regs.h index 570b43025c..6754c5a937 100644 --- a/arch/arm/mach-imx/include/mach/imx27-regs.h +++ b/arch/arm/mach-imx/include/mach/imx27-regs.h @@ -17,6 +17,7 @@ #define IMX_UART3_BASE (0x0c000 + IMX_IO_BASE) #define IMX_UART4_BASE (0x0d000 + IMX_IO_BASE) #define IMX_SPI1_BASE (0x0e000 + IMX_IO_BASE) +#define IMX_SPI2_BASE (0x0f000 + IMX_IO_BASE) #define IMX_I2C1_BASE (0x12000 + IMX_IO_BASE) #define IMX_GPIO_BASE (0x15000 + IMX_IO_BASE) #define IMX_TIM4_BASE (0x19000 + IMX_IO_BASE) -- cgit v1.2.3