summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/include/mach/devices-imx27.h
diff options
context:
space:
mode:
authorshc@milas.spb.ru <shc@milas.spb.ru>2011-08-12 13:21:56 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2011-08-17 09:34:55 +0200
commitddbbeee82214c5edcdeb7da0a1d480d1d32104d0 (patch)
treeef5a9fc720f1f4beec657614f3fb6d50547189c2 /arch/arm/mach-imx/include/mach/devices-imx27.h
parentb7a3e559158af9c18a30d260f37aa0e4c6525cbc (diff)
downloadbarebox-ddbbeee82214c5edcdeb7da0a1d480d1d32104d0.tar.gz
barebox-ddbbeee82214c5edcdeb7da0a1d480d1d32104d0.tar.xz
I2C support to PCM-038 board
Sascha Hauer <s.hauer@pengutronix.de> wrote .. > On Thu, Aug 11, 2011 at 02:37:05PM +0400, Alexander Shiyan wrote: > > Hello. > > > > Please review and apply this simple patch. ... > Please remove the #ifdef CONFIG_I2C OK. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/include/mach/devices-imx27.h')
-rw-r--r--arch/arm/mach-imx/include/mach/devices-imx27.h5
1 files changed, 5 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 0511eb5d21..0518e3b146 100644
--- a/arch/arm/mach-imx/include/mach/devices-imx27.h
+++ b/arch/arm/mach-imx/include/mach/devices-imx27.h
@@ -11,6 +11,11 @@ static inline struct device_d *imx27_add_i2c0(struct i2c_platform_data *pdata)
return imx_add_i2c((void *)IMX_I2C1_BASE, 0, pdata);
}
+static inline struct device_d *imx27_add_i2c1(struct i2c_platform_data *pdata)
+{
+ return imx_add_i2c((void *)IMX_I2C2_BASE, 1, pdata);
+}
+
static inline struct device_d *imx27_add_uart0(void)
{
return imx_add_uart((void *)IMX_UART1_BASE, 0);