summaryrefslogtreecommitdiffstats
path: root/drivers/net/fec_mpc5200.c
Commit message (Collapse)AuthorAgeFilesLines
* drivers: net: convert drivers to spdxOleksij Rempel2018-12-061-0/+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 fec eth platform_data to include/platform_dataSascha Hauer2016-04-151-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* driver: replace dev_request_mem_region with dev_request_mem_resourceSascha Hauer2016-03-071-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dev_request_mem_region doesn't work properly one some SoCs on which PTR_ERR() values clash with valid return values from dev_request_mem_region. Replace them with dev_request_mem_resource where possible. This patch has been generated with the following semantic patch: // <smpl> @@ expression d; expression n; expression io; identifier func; @@ func(...) { +struct resource *iores; <+... -io = dev_request_mem_region(d, n); -if (IS_ERR(io)) { +iores = dev_request_mem_resource(d, n); +if (IS_ERR(iores)) { ... - return PTR_ERR(io); -} + return PTR_ERR(iores); +} +io = IOMEM(iores->start); ...+> } @@ expression d; expression n; expression io; identifier func; @@ func(...) { +struct resource *iores; <+... -io = dev_request_mem_region(d, n); -if (IS_ERR(io)) { +iores = dev_request_mem_resource(d, n); +if (IS_ERR(iores)) - return PTR_ERR(io); -} + return PTR_ERR(iores); +io = IOMEM(iores->start); ...+> } @@ expression d; expression n; expression io; identifier func; @@ func(...) { +struct resource *iores; <+... -io = dev_request_mem_region(d, n); -if (IS_ERR(io)) { - ret = PTR_ERR(io); +iores = dev_request_mem_resource(d, n); +if (IS_ERR(iores)) { + ret = PTR_ERR(iores); ... } +io = IOMEM(iores->start); ...+> } @@ expression d; expression n; expression io; identifier func; @@ func(...) { +struct resource *iores; <+... -io = dev_request_mem_region(d, n); +iores = dev_request_mem_resource(d, n); +if (IS_ERR(iores)) + return PTR_ERR(iores); +io = IOMEM(iores->start); ...+> } @@ identifier func; @@ func(...) { <+... struct resource *iores; -struct resource *iores; ...+> } // </smpl> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* PPC/MPC52xx: unify header file name for clock APIJuergen Borleis2015-08-031-1/+1
| | | | | | | | In preparation to re-use the i.MX I2C driver for the MPC5200 SoC use clock.h instead of clocks.h for the clock API. Signed-off-by: Juergen Borleis <jbe@pengutronix.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>
* resource: Let dev_request_mem_region return an error pointerSascha Hauer2014-09-161-0/+3
| | | | | | For all users fix or add the error check. 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>
* net: fec: use standard phy type definesSascha Hauer2013-03-091-14/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: fec: drop sevenwire supportSascha Hauer2013-03-091-51/+33
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Use new device_platform_driver() macro for driversAlexander Shiyan2013-02-131-9/+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-23/+31
| | | | | | | | | | | | | | | | 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 fec_mpc5200: Use same platform_data as i.MX fec driverSascha Hauer2012-09-231-2/+2
| | | | 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_mpc5200: disable fec on shutdownSascha Hauer2011-09-271-0/+8
| | | | 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>
* net fec_mpc5200: fix lineendingsSascha Hauer2011-08-151-7/+7
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fec_mpc5200: switch to resourcesSascha Hauer2011-07-281-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Fix error handling with malloc, memalign etc. Introduce xmemalign().Krzysztof Halasa2011-01-071-2/+2
| | | | | | | | | | | | | | The idea is to panic() when there is no memory available for normal operation. Exception: code which can consume arbitrary amount of RAM (example: files allocated in ramfs) must report error instead of panic(). This patch also fixes code which didn't check for NULL from malloc() etc. Usage: malloc(), memalign() return NULL when out of RAM. xmalloc(), xmemalign() always return non-NULL or panic(). Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl> 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-271-19/+16
| | | | | | | 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-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@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>
* ethernet driver: Do not overwrite devnameSascha 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-211-1/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Get rid of DEVICE_TYPE_ETHER usageSascha Hauer2009-07-211-1/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* use U-Boot standard types for variables.Sascha Hauer2008-04-041-12/+12
| | | | | | | | The FEC driver used to typedef it's own variable types. Use standard U-Boot types instead Signed-off-by: Carsten Schlote <schlote@vahanus.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* [mpc5200 fec] revert to some old version (somehow my play version got into theSascha Hauer2008-02-201-327/+221
| | | | repository). Runtime tested on pcm030
* new revision, no volatile any moreJuergen Beisert2007-11-051-123/+167
|
* integrating sha's changes into jbe's branchJuergen Beisert2007-11-051-137/+200
|
* change functions containing 'mac' or 'enet' in its name to 'ethaddr'.sascha2007-10-181-4/+4
| | | | change the parameter name for ethernet devices to 'ethaddr' aswell.
* remove hardcoded regsiter base addressesSascha Hauer2007-10-091-13/+16
|
* make real code visible between debug codeSascha Hauer2007-10-091-70/+29
|
* remove decorationSascha Hauer2007-10-091-35/+7
|
* reorder functions to get rid of static function declarationsSascha Hauer2007-10-091-81/+78
|
* add some register bitmask values from the linux kernelSascha Hauer2007-10-091-3/+4
|
* do loadtask in ethernet driverSascha Hauer2007-07-121-2/+2
|
* svn_rev_683Sascha Hauer2007-07-051-1/+1
| | | | more cleanups, fix compiler warnings
* svn_rev_627Sascha Hauer2007-07-051-2/+4
|
* svn_rev_593Sascha Hauer2007-07-051-3/+4
| | | | intrduce get_clock_* functions
* svn_rev_579Sascha Hauer2007-07-051-1/+1
| | | | miiphy
* svn_rev_573Sascha Hauer2007-07-051-225/+39
| | | | cleanups, generic phy support
* svn_rev_508Sascha Hauer2007-07-051-20/+14
| | | | put driver back into business
* svn_rev_310Sascha Hauer2007-07-051-1/+1
| | | | use type_data instead of pric for edev
* svn_rev_190Sascha Hauer2007-07-051-17/+0
| | | | remove gpio pin init, board code should do this
* svn_rev_188Sascha Hauer2007-07-051-114/+64
| | | | WIP
* svn_rev_175Sascha Hauer2007-07-051-0/+1048
moved to drivers/net