[U-Boot] MACB and DM9000 support for AT91SAM9260

Haavard Skinnemoen haavard.skinnemoen at atmel.com
Tue Sep 2 15:39:00 CEST 2008


"Frank v/d Schoot" <fvds72 at gmail.com> wrote:
> We have a board with 2 ethernet ports: one on the macb and the other on a
> dm9000-chip. Got them both working under linux but the dm9000 doesn't get a
> MAC-address assigned now. I would like to give the dm9000 its MAC-address in
> U-Boot via a environment-variable. Because I'm new to U-Boot, I do not see
> how I can initialise the dm9000 (eth_init()) and macb (which is initialised
> via eth_init() in eth.c). To me it looks like macb & dm9000 driver are using
> a different type of driver concept. How can this problem be tackled?

I don't know much about dm9000, but the macb driver is initialized by
calling macb_eth_initalize() once for each instance you want to use. So
assuming dm9000 has something similar, you'll just have to call both of
them from board_eth_init() in the order you prefer.

Haavard


More information about the U-Boot mailing list