
On Sat, 2 Feb 2013 12:05:02 +0100, Albert ARIBAUD albert.u.boot@aribaud.net wrote:
Hi Marek,
On Fri, 1 Feb 2013 10:00:55 +0100, Marek Vasut marex@denx.de wrote:
Dear Heiko Schocher,
Hello,
I am currently trying to get rid of some externs in the new i2c multibus approach, specially this externs:
http://git.denx.de/?p=u-boot/u-boot-i2c.git;a=blob;f=drivers/i2c/i2c_core.c ;h=2a559c9d81a945f219eab49d11e70c0ac4a6d6a4;hb=83ffd31c590dd5aedfef0c195b1f fc406e6d0e37#l31
I tried to use the ll_entry_* defines see: include/linker_lists.h so the compiler will collect all i2c adapter(s), and no need to declare in the config file a list of used adapters. This approach works fine for using i2c after relocation, but did not work before, which is a must have for i2c ... Therefore I describe (Sorry, for the long EMail) here, whats I see on an arm926ejs based board, using eldk 5.2 with
Albert has a patch for that, CCed.
II will send out the patch this afternoon; before 14:00 GMT+1 if I'm lucky, around 17:00 GMT+1 if not.
Rebased my patch on current u-boot/master required some non-trivial code changes, so I am currently running regression on ARM, and will run it also at least on PPC; then I'll submit the patch, most certainly near the end of the afternoon. Currently it is a one-patch series as I don't think I can actually split it much without badly preventing bisection, but let's just start with that and go forward with testing and reviewing.
Amicalement,