From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Gardiner Date: Mon, 13 Sep 2010 09:07:43 -0400 Subject: [U-Boot] [PATCH] da850evm: basic MII EMAC support In-Reply-To: <4C8D9E65.3040002@gmail.com> References: <1284149416-941-1-git-send-email-bengardiner@nanometrics.ca> <4C8D9E65.3040002@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Ben, On Sun, Sep 12, 2010 at 11:45 PM, Ben Warren wrote: > Please consider doing this differently. ?If you change the driver to make > 'davinci_eth_set_mac_addr()' meet the signature of > 'eth_device->write_hwaddr()', all the environment handling is done > automagically. ?Let me know if you're confused and I'll provide more > guidance. Thanks for pointing me in the right direction here. I think I get it now; please correct me if I am wrong: board_eth_init should assign the eth_device->write_hwaddr() function pointer then eth_initialize() will handle calling board_eth_init and will set the MAC address from the ethaddr env var if the MAC address in the eth_device struct is all-zeroes. Best Regards, Ben Gardiner --- Nanometrics Inc. http://www.nanometrics.ca