summaryrefslogtreecommitdiffstats
path: root/drivers/net
Commit message (Collapse)AuthorAgeFilesLines
* use loff_t for file offsetsSascha Hauer2012-06-301-2/+2
| | | | | | | This is a first step for 64bit file support: Make the file sizes/offsets 64bit. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* netX/network: fix debug outputsJuergen Beisert2012-04-301-2/+2
| | | | | | | If DEBUG is defined it fails due to wrong variable names Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'pu/mx6-v2' into nextSascha Hauer2012-04-242-3/+42
|\ | | | | | | | | | | | | | | Conflicts: arch/arm/Makefile arch/arm/mach-imx/Kconfig Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net mii: Add mii_open/mii_close functionsSascha Hauer2012-04-241-0/+20
| | | | | | | | | | | | | | | | Some phys need board specific fixups. To be able to do this from board code add mii_open/mii_close functions so that the board can use the regular mii_read/mii_write functions. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net fec: Add i.MX6 supportSascha Hauer2012-04-241-3/+22
| | | | | | | | | | | | | | Currently only 100Mb/s is tested. Freescale's U-Boot suggests that there are some additional adjustments necessary for Gigabit support. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Use DEVICE_ID_DYNAMIC where applicableSascha Hauer2012-04-161-1/+1
|/ | | | | | | We now have DEVICE_ID_DYNAMIC for dynamic allocation of device ids, Use it where applicable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: at91_ether re-implement against new at91rm9200 apiJean-Christophe PLAGNIOL-VILLARD2012-04-023-232/+314
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: miidev: properly check for MII resetWolfram Sang2012-03-231-5/+12
| | | | | | | | | Wait until the reset bit is actually cleared instead of some arbitrary delay (which caused problems with a PHY which was in some energy saving mode). Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: miidev: Refactor timeout for anegWolfram Sang2012-03-231-11/+6
| | | | | | | | First check the status at least once, then do timeout checks. Minor cleanups also. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: miidev: check for errors when accessing bus in restart_anegWolfram Sang2012-03-231-6/+23
| | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* NET: Add support for ks8851_mllJan Weitzel2012-03-133-0/+899
| | | | | | | Add support for KS8851 16bit MLL chip from Micrel Inc. Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* macb: fix mmu supportJean-Christophe PLAGNIOL-VILLARD2012-03-061-3/+5
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* macb: add timeout on sendJean-Christophe PLAGNIOL-VILLARD2012-03-061-0/+5
| | | | | | | This will ensure that we send an other packet only when the first one is send. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net fec_mpc5200: drop type_data usageSascha Hauer2012-02-251-6/+6
| | | | | | Also, clean some whitespace damage. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net fec_imx: drop type_data usageSascha Hauer2012-02-251-3/+3
| | | | | | Store the private data pointer in dev->priv as it's intended. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net drivers: remove unused type_dataSascha Hauer2012-02-259-10/+0
| | | | | | | Many net drivers set dev->type_data without ever using it, so just remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: use container_of instead of dev->type_dataSascha Hauer2012-02-251-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usb net: fix unregistrationSascha Hauer2012-02-141-4/+2
| | | | | | | | First call mii_unregister which is done in the drivers unbind function, then eth_unregister. Also, remove unregister_device which is done in eth_unregister. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usb net smsc95xx: add missing mii_unregisterSascha Hauer2012-02-141-0/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usb net smsc95xx: remove unused variableSascha Hauer2012-02-141-4/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: fec_imx: configure FEC for 10Mbit when necessaryWolfram Sang2012-01-251-0/+11
| | | | | Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: miidev: factor out miidev_get_status()Wolfram Sang2012-01-251-23/+42
| | | | | | | | | Currently, we can only print the phy_status. Factor out the routine to get the status, so we can query it from fec drivers and configure accordingly. Needed because mx28 needs a special bit set for 10Mbit. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: fec_imx: enable payload length check and pause framesWolfram Sang2012-01-251-4/+2
| | | | | | | | Q: "the linux driver add these bits, why not we?" A: Because nobody activated the bits? Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: fec_imx: refactor R_CNTRL setupWolfram Sang2012-01-251-16/+7
| | | | | | | | Introduce a variable which gets updated when needed and only written once. Will make further additions easier. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: fec_imx: small cleanupsWolfram Sang2012-01-252-18/+4
| | | | | | | | remove double include, remove unused (and double in case of RCNTRL) defines, sort the includes at least somewhat. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net dm9k: Fix compiler warningSascha Hauer2012-01-021-0/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Remove the obsolet driver for the DM9000E ethernet deviceJuergen Beisert2011-12-143-570/+0
| | | | | | | | Support for the old DM9000E device is now part of the new dm9k.c driver. So, remove the old driver source and switch all users to the new driver. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add support for more recent Davicom DM9k devicesJuergen Beisert2011-12-143-0/+803
| | | | | | | | | | This patch adds support for the more recent DM9000A and DM9000B types, and keeps support for the older DM9000E device. As this patch is more or less a complete re-wrote of the existing driver I add a new source file instead of fixing the existing one. In a later patch the old driver will be removed. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net macb: remove unused variableSascha Hauer2011-12-071-1/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove irq support fragmentsSascha Hauer2011-11-281-13/+0
| | | | | | | | We never had interrupt support in barebox and we have no plans to add interrupt support. Even if we do I doubt the current fragments of irq support are helpful, so remove them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net fec_mpc5200: disable fec on shutdownSascha Hauer2011-09-271-0/+8
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce io.hSascha Hauer2011-09-229-9/+9
| | | | | | | To allow for some generic io accessors introduce io.h and use this instead of asm/io.h throughout the tree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* macb: handle clk_get errorHubert Feurstein2011-09-121-0/+6
| | | | | Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* macb: whitespace cleanupHubert Feurstein2011-09-121-6/+6
| | | | | Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net mii: add a parent pointer to miidevs and set it to the hardware deviceSascha Hauer2011-08-1512-0/+13
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: make the ethernet device a child of the hardware deviceSascha Hauer2011-08-1512-0/+12
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net fec_mpc5200: fix lineendingsSascha Hauer2011-08-151-7/+7
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* dm9000: introduce add_dm9000_device to register dm9000 deviceJean-Christophe PLAGNIOL-VILLARD2011-07-291-1/+2
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* dm9000: replace DM9000_WIDTH_8/16/32 by IORESOURCE_MEM_8/16/32BITJean-Christophe PLAGNIOL-VILLARD2011-07-291-6/+6
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
*---. Merge branches 'pu-ethaddr', 'pu-fec', 'pu-imx-iim', 'pu-resources' and ↵Sascha Hauer2011-07-296-56/+57
|\ \ \ | | | | | | | | | | | | 'pu-resources1' into next
| | | * fec_mpc5200: switch to resourcesSascha Hauer2011-07-281-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | | * smc91111: switch to resourcesSascha Hauer2011-07-281-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | | * smc911x: embed eth_device into privSascha Hauer2011-07-281-5/+4
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | | * smc911x: switch to use resourcesSascha Hauer2011-07-281-6/+9
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | | * smc911x: use dev_* instead of printfSascha Hauer2011-07-282-14/+10
| | |/ | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net i.MX fec: rename driver struct to be genericSascha Hauer2011-07-281-2/+2
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net i.MX fec: embed ethernet device into privSascha Hauer2011-07-282-2/+3
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net i.MX fec: remove unnecessary alignmentSascha Hauer2011-07-281-13/+9
| | | | | | | | | | | | | | | | | | | | | dma_alloc_coherent returns sufficiently aligned memory. While at it, remove some unnecessary casts. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net i.MX fec: make multi instance safeSascha Hauer2011-07-281-14/+20
| |/ | | | | | | | | | | | | | | | | The driver uses a static int once variable to alloc the rx packets. remove this to make the driver multi instance safe. While at it, remove the crappy selfmade alignment. dma_alloc_coherent returns sufficiently aligned memory. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / ARM i.MX: rework IIM MAC address settingSascha Hauer2011-07-291-4/+0
|/ | | | | | | Switch to the generic way of setting a MAC address for a device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>