summaryrefslogtreecommitdiffstats
path: root/drivers/net
Commit message (Collapse)AuthorAgeFilesLines
* netx eth: Fix compilationSascha Hauer2010-10-021-4/+4
| | | | | | Also, replace __FUNCTION__ with __func__ Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ep93xx net driver: Fix compilationSascha Hauer2010-10-021-4/+6
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fec_mpc5200: Fix compilationSascha Hauer2010-10-021-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: rework the mii supportJean-Christophe PLAGNIOL-VILLARD2010-08-2718-228/+211
| | | | | | | this rework is done in order to add a phylib and allow to have phy driver support Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* macb: introduce HAS_MACB configurationJean-Christophe PLAGNIOL-VILLARD2010-08-231-1/+4
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* dm9000: allow to specify that no srom is presentJean-Christophe PLAGNIOL-VILLARD2010-08-231-1/+2
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* fec_imx: add support for IIM stored mac addressBaruch Siach2010-08-171-2/+2
| | | | | | | The mac address information is taken from the imx_iim driver if it's present. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91: implement clock frameworkJean-Christophe PLAGNIOL-VILLARD2010-08-061-1/+10
| | | | | | | | | | | this implementation is based on linux one (v2.6.35-rc5-76-gd0c6f62) it will calculate all the clock dynamically instead of statictly this will use also the new clock framework it will also print the clock status after the console init Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usbnet: remove unused dev member in struct usbnetSascha Hauer2010-06-242-10/+11
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* network drivers: call net_receive directly instead of NetReceiveSascha Hauer2010-06-1713-14/+14
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fix miiphy allocJan Weitzel2010-04-141-4/+4
| | | | | | | | if fec was allocated using malloc. if fec->miiphy->dev->driver != 0 miiphy_probe is not called Signed-off-by: Jan Weitzel <J.Weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* netx eth driver: remove local definition of ARRAY_SIZESascha Hauer2010-03-301-2/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* pass arguments to dma_* as unsigned long as the kernel doesSascha Hauer2010-03-301-1/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ep93xx eth driver: dump_xxx() cleanupMatthias Kaehlcke2010-02-031-27/+27
| | | | | | | | ep93xx eth driver dump_xxx() functions: Use %p to print pointer values, remove unnecessary parentheses and declare as static Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ep93xx eth driver: Remove unnecessary parentheses in constant definitionsMatthias Kaehlcke2010-02-031-2/+2
| | | | | | | | ep93xx eth driver: Remove unnecessary parentheses in definition of the constants MII_ADDRESS_MAX and MII_REGISTER_MAX Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ep93xx eth driver: Reorder functions to eliminate need for prototypesMatthias Kaehlcke2010-02-021-121/+117
| | | | | | | | ep93xx eth driver: Define ep93xx_eth_send_packet() and ep93xx_eth_rcv_packet() before ep93xx_eth_probe(), and eliminate their prototype declarations Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ep93xx eth driver: Fix dump_xxx_queue() parameter listMatthias Kaehlcke2010-02-021-16/+16
| | | | | | | | ep93xx eth driver: Add missing parameter to dump_rx_status_queue(), dump_tx_descriptor_queue() and dump_tx_status_queue() Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* smc91111: fix odering of mac address read from EEPROMMarc Kleine-Budde2010-02-011-14/+9
| | | | | | | | | | | | | | On my little endian PXA270, the ethernet address is byte swapped: correct ethernet address: 00:50:c2:80:a7:bd broken ethernet address: 50:00:80:c2:bd:a7 The correct value is what the sticker on the baoard and the linux driver says. This patch fixes the problem by reading the ethaddr byte-wise from the eeprom. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add EP93xx ethernet driverMatthias Kaehlcke2010-01-144-0/+829
| | | | | | | Added ethernet driver for EP93xx SoCs Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Fix a data abort with fec_imxEric Benard2010-01-111-1/+1
| | | | | | | | | edev was allocated using malloc. On one board (NOR boot), we met data abort in eth_register (at dev_add_param(dev, &edev->param_ip);). Allocating edev with xzalloc (as in several other drivers) fixed the problem. Signed-off-by: Eric Benard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rename U-Boot-v2 project to bareboxSascha Hauer2009-12-156-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | This has been done with the following script: find -path ./.git -prune -o -type f -print0 | xargs -0 -r sed -i \ -e 's/u2boot/barebox/g' \ -e 's/U2Boot/barebox/g' \ -e 's/U-boot V2/barebox/g' \ -e 's/u-boot v2/barebox/g' \ -e 's/U-Boot V2/barebox/g' \ -e 's/U-Boot-v2/barebox/g' \ -e 's/U_BOOT/BAREBOX/g' \ -e 's/UBOOT/BAREBOX/g' \ -e 's/uboot/barebox/g' \ -e 's/u-boot/barebox/g' \ -e 's/u_boot/barebox/g' \ -e 's/U-Boot/barebox/g' \ -e 's/U-boot/barebox/g' \ -e 's/U-BOOT/barebox/g' find -path ./.git -prune -o \( -name "*u-boot*" -o -name "*uboot*" -o -name "*u_boot*" \) -print0 | \ xargs -0 -r rename 's/u[-_]?boot/barebox/' It needs some manual fixup following in the next patch Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fec_imx: remove trailing whitespaceMarc Kleine-Budde2009-11-211-2/+2
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [PPC] Move include/asm-ppc/arch-* to arch/ppc/*/include/machJean-Christophe PLAGNIOL-VILLARD2009-10-221-4/+4
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* [SANDBOX] Move include/asm-sandbox/arch-* to arch/sandbox/*/include/machJean-Christophe PLAGNIOL-VILLARD2009-10-221-1/+1
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/machJean-Christophe PLAGNIOL-VILLARD2009-10-223-7/+7
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* at91: add cpu devices common apiJean-Christophe PLAGNIOL-VILLARD2009-10-201-2/+2
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* at91sam9: move to at91Jean-Christophe PLAGNIOL-VILLARD2009-10-202-2/+2
| | | | | | this will allow to add at91rm9200 with the same api as done in the kernel Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* miiphy: Add missing lseek functionSascha Hauer2009-10-191-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fec_imx: do not typedef structSascha Hauer2009-10-131-7/+7
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* sandbox tap driver: initialize device nameSascha Hauer2009-10-121-1/+2
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* fec_imx: initialize buffers on open timeSascha Hauer2009-10-091-6/+6
| | | | | | | | | We need to redo buffer initialization each time we open the device, not only once on init time. Otherwise network does not work if the last transfer was interrupted with ctrl-c Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rename dma macrosSascha Hauer2009-09-251-4/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fec imx27: Add MMU supportSascha Hauer2009-08-191-13/+16
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fec_imx: Make sure MII speed is correct before reading the phySascha Hauer2009-07-301-0/+5
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* miiphy: add device pointer to struct cdevSascha Hauer2009-07-211-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ethernet driver: Do not overwrite devnameSascha Hauer2009-07-212-4/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* cdev fixes for new boardsSascha Hauer2009-07-211-2/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fec_mpc5200: fix compiler warningSascha Hauer2009-07-211-8/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add a device_d to ethernet devicesSascha Hauer2009-07-2112-50/+47
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Get rid of DEVICE_TYPE_ETHER usageSascha Hauer2009-07-219-9/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce cdevSascha Hauer2009-07-211-28/+24
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* smc91111: use miiphy functions for autonegotiationSascha Hauer2009-07-091-116/+15
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Adding the network driver for the SMSC91C111 ethernet device.Juergen Beisert2009-07-013-0/+1459
| | | | Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
* usbnet: Check return valueSascha Hauer2009-05-251-5/+6
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* select MIIPHY for usbnetSascha Hauer2009-05-191-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* [miiphy] add missing lseekMarc Kleine-Budde2009-05-191-0/+1
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [mac] add force link supportMarc Kleine-Budde2009-05-181-1/+2
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [miiphy] add feature to force link presentMarc Kleine-Budde2009-05-181-0/+12
| | | | | | | | | | | If a NIC's MII isn't connected to a PHY but directly to a switch port, the switch doesn't sent a link signal to the NIC. (Because strictly speaking, there isn't any ethernet link at all.) This patch adds a force link feature to the phy, to cope with this situation. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [macb] clear RMII bit when using plain MIIMarc Kleine-Budde2009-05-181-0/+2
| | | | | | | | When operating in plain MII mode, the driver assumes the RMII bit not set. Although this is the power on reset value, clearing this bit helps when playing with different network setups. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* cs8900: Whitespace changes, replace __FUNCTION__ with __func__Sascha Hauer2009-04-281-16/+15
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>