[U-Boot] [PATCH v3 2/9] i2c: common changes for multibus/multiadapter support
Heiko Schocher
hs at denx.de
Tue May 7 15:05:38 CEST 2013
Hello Daniel,
Am 06.05.2013 18:39, schrieb Daniel Schwierzeck:
> 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.
Ok, removed this ... Hmm.. can you test this changes on a
mips board?
bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
More information about the U-Boot
mailing list