diff options
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-imx/include/mach/devices-imx27.h | 5 | ||||
-rw-r--r-- | arch/arm/mach-imx/include/mach/imx27-regs.h | 1 |
2 files changed, 6 insertions, 0 deletions
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) |