Skip to content
Snippets Groups Projects
  1. Sep 05, 2011
  2. Sep 04, 2011
    • Michal Simek's avatar
      net: Check network device driver name · 58c583b6
      Michal Simek authored
      
      If name is longer than allocated space NAMESIZE
      mac address is rewritten which show error
      message like:
      
      Error message:
      Warning: Xlltemac.87000000 MAC addresses don't match:
      Address in SROM is         30:00:00:00:00:00
      Address in environment is  00:0a:35:00:6a:04
      
      NAMESIZE contains Driver name + zero terminated character.
      
      Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
      58c583b6
  3. Aug 08, 2011
  4. Aug 03, 2011
  5. Apr 20, 2011
    • Andy Fleming's avatar
      Create PHY Lib for U-Boot · 5f184715
      Andy Fleming authored
      Extends the mii_dev structure to participate in a full-blown MDIO and
      PHY driver scheme.  The mii_dev structure and miiphy calls are modified
      in such a way to allow the original mii command and miiphy
      infrastructure to work as before, but also to support a new set of APIs
      which allow (among other things) sharing of PHY driver code and 10G support
      
      The mii command will continue to support normal PHY management functions
      (Clause 22 of 802.3), but will not be changed to support 10G
      (Clause 45).
      
      The basic design is similar to PHY Lib from Linux, but simplified for
      U-Boot's network and driver infrastructure.
      
      We now have MDIO drivers and PHY drivers
      
      An MDIO driver provides:
      read
      write
      reset
      
      A PHY driver provides:
      (optionally): probe
      config - initial setup, starting of auto-negotiation
      startup - waiting for AN, and reading link state
      shutdown - any cleanup needed
      
      The ethernet drivers interact with the PHY Lib using these functions:
      phy_connect()
      phy_config()
      phy_startup()
      phy_shutdown()
      
      Each PHY driver can be configured separately, or all at once using
      config_phylib_all_drivers.h (added in the patch which adds the drivers)
      
      We also provide generic drivers for Clause 22 (10/100/1000), and
      Clause 45 (10G) PHYs.
      
      We also implement phy_reset(), and call it in phy_connect(). Because
      phy_reset() is essentially the same as miiphy_reset, but:
      a) must support 10G PHYs, and
      b) should use the phylib primitives,
      
      we implement miiphy_reset, using phy_reset(), but only when
      CONFIG_PHYLIB is set. Otherwise, we just use the old version. In this
      way, we save on compile size, even if we don't manage to save code size.
      
      Pulled ethtool.h and mdio.h from:
      git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
      
      
      782d640afd15af7a1faf01cfe566ca4ac511319d
      With many, many deletions so as to enable compilation under u-boot
      
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
      Acked-by: default avatarDetlev Zundel <dzu@denx.de>
      5f184715
  6. Feb 19, 2011
  7. Nov 14, 2010
    • Ben Warren's avatar
      Net: clarify board/cpu_eth_init calls · 8ad25bf8
      Ben Warren authored
      
      This has always been confusing, and the idea of these functions returning the
      number of interfaces initialized was half-baked and ultimately pointless.
      Instead, act more like regular functions and return < 0 on failure, >= 0 on
      success.
      
      This change shouldn't break anything.
      
      Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
      8ad25bf8
  8. Oct 12, 2010
  9. Aug 09, 2010
    • Ben Warren's avatar
      Fix compile warnings for const correctness · d7fb9bcf
      Ben Warren authored
      
      Commit 6e37b1a3a25004d3df5867de49fff6b3fc9c4f04 modifies several net calls
      to take a (const char *) parameter instead of (char *), but in some cases
      the modified functions call other functions taking (char *).  The end result
      is warnings about discarding the const qualifier.
      
      This patch fixes these other function signatures.
      
      Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
      d7fb9bcf
  10. Jul 12, 2010
  11. Jun 21, 2010
  12. Jun 20, 2010
  13. May 03, 2010
  14. Dec 14, 2009
  15. Aug 08, 2009
  16. Jul 23, 2009
  17. Jun 15, 2009
  18. May 15, 2009
  19. Apr 27, 2009
  20. Mar 20, 2009
    • Mike Frysinger's avatar
      net: new utility functions for working with enetaddr's · 3f6e6993
      Mike Frysinger authored
      
      Declare new utility functions for converting between the environment
      variables (eth*addr) and the binary MAC address representation.  This way
      we can unify all the random places that already do this kind of thing.
      
      The functions in question:
      	eth_parse_enetaddr - "..." -> {...}
      	eth_getenv_enetaddr - env -> {...}
      	eth_setenv_enetaddr - {...} -> env
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      CC: Ben Warren <biggerbadderben@gmail.com>
      3f6e6993
  21. Feb 23, 2009
  22. Feb 17, 2009
  23. Nov 10, 2008
  24. Oct 18, 2008
  25. Sep 03, 2008
Loading