diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2011-02-08 14:10:13 +0100 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-02-08 14:10:13 +0100 |
commit | e377e1378cd3e3421dc7d3c500a5f41b93fad64d (patch) | |
tree | e86452448ece19b34aec76fdd087bd4c73d7b7a4 /recipes-bsp/u-boot/u-boot/0001-OMAP3-enable-i2c-bus-switching-for-Beagle-and-Overo.patch | |
parent | 46f000fb0e5fc2ee83efef934163ca3f56559ca2 (diff) | |
download | meta-ti-e377e1378cd3e3421dc7d3c500a5f41b93fad64d.tar.gz |
u-boot git: sync with OE for beagleboard
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'recipes-bsp/u-boot/u-boot/0001-OMAP3-enable-i2c-bus-switching-for-Beagle-and-Overo.patch')
-rw-r--r-- | recipes-bsp/u-boot/u-boot/0001-OMAP3-enable-i2c-bus-switching-for-Beagle-and-Overo.patch | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/recipes-bsp/u-boot/u-boot/0001-OMAP3-enable-i2c-bus-switching-for-Beagle-and-Overo.patch b/recipes-bsp/u-boot/u-boot/0001-OMAP3-enable-i2c-bus-switching-for-Beagle-and-Overo.patch deleted file mode 100644 index c718191a..00000000 --- a/recipes-bsp/u-boot/u-boot/0001-OMAP3-enable-i2c-bus-switching-for-Beagle-and-Overo.patch +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | From 9c1581dd7f6057d5d25d6b2dcf8bacef95d526d2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Syed Mohammed Khasim <khasim@ti.com> | ||
3 | Date: Mon, 18 Jan 2010 18:11:14 +0530 | ||
4 | Subject: [PATCH] Enable I2C bus switching | ||
5 | |||
6 | OMAP3 supports Multiple I2C channels, this patch allows | ||
7 | us to use i2c dev <bus no> command to switch between busses. | ||
8 | |||
9 | Signed-off-by: Syed Mohammed Khasim <khasim@ti.com> | ||
10 | Acked-by: Heiko Schocher <hs@denx.de> | ||
11 | (cherry picked from commit 9bb1c3501c8f098dac6e224c99e409ebf92b0ab9) | ||
12 | --- | ||
13 | drivers/i2c/omap24xx_i2c.c | 5 +++++ | ||
14 | include/configs/omap3_beagle.h | 6 ++++++ | ||
15 | 2 files changed, 11 insertions(+), 0 deletions(-) | ||
16 | |||
17 | diff --git a/drivers/i2c/omap24xx_i2c.c b/drivers/i2c/omap24xx_i2c.c | ||
18 | index f00468d..0af230d 100644 | ||
19 | --- a/drivers/i2c/omap24xx_i2c.c | ||
20 | +++ b/drivers/i2c/omap24xx_i2c.c | ||
21 | @@ -435,3 +435,8 @@ int i2c_set_bus_num(unsigned int bus) | ||
22 | |||
23 | return 0; | ||
24 | } | ||
25 | + | ||
26 | +int i2c_get_bus_num(void) | ||
27 | +{ | ||
28 | + return (int) current_bus; | ||
29 | +} | ||
30 | diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h | ||
31 | index ad73a66..1a76004 100644 | ||
32 | --- a/include/configs/omap3_beagle.h | ||
33 | +++ b/include/configs/omap3_beagle.h | ||
34 | @@ -113,6 +113,12 @@ | ||
35 | /* DDR - I use Micron DDR */ | ||
36 | #define CONFIG_OMAP3_MICRON_DDR 1 | ||
37 | |||
38 | +/* Enable Multi Bus support for I2C */ | ||
39 | +#define CONFIG_I2C_MULTI_BUS 1 | ||
40 | + | ||
41 | +/* Probe all devices */ | ||
42 | +#define CONFIG_SYS_I2C_NOPROBES {0x0, 0x0} | ||
43 | + | ||
44 | /* USB */ | ||
45 | #define CONFIG_MUSB_UDC 1 | ||
46 | #define CONFIG_USB_OMAP3 1 | ||
47 | -- | ||
48 | 1.6.1 | ||
49 | |||