]> git.sur5r.net Git - u-boot/commit
net: usb: r8152: Add DM support
authorStefan Roese <sr@denx.de>
Wed, 29 Jun 2016 05:58:05 +0000 (07:58 +0200)
committerMarek Vasut <marex@denx.de>
Sun, 7 Aug 2016 19:55:42 +0000 (21:55 +0200)
commit6688452a3bf80a1a131047579af8f881dd2e32c3
tree9b4d96739dc38eab8311fd4d33039d9a09de5c59
parentbb42fb4f102883dafcb14aa585cb45dd13228b4f
net: usb: r8152: Add DM support

Add support for driver model, so that CONFIG_DM_ETH can be defined and
used with this driver.

This patch also adds the read_rom_hwaddr() callback so that the ROM MAC
address will be used to the DM part of this driver.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Stephen Warren <swarren@nvidia.com>
Cc: Ted Chen <tedchen@realtek.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Cc: Joe Hershberger <joe.hershberger@ni.com>
drivers/usb/eth/r8152.c
drivers/usb/eth/r8152.h
drivers/usb/eth/r8152_fw.c