summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Nikolaus Schaller <hns@goldelico.com>2012-12-03 17:13:38 +0100
committerH. Nikolaus Schaller <hns@goldelico.com>2012-12-03 17:13:38 +0100
commitac9535dbba6aba13e2a4880b1b9135d76448456a (patch)
tree05827167fb382ce4e91184d0a82d255ac55b0d68
parent457702a457c3c025c8642e1473e10e8000a89397 (diff)
downloadbootable_bootloader_goldelico_gta04-ac9535dbba6aba13e2a4880b1b9135d76448456a.zip
bootable_bootloader_goldelico_gta04-ac9535dbba6aba13e2a4880b1b9135d76448456a.tar.gz
bootable_bootloader_goldelico_gta04-ac9535dbba6aba13e2a4880b1b9135d76448456a.tar.bz2
harmonized I2C bus numbering code
-rw-r--r--u-boot/board/goldelico/gta04/gta04.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/u-boot/board/goldelico/gta04/gta04.c b/u-boot/board/goldelico/gta04/gta04.c
index 92df3ef..95865dd 100644
--- a/u-boot/board/goldelico/gta04/gta04.c
+++ b/u-boot/board/goldelico/gta04/gta04.c
@@ -149,7 +149,7 @@ int misc_init_r(void)
* have oscillated until the battery is available
* this makes the ITG3200 Power On Reset fail
*/
- i2c_set_bus_num(1); // I2C2
+ i2c_set_bus_num(TCA6507_BUS); // I2C2
udelay(10*1000); // wait a little until power stabilizes
if(i2c_probe(0x68)) { // ITG3200 does not respond
printf("ITG3200 does not respond\n");