[U-Boot] [PATCH v3 2/9] i2c: common changes for multibus/multiadapter support
Daniel Schwierzeck
daniel.schwierzeck at gmail.com
Mon May 6 18:39:35 CEST 2013
2013/5/4 Heiko Schocher <hs at denx.de>
>
> Signed-off-by: Heiko Schocher <hs at denx.de>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Cc: Henrik Nordström <henrik at henriknordstrom.net>
>
> ---
> - changes for v2:
> add comment from Henrik Nordström <henrik at henriknordstrom.net>
> remove wrong line in README
> - rebase against current mainline 178d0cc1a4c73c3341afbeb2a93b172de8c96bd1
> - changes for v3:
> - adapt to the new introduced U_BOOT_I2C_ADAP_COMPLETE define
> - fix Codingstyle issues
> - adapt README
> ---
> README | 74 ++++++++++++++++++++++++-
> arch/arm/lib/board.c | 7 ++-
> arch/blackfin/lib/board.c | 7 +++
> arch/m68k/lib/board.c | 17 +++++-
> arch/mips/lib/board.c | 7 +++
> arch/nds32/lib/board.c | 10 +++-
> arch/powerpc/cpu/mpc8xx/video.c | 4 ++
> arch/powerpc/lib/board.c | 12 +++-
> common/cmd_date.c | 9 +++
> common/cmd_dtt.c | 9 +++
> common/cmd_i2c.c | 120 ++++++++++++++++++++++++++--------------
> common/env_eeprom.c | 14 +++++
> common/stdio.c | 13 ++++-
> include/i2c.h | 9 ---
> 14 Dateien geändert, 251 Zeilen hinzugefügt(+), 61 Zeilen entfernt(-)
>
...
>
>
> diff --git a/arch/mips/lib/board.c b/arch/mips/lib/board.c
> index f19f198..fedac71 100644
> --- a/arch/mips/lib/board.c
> +++ b/arch/mips/lib/board.c
> @@ -36,6 +36,9 @@
> #ifdef CONFIG_BITBANGMII
> #include <miiphy.h>
> #endif
> +#if defined(CONFIG_SYS_I2C)
> +#include <i2c.h>
> +#endif
>
> DECLARE_GLOBAL_DATA_PTR;
>
> @@ -296,6 +299,10 @@ void board_init_r(gd_t *id, ulong dest_addr)
> onenand_init();
> #endif
>
> +#if defined(CONFIG_SYS_I2C)
> + i2c_reloc_fixup();
> +#endif
> +
>
MIPS doesn't need manual relocation fixups anymore. So you could use
i2c_init_all() here too.
--
Best regards,
Daniel
More information about the U-Boot
mailing list