Sascha Hauer
22b878d251
net: Pass eth_device to net_receive
...
So that barebox has the information which interface a packet
came from.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-15 08:15:21 +02:00
Sascha Hauer
e9e5919dd3
net: fec: use standard phy type defines
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-03-09 20:09:23 +01:00
Sascha Hauer
31865e8a7f
net: fec: drop sevenwire support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-03-09 20:09:23 +01:00
Alexander Shiyan
6a256321b8
Use new device_platform_driver() macro for drivers
...
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-02-13 09:23:28 +01:00
Jean-Christophe PLAGNIOL-VILLARD
3c5327e660
switch all platform_bus device/driver registering to 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>
2012-10-04 15:19:12 +02:00
Jean-Christophe PLAGNIOL-VILLARD
2263e27814
net: introduce phylib
...
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>
2012-09-25 08:18:58 +02:00
Sascha Hauer
26eab97b41
net fec_mpc5200: Use same platform_data as i.MX fec driver
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-09-23 20:35:20 +02:00
Sascha Hauer
78da28d088
net fec_mpc5200: drop type_data usage
...
Also, clean some whitespace damage.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-25 15:16:30 +01:00
Sascha Hauer
7d593c7765
net fec_mpc5200: disable fec on shutdown
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-27 12:03:25 +02:00
Sascha Hauer
8fddb2edf6
net mii: add a parent pointer to miidevs and set it to the hardware device
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-15 09:48:03 +02:00
Sascha Hauer
6d16fbdcd4
net: make the ethernet device a child of the hardware device
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-15 09:48:03 +02:00
Sascha Hauer
def04cd255
net fec_mpc5200: fix lineendings
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-15 09:45:41 +02:00
Sascha Hauer
6060de6e88
fec_mpc5200: switch to resources
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 15:40:16 +02:00
Krzysztof Halasa
c5baa0edc4
Fix error handling with malloc, memalign etc. Introduce xmemalign().
...
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>
2011-01-07 10:21:22 +01:00
Sascha Hauer
b610fbf17d
fec_mpc5200: Fix compilation
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-02 12:45:10 +02:00
Jean-Christophe PLAGNIOL-VILLARD
12f396a8b0
net: rework the mii support
...
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>
2010-08-27 14:36:03 +02:00
Sascha Hauer
c70689d727
network drivers: call net_receive directly instead of NetReceive
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-17 08:28:25 +02:00
Jean-Christophe PLAGNIOL-VILLARD
e988d5d990
[PPC] Move include/asm-ppc/arch-* to arch/ppc/*/include/mach
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 14:21:30 +02:00
Sascha Hauer
8b09e24a36
ethernet driver: Do not overwrite devname
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 18:36:47 +02:00
Sascha Hauer
7373dc1215
fec_mpc5200: fix compiler warning
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 16:41:47 +02:00
Sascha Hauer
2f8df2a003
add a device_d to ethernet devices
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 16:41:46 +02:00
Sascha Hauer
6e921fcb3c
Get rid of DEVICE_TYPE_ETHER usage
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 16:41:45 +02:00
Sascha Hauer
6020d321e8
use U-Boot standard types for variables.
...
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>
2008-04-04 14:45:04 +02:00
Sascha Hauer
8d4e06d3d5
[mpc5200 fec] revert to some old version (somehow my play version got into the
...
repository). Runtime tested on pcm030
2008-02-20 17:48:31 +01:00
Juergen Beisert
e121848b4a
new revision, no volatile any more
2007-11-05 18:19:31 +01:00
Juergen Beisert
1cb7062653
integrating sha's changes into jbe's branch
2007-11-05 12:26:29 +01:00
sascha
1b272d80f1
change functions containing 'mac' or 'enet' in its name to 'ethaddr'.
...
change the parameter name for ethernet devices to 'ethaddr' aswell.
2007-10-18 11:17:16 +02:00
Sascha Hauer
a6c86a0b1b
remove hardcoded regsiter base addresses
2007-10-09 18:59:18 +02:00
Sascha Hauer
2bd6a5b543
make real code visible between debug code
2007-10-09 18:34:26 +02:00
Sascha Hauer
7ab263cec8
remove decoration
2007-10-09 18:17:41 +02:00
Sascha Hauer
ddd13222cf
reorder functions to get rid of static function declarations
2007-10-09 18:13:06 +02:00
Sascha Hauer
da3d281495
add some register bitmask values from the linux kernel
2007-10-09 18:09:17 +02:00
Sascha Hauer
e054dd9ee4
do loadtask in ethernet driver
2007-07-12 09:22:25 +02:00
Sascha Hauer
98432d3925
svn_rev_683
...
more cleanups, fix compiler warnings
2007-07-05 18:02:16 +02:00
Sascha Hauer
840a277e9f
svn_rev_627
2007-07-05 18:02:11 +02:00
Sascha Hauer
6834609691
svn_rev_593
...
intrduce get_clock_* functions
2007-07-05 18:02:08 +02:00
Sascha Hauer
9ff9f6a5ef
svn_rev_579
...
miiphy
2007-07-05 18:02:06 +02:00
Sascha Hauer
955ed9aae1
svn_rev_573
...
cleanups, generic phy support
2007-07-05 18:02:06 +02:00
Sascha Hauer
998a23e50d
svn_rev_508
...
put driver back into business
2007-07-05 18:02:00 +02:00
Sascha Hauer
381840e830
svn_rev_310
...
use type_data instead of pric for edev
2007-07-05 18:01:42 +02:00
Sascha Hauer
14cf76973d
svn_rev_190
...
remove gpio pin init, board code should do this
2007-07-05 18:01:31 +02:00
Sascha Hauer
882be5b59b
svn_rev_188
...
WIP
2007-07-05 18:01:31 +02:00
Sascha Hauer
a9c805bf87
svn_rev_175
...
moved to drivers/net
2007-07-05 18:01:30 +02:00