summaryrefslogtreecommitdiffstats
path: root/drivers/net
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* u-boot-v2: CS89x0 ethernet supportIvo Clarysse2009-04-281-0/+481
| | | | | | | Support for CS89X0 ethernet controllers. Tested with CS8900A ref. F on MX21ADS. Signed-off-by: Ivo Clarysse <ivo.clarysse@gmail.com>
* USB supportSascha Hauer2009-04-076-0/+1053
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* miiphy: add miiphy_unregister functionSascha Hauer2009-04-071-0/+10
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fec: fail on open when autonegotiation failsSascha Hauer2009-04-061-1/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fec_imx: whitespace changesSascha Hauer2009-04-061-25/+14
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fec_imx: do not typedef struct types #2Sascha Hauer2009-04-062-15/+16
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fec_imx: do not typedef struct typesSascha Hauer2009-04-062-18/+18
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fec_imx: Fix RMII mode, remove struct-over-regsiter crapSascha Hauer2009-04-062-243/+78
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX FEC Kconfig: add a ARCH_HAS_FEC_IMX symbolSascha Hauer2009-03-312-4/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fec imx27: rename to fec_imxSascha Hauer2009-03-193-3/+3
| | | | | | | This driver is not only used on i.MX27 but on i.MX35 and i.MX25, so rename it to a more generic name Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fec imx27: add remove functionSascha Hauer2009-03-191-4/+12
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX use fecclk for fec and gtpclk for gptSascha Hauer2009-02-201-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* smc911x: fix wrong printfSascha Hauer2009-02-201-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>