diff options
author | trem <tremyfr@yahoo.fr> | 2013-09-21 18:13:34 +0200 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2013-10-17 07:20:24 +0200 |
commit | 815a76f2ef08b700da611645c9329f632b681491 (patch) | |
tree | 0f2c46005a79399d10e242e37c0867bffae903ae | |
parent | 183acb700378a8cfc5d50a01a65de93fb2c24586 (diff) | |
download | u-boot-815a76f2ef08b700da611645c9329f632b681491.zip u-boot-815a76f2ef08b700da611645c9329f632b681491.tar.gz u-boot-815a76f2ef08b700da611645c9329f632b681491.tar.bz2 |
i2c: fix init on generic board
On generic board, the i2c init initialize only
one bus. But the new i2c subsystem allow to
manage severals i2c bus. So in the case, instead
of initializing a bus, we just set the current
i2c bus. The initialization will be done in
the i2c command.
Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr>
-rw-r--r-- | common/board_f.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/board_f.c b/common/board_f.c index 0ada1af..f0664bc 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -249,7 +249,11 @@ void dram_init_banksize(void) static int init_func_i2c(void) { puts("I2C: "); +#ifdef CONFIG_SYS_I2C + i2c_init_all(); +#else i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE); +#endif puts("ready\n"); return 0; } |