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.h | |
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.h')
-rw-r--r-- | drivers/usb/eth/r8152.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/eth/r8152.h b/drivers/usb/eth/r8152.h index cd44da239d..784ad997ac 100644 --- a/drivers/usb/eth/r8152.h +++ b/drivers/usb/eth/r8152.h @@ -594,6 +594,10 @@ struct r8152 { u16 ocp_base; u8 version; + +#ifdef CONFIG_DM_ETH + struct ueth_data ueth; +#endif }; int generic_ocp_write(struct r8152 *tp, u16 index, u16 byteen, |