From ddbbeee82214c5edcdeb7da0a1d480d1d32104d0 Mon Sep 17 00:00:00 2001 From: "shc@milas.spb.ru" Date: Fri, 12 Aug 2011 13:21:56 +0400 Subject: I2C support to PCM-038 board Sascha Hauer 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 --- arch/arm/mach-imx/include/mach/devices-imx27.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'arch/arm/mach-imx/include/mach/devices-imx27.h') 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); -- cgit v1.2.3