]> git.sur5r.net Git - u-boot/commitdiff
include/net.h: add max_speed member in struct eth_pdata
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Wed, 13 Jan 2016 13:59:35 +0000 (16:59 +0300)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 28 Jan 2016 18:32:43 +0000 (12:32 -0600)
This will be used for getting max speed mode of Ethernet interface that
a particular MAC supports from Device Tree blob and later being used for
phy configuration.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
include/net.h

index ebed29ad577e898aecfefcfad784510f7ff6ea28..7dbba09d499ec1f0f9506ec5edfff91b33e10441 100644 (file)
@@ -86,11 +86,13 @@ enum eth_state_t {
  * @iobase: The base address of the hardware registers
  * @enetaddr: The Ethernet MAC address that is loaded from EEPROM or env
  * @phy_interface: PHY interface to use - see PHY_INTERFACE_MODE_...
+ * @max_speed: Maximum speed of Ethernet connection supported by MAC
  */
 struct eth_pdata {
        phys_addr_t iobase;
        unsigned char enetaddr[6];
        int phy_interface;
+       int max_speed;
 };
 
 enum eth_recv_flags {