From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Tue, 07 May 2013 15:05:38 +0200 Subject: [U-Boot] [PATCH v3 2/9] i2c: common changes for multibus/multiadapter support In-Reply-To: References: <1367668903-29653-1-git-send-email-hs@denx.de> <1367668903-29653-3-git-send-email-hs@denx.de> Message-ID: <5188FC22.6090802@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Daniel, Am 06.05.2013 18:39, schrieb Daniel Schwierzeck: > 2013/5/4 Heiko Schocher >> >> Signed-off-by: Heiko Schocher >> Signed-off-by: Simon Glass >> Cc: Henrik Nordstr?m >> >> --- >> - changes for v2: >> add comment from Henrik Nordstr?m >> 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 >> #endif >> +#if defined(CONFIG_SYS_I2C) >> +#include >> +#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