
On Thursday 12 November 2009 04:13:48 Mike Rapoport wrote:
On Thu, Nov 12, 2009 at 12:50 AM, Mike Frysinger wrote:
here's my [compile] tested change as the board i have with this part isnt readily accessible atm ...
I've tested your changes, MAC register dumps works Ok. I needed to make some changes to make it work, see the comments below.
--- a/examples/standalone/smc911x_eeprom.c +++ b/examples/standalone/smc911x_eeprom.c @@ -17,8 +17,8 @@ #include <common.h> #include <exports.h>
-#ifdef CONFIG_DRIVER_SMC911X
+/* the smc911x.h gets base addr through eth_device' iobase */ +struct eth_device { const char *name; unsigned long iobase; };
Needed to add 'void *priv' needed for smc911x_detect_chip, otherwise it does not compile with the latest U-Boot.
i wrote it against last release which didnt need this. looking at smc911x.h, obviously priv is needed now and shouldnt be a problem adding it. -mike