[U-Boot] [PATCH 3/3 V2] dm9000: rework dm9000 to support multiple devices

Tom Rini trini at ti.com
Mon Oct 20 22:00:16 CEST 2014


On Mon, Oct 20, 2014 at 01:11:48PM -0500, Andrew Ruder wrote:
> The DM9000 was hard-coded to only support one DM9000 device.  This patch
> adds a new initialization function - dm9000_initialize_ex() - to support
> registering multiple (and possibly dynamic) numbers of dm9000 devices.
> This patch consists of:
> 
>    * Change the board_info struct to a private struct under eth_device.
>    * Add io address/data address/srom availability information to this
>      private struct.
>    * Replace all uses of DM9000_IO/DM9000_DATA with new members, ensure
>      that the eth_device struct propagates down to all helper functions.
>    * Make dm9000_initialize() call dm9000_initialize_ex() with filled
>      in information from the old preprocessor symbols (DM9000_IO,
>      DM9000_DATA, etc.)

So, on new platforms we call dm9000_initialize with the right IO/DATA
locations for the given device, yes?  I think I'd rather update everyone
else to call things the right and new way, rather than work-around
supporting both.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141020/c99d859f/attachment.pgp>


More information about the U-Boot mailing list