1 From fc313d72cbfd788f23a7623d0b8cd9c2af329b7b Mon Sep 17 00:00:00 2001
2 From: Steve Sakoman <steve@sakoman.com>
3 Date: Wed, 10 Feb 2010 13:39:40 -0800
4 Subject: [PATCH 01/37] OMAP3: enable i2c bus switching for Beagle and Overo
7 drivers/i2c/omap24xx_i2c.c | 6 ++++++
8 include/configs/omap3_beagle.h | 1 +
9 include/configs/omap3_overo.h | 1 +
10 3 files changed, 8 insertions(+), 0 deletions(-)
12 diff --git a/drivers/i2c/omap24xx_i2c.c b/drivers/i2c/omap24xx_i2c.c
13 index ff18991..30a8b4c 100644
14 --- a/drivers/i2c/omap24xx_i2c.c
15 +++ b/drivers/i2c/omap24xx_i2c.c
16 @@ -435,3 +435,9 @@ int i2c_set_bus_num(unsigned int bus)
21 +int i2c_get_bus_num(void)
23 + return (int) current_bus;
26 diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h
27 index 08d79ac..87e3dd0 100644
28 --- a/include/configs/omap3_beagle.h
29 +++ b/include/configs/omap3_beagle.h
31 #define CONFIG_SYS_I2C_BUS 0
32 #define CONFIG_SYS_I2C_BUS_SELECT 1
33 #define CONFIG_DRIVER_OMAP34XX_I2C 1
34 +#define CONFIG_I2C_MULTI_BUS 1
38 diff --git a/include/configs/omap3_overo.h b/include/configs/omap3_overo.h
39 index a43500b..0d24758 100644
40 --- a/include/configs/omap3_overo.h
41 +++ b/include/configs/omap3_overo.h
43 #define CONFIG_SYS_I2C_BUS 0
44 #define CONFIG_SYS_I2C_BUS_SELECT 1
45 #define CONFIG_DRIVER_OMAP34XX_I2C 1
46 +#define CONFIG_I2C_MULTI_BUS 1