diff options
author | Stefan Roese <sr@denx.de> | 2016-06-29 07:58:05 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2016-08-07 21:55:42 +0200 |
commit | 6688452a3bf80a1a131047579af8f881dd2e32c3 (patch) | |
tree | 9b4d96739dc38eab8311fd4d33039d9a09de5c59 /drivers/usb/eth/r8152_fw.c | |
parent | bb42fb4f102883dafcb14aa585cb45dd13228b4f (diff) |
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>
Diffstat (limited to 'drivers/usb/eth/r8152_fw.c')
-rw-r--r-- | drivers/usb/eth/r8152_fw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/eth/r8152_fw.c b/drivers/usb/eth/r8152_fw.c index f820b16afc..b6c82283a8 100644 --- a/drivers/usb/eth/r8152_fw.c +++ b/drivers/usb/eth/r8152_fw.c @@ -5,7 +5,9 @@ * */ #include <common.h> +#include <dm.h> #include <errno.h> +#include "usb_ether.h" #include "r8152.h" static u8 r8152b_pla_patch_a[] = { |