summaryrefslogtreecommitdiffstats
path: root/drivers/net/ep93xx.c
Commit message (Collapse)AuthorAgeFilesLines
* drivers: net: convert drivers to spdxOleksij Rempel2018-12-061-16/+1
| | | | | | Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Reviewed-by: Roland Hieber <r.hieber@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* include: Move ep93xx eth platform_data to include/platform_dataSascha Hauer2016-04-151-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* EP93xx eth: allow passing of phy config via platform dataAlexander Kurz2016-02-251-2/+12
| | | | | | | | | | Passing phy configuration to the ep93xx_eth driver was not supported yet and will be added with this patch. When no pdata is passed, the probably broken default of phy_addr = 0 will be used to maintain compatibility with the previous implementation. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net ep93xx mii: do not supress MII preamble transmissionAlexander Kurz2016-02-241-6/+2
| | | | | | | | | | | | PHY like the ks8721bl used on the edb9302 and similar evaluation boards will initially not respond to the ep93xx_phy_read/write functions when the MII-preamble is supressed. The supression is switched on by default and must be switched off by clearing bit 8, see also EP93xx Users guide. Removing the orphaned MII_SUPPRESS_PREAMBLE config option, note: setting MII_SUPPRESS_PREAMBLE would actually enable the preamble transmission. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: Make set_ethaddr argument constSascha Hauer2015-06-261-1/+1
| | | | | | | The set_ethaddr callback should not modify the MAC address passed to it, so make it const. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: Pass eth_device to net_receiveSascha Hauer2014-05-151-1/+1
| | | | | | | So that barebox has the information which interface a packet came from. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Use new device_platform_driver() macro for driversAlexander Shiyan2013-02-131-8/+1
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* switch all platform_bus device/driver registering to ↵Jean-Christophe PLAGNIOL-VILLARD2012-10-041-1/+1
| | | | | | | | platform_driver/device_register now register_driver and register_device are for bus only usage. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* net: introduce phylibJean-Christophe PLAGNIOL-VILLARD2012-09-251-15/+20
| | | | | | | | | | | | | | | | Adapt phylib from linux switch all the driver to it reimplement mii bus This will allow to have - phy drivers - to only connect the phy at then opening of the device - if the phy is not ready or not up fail on open Same behaviour as in linux and will allow to share code and simplify porting. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* net drivers: remove unused type_dataSascha Hauer2012-02-251-1/+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>
* introduce io.hSascha Hauer2011-09-221-1/+1
| | | | | | | 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>
* net mii: add a parent pointer to miidevs and set it to the hardware deviceSascha Hauer2011-08-151-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: make the ethernet device a child of the hardware deviceSascha Hauer2011-08-151-0/+1
| | | | 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>
* net: rework the mii supportJean-Christophe PLAGNIOL-VILLARD2010-08-271-22/+15
| | | | | | | 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>
* network drivers: call net_receive directly instead of NetReceiveSascha Hauer2010-06-171-2/+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>
* Add EP93xx ethernet driverMatthias Kaehlcke2010-01-141-0/+676
Added ethernet driver for EP93xx SoCs Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>