summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-08-15 18:20:28 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-08-24 19:44:06 +0200
commitaa4ff5606ba243440cab38b8d116fd8a2403e7e2 (patch)
treedc247ef08ec9639f78dbc3f9e469f341730d34ce
parent0f7139be32afc6199a15ac7b4a5b9c325bf9a2d5 (diff)
downloadbarebox-aa4ff5606ba243440cab38b8d116fd8a2403e7e2.tar.gz
barebox-aa4ff5606ba243440cab38b8d116fd8a2403e7e2.tar.xz
ARM i.MX27: Add spi2 support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/mach-imx/include/mach/devices-imx27.h5
-rw-r--r--arch/arm/mach-imx/include/mach/imx27-regs.h1
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 0518e3b14..3141d96b3 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 570b43025..6754c5a93 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)