- Sep 05, 2011
-
-
Simon Glass authored
This fixes "Warning: failed to set MAC address" on platforms which rely on an 'ethaddr' environment variable to set the MAC address. This bug was introduced by this commit: 7616e785 Add Ethernet hardware MAC address framework to usbnet Signed-off-by:
Simon Glass <sjg@chromium.org> Tested-by:
Kumar Gala <galak@kernel.crashing.org> Tested-by:
Michal Simek <monstr@monstr.eu> Tested-by:
Heiko Schocher <hs@denx.de>
-
- Sep 04, 2011
-
-
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:
Michal Simek <monstr@monstr.eu>
-
- Aug 08, 2011
-
-
Simon Glass authored
Built-in Ethernet adapters support setting the mac address by means of a ethaddr environment variable for each interface (ethaddr, eth1addr, eth2addr). This adds similar support to the USB network side, using the names usbethaddr, usbeth1addr, etc. They are kept separate since we don't want a USB device taking the MAC address of a built-in device or vice versa. Signed-off-by:
Simon Glass <sjg@chromium.org> Tested-by:
Eric Bénard <eric@eukrea.com>
-
- Aug 03, 2011
-
-
Andreas Bießmann authored
All available at91rm9200 boards have migrated to ar920t/at91 and therefore to CONFIG_NET_MULTI. The obsolete at91rm9200_miiphy_initialize() was removed in "ARM: remove obsolete at91rm9200". Signed-off-by:
Andreas Bießmann <andreas.devel@googlemail.com>
-
- Apr 20, 2011
-
-
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:
Andy Fleming <afleming@freescale.com> Signed-off-by:
Kumar Gala <galak@kernel.crashing.org> Acked-by:
Detlev Zundel <dzu@denx.de>
-
- Feb 19, 2011
-
-
Remy Bohmer authored
Signed-off-by:
Remy Bohmer <linux@bohmer.net>
-
Simon Glass authored
This adds support for using USB Ethernet dongles in host mode. This is just the framework - drivers will come later. A new config option called CONFIG_USB_HOST_ETHER can be defined in board config files to switch this on. The was originally written by NVIDIA and was cleaned up for release by the Chromium authors. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Nov 14, 2010
-
-
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:
Ben Warren <biggerbadderben@gmail.com>
-
- Oct 12, 2010
-
-
Ben Warren authored
All are within an #ifdef CONFIG_NET_MULTI block already Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Aug 09, 2010
-
-
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:
Ben Warren <biggerbadderben@gmail.com>
-
- Jul 12, 2010
-
-
Mike Frysinger authored
Some commands operate on eth device names (like 'mii'), but those cannot be passed on the command line as one argument. So detect devices like these and warn about them so someone will fix it. Signed-off-by:
Mike Frysinger <vapier@gentoo.org> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Jun 21, 2010
-
-
Wolfgang Denk authored
Move it inside the #ifdef CONFIG_NET_MULTI to avoid eth.c:64: warning: 'eth_mac_skip' defined but not used messages from a number of old, non-CONFIG_NET_MULTI boards. Signed-off-by:
Wolfgang Denk <wd@denx.de> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Jun 20, 2010
-
-
Wolfgang Denk authored
Move it inside the #ifdef CONFIG_NET_MULTI to avoid eth.c:64: warning: 'eth_mac_skip' defined but not used messages from anumber of old, non-CONFIG_NET_MULTI boards. Signed-off-by:
Wolfgang Denk <wd@denx.de> Cc: Ben Warren <biggerbadderben@gmail.com>
-
- May 03, 2010
-
-
Ben Warren authored
Add a new function to the eth_device struct for programming a network controller's hardware address. After all network devices have been initialized and the proper MAC address for each has been determined, make a device driver call to program the address into the device. Only device instances with valid unicast addresses will be programmed. Signed-off-by:
Ben Warren <biggerbadderben@gmail.com> Acked-by:
Detlev Zundel <dzu@denx.de> Tested-by:
Prafulla Wadaskar <prafulla@marvell.com> Tested-by:
Heiko Schocher <hs@denx.de> Tested-by:
Thomas Chou <thomas@wytron.com.tw>
-
Detlev Zundel authored
Signed-off-by:
Detlev Zundel <dzu@denx.de> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Dec 14, 2009
-
-
Mike Frysinger authored
Signed-off-by:
Mike Frysinger <vapier@gentoo.org> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Aug 08, 2009
-
-
Mike Frysinger authored
In the previous enetaddr refactoring, the assumption with commit 56b555a6 was that the eth layer would handle the env -> device enetaddr syncing. This was not the case as eth_initialize() is called only once and the sync occurs there. So make sure the eth_init() function does the env -> device sync with every network init. Reported-by:
Andrzej Wolski <awolski@poczta.fm> Signed-off-by:
Mike Frysinger <vapier@gentoo.org> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
Robin Getz authored
Minor ./net cleanups - no functional changes - change #ifdef DEBUG printf(); #endif to just debug() - changed __FUNCTION__ to __func__ - got rid of extra whitespace between function and opening brace - removed unnecessary braces on if statements gcc dead code elimination should make this functionally/size equivalent when DEBUG is not defined. (confirmed on Blackfin, with gcc 4.3.3). Signed-off-by:
Robin Getz <rgetz@blackfin.uclinux.org> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Jul 23, 2009
-
-
Ben Warren authored
Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Jun 15, 2009
-
-
Ben Warren authored
Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
Ben Warren authored
Added CONFIG_NET_MULTI to all Davinci boards Removed all calls to Davinci network driver from board code Added cpu_eth_init() to cpu/arm926ejs/cpu.c Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- May 15, 2009
-
-
Heiko Schocher authored
Fix some issues introduced from commit: 2f70c49e suggested by Mike Frysinger. - added some comment for the env_id variable in common_cmd_nvedit.c - moved some variables in fn scope instead of file scope - NetInitLoop now static void Signed-off-by:
Heiko Schocher <hs@denx.de> Acked-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Apr 27, 2009
-
-
Peter Tyser authored
__attribute__ follows gcc's documented syntax and is generally more common than __attribute. This change is only asthetic and should not affect functionality. Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
- Mar 20, 2009
-
-
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:
Mike Frysinger <vapier@gentoo.org> CC: Ben Warren <biggerbadderben@gmail.com>
-
- Feb 23, 2009
-
-
Heiko Schocher authored
NetLoop polls every cycle with getenv some environment variables. This is horribly slow, especially when the environment is big. This patch reads only the environment variables in NetLoop, when they were changed. Also moved the init part of the NetLoop function in a seperate function. Signed-off-by:
Heiko Schocher <hs@denx.de> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Feb 17, 2009
-
-
Andy Fleming authored
This allows code to iterate through the ethernet devices Signed-off-by:
Andy Fleming <afleming@freescale.com>
-
- Nov 10, 2008
-
-
Ben Warren authored
Removed initialization of the driver from net/eth.c Signed-off-by:
Ben Warren <biggerbadderben@gmail.com> Acked-by:
Stefan Roese <sr@denx.de>
-
Ben Warren authored
All in-tree IBM/AMCC PPC4xx boards using the EMAC get this new CONFIG Signed-off-by:
Ben Warren <biggerbadderben@gmail.com> Acked-by:
Stefan Roese <sr@denx.de>
-
Ben Warren authored
Removed initialization of the driver from net/eth.c Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
Ben Warren authored
Removed initialization of the driver from net/eth.c Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
Ben Warren authored
Removed initialization of the driver from net/eth.c Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
Ben Warren authored
Affected boards: Several MPC8xx boards Several MPC8260/MPC8272 boards Several MPC85xx boards Removed initialization of the driver from net/eth.c Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
Shinya Kuribayashi authored
This patch will move au1x00_eth_initialize from net/eth.c to cpu_eth_init as a part of ongoing eth_initialize cleanup work. The function ret value is also fixed as it should be negative on fail. Signed-off-by:
Shinya Kuribayashi <skuribay@ruby.dti.ne.jp> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
Ben Warren authored
Also, removed the driver initialization from net/eth.c Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Oct 18, 2008
-
-
richardretanubun authored
Added as a convenience for other platforms that uses MPC8360 (has 8 UCC). Six eth interface is chosen because the platform I am using combines UCC1&2 and UCC3&4 as 1000 Eth and the other four UCCs as 10/100 Eth. Signed-off-by:
Richard Retanubun <RichardRetanubun@RugggedCom.com> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Sep 03, 2008
-
-
Ben Warren authored
Affected boards: db64360 db64460 katmai taihu taishan yucca cpc45 cpu87 eXalion elppc debris kvme080 mpc8315erdb integratorap ixdp425 oxc pm826 pm828 pm854 pm856 ppmc7xx sc3 sc520_spunk sorcery tqm8272 tqm85xx utx8245 Removed initialization of the driver from net/eth.c Also, wrapped contents of pci_eth_init() by CONFIG_PCI. Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
Ben Warren authored
Affected boards: cu824 bab7xx adciop dasa_sim mousse mpc8540eval musenki mvblue pcippc2/pcippc6 sbc8240 stxssa Removed initialization of the driver from net/eth.c Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
Ben Warren authored
Affected boards: ap1000 mvbc_p PM854 Removed initialization of the driver from net/eth.c Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
Ben Warren authored
Affected boards: purple Removed initialization of controller from net/eth.c Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
Ben Warren authored
Modified board_eth_init() functions of boards that have this FEC in addition to other Ethernet controllers. Affected boards: bc3450 icecube mvbc_p o2dnt pm520 total5200 tq5200 Removed initialization of controller from net/eth.c Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-