9
0
Fork 0
Commit Graph

468 Commits

Author SHA1 Message Date
Sascha Hauer c3523db81f usb net smsc95xx: remove unused variable
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-14 23:56:42 +01:00
Wolfram Sang 79b385b017 net: fec_imx: configure FEC for 10Mbit when necessary
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-01-25 18:10:26 +01:00
Wolfram Sang cae7e5b7f9 net: miidev: factor out miidev_get_status()
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>
2012-01-25 18:10:26 +01:00
Wolfram Sang ad0bd00a55 net: fec_imx: enable payload length check and pause frames
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>
2012-01-25 18:10:26 +01:00
Wolfram Sang 6b145cd3b3 net: fec_imx: refactor R_CNTRL setup
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>
2012-01-25 18:10:26 +01:00
Wolfram Sang eeabfc4ab5 net: fec_imx: small cleanups
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>
2012-01-25 18:10:26 +01:00
Sascha Hauer 3f8c7f6f19 net dm9k: Fix compiler warning
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-01-02 14:53:17 +01:00
Juergen Beisert c2580681e5 Remove the obsolet driver for the DM9000E ethernet device
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>
2011-12-14 14:09:04 +01:00
Juergen Beisert 7989c230a2 Add support for more recent Davicom DM9k devices
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>
2011-12-14 14:09:04 +01:00
Sascha Hauer 37b5fef49d net macb: remove unused variable
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-07 13:06:10 +01:00
Sascha Hauer 38884dabbe remove irq support fragments
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>
2011-11-28 11:41:33 +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 3ee7877a48 introduce io.h
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>
2011-09-22 19:03:05 +02:00
Hubert Feurstein 51a4275c71 macb: handle clk_get error
Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-12 12:24:59 +02:00
Hubert Feurstein 2acf27797c macb: whitespace cleanup
Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-12 12:24:59 +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
Jean-Christophe PLAGNIOL-VILLARD 06c36cf09e dm9000: introduce add_dm9000_device to register dm9000 device
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-29 14:04:24 +08:00
Jean-Christophe PLAGNIOL-VILLARD 3465da7aa8 dm9000: replace DM9000_WIDTH_8/16/32 by IORESOURCE_MEM_8/16/32BIT
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-29 14:04:24 +08:00
Sascha Hauer a6aefdeaee Merge branches 'pu-ethaddr', 'pu-fec', 'pu-imx-iim', 'pu-resources' and 'pu-resources1' into next 2011-07-29 12:09:58 +02:00
Sascha Hauer 2fd4fa2e99 ARM i.MX: rework IIM MAC address setting
Switch to the generic way of setting a MAC address for a
device.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:05:26 +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
Sascha Hauer 07506a2282 smc91111: switch to resources
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 15:39:41 +02:00
Sascha Hauer 439f6e62a0 smc911x: embed eth_device into priv
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 15:37:37 +02:00
Sascha Hauer c0195269e1 smc911x: switch to use resources
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 15:35:56 +02:00
Sascha Hauer 4fc4bc2c67 smc911x: use dev_* instead of printf
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 15:31:57 +02:00
Sascha Hauer 2b2994a4f9 net i.MX fec: rename driver struct to be generic
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 12:07:39 +02:00
Sascha Hauer 98d9ce9bec net i.MX fec: embed ethernet device into priv
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 12:07:39 +02:00
Sascha Hauer 0b9bb06a36 net i.MX fec: remove unnecessary alignment
dma_alloc_coherent returns sufficiently aligned memory. While
at it, remove some unnecessary casts.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 12:07:39 +02:00
Sascha Hauer 7079d33597 net i.MX fec: make multi instance safe
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>
2011-07-28 12:07:39 +02:00
Franck Jullien 901cc10e60 nios2/altera_tse: Switch to resources
Switch to resources usage. Cleanup of the code.

Signed-off-by: Franck Jullien <franck.jullien@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-27 10:54:13 +02:00
Jean-Christophe PLAGNIOL-VILLARD bf466e7ad7 dm9000: switch to dev_request_mem_region
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-20 08:25:44 +02:00
Jean-Christophe PLAGNIOL-VILLARD 358ab3eb84 atmel/drivers: switch to dev_request_mem_region
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-20 08:25:43 +02:00
Sascha Hauer 025807bf89 net i.MX fec: convert to struct resource
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-19 00:12:51 +08:00
Jean-Christophe PLAGNIOL-VILLARD 23c7b4c4f0 dm9200: use "struct resource" instead of platform_data
drop iobase and iodata in favor of resources

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-18 07:57:51 +08:00
Jean-Christophe PLAGNIOL-VILLARD 1413523c99 macb: switch to "struct resource"
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-18 07:57:50 +08:00
Sascha Hauer c6abd61fa8 Merge branch 'master' into next 2011-06-20 09:08:13 +02:00
Hubert Feurstein cdc578325a macb: add support for board specific get_ethaddr function
Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-06-20 08:46:27 +02:00
Franck JULLIEN 88210b2d40 Fix compiler warning
Fix incompatible pointer type warning.

Signed-off-by: Franck JULLIEN <franck.jullien@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-05-16 08:23:49 +02:00
Franck JULLIEN 3260e9ef8d Nios2: Add Altera TSE driver
Add Altera Triple Speed Ethernet driver

Signed-off-by: Franck JULLIEN <franck.jullien@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-05-02 09:41:07 +02:00
Franck JULLIEN 554d9671d5 Fix coding style in driver/net/Makefile
Signed-off-by: Franck JULLIEN <franck.jullien@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-05-02 09:41:07 +02:00
Sascha Hauer 9ba8f95724 Merge branch 'omap-drivers' into next 2011-04-06 09:20:21 +02:00
Sascha Hauer 645eeeac99 usbnet: do not initialize ethernet device from usb device
The network layer will initialize this correctly for us.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 15:07:27 +02:00
Sascha Hauer 102f1811d0 net smc911x: Add LAN9221 support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-30 22:20:25 +02:00
Sascha Hauer 63c108bf61 usb net: Add SMSC95xx support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-30 22:20:11 +02:00
Jean-Christophe PLAGNIOL-VILLARD a0c1644d84 dm9000: read the mac address from the register if none are specified
as barebox can be run as a second stage the first stage may have init it
before so re-used it

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:56 +01:00
Juergen Beisert 1f167559e2 Fix end of expression char (some lines forgotten in v1)
Its not a bug fix, just a clean up.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:56 +01:00
Juergen Beisert 4f72931ba4 Fix end of expression char
Its not a bug fix, just a clean up.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:56 +01:00
Robert Schwebel 90613cd09a tx28: fix kconfig warning
Without this patch (against next) I get this:

rsc@thebe:barebox$ make ARCH=arm CROSS_COMPILE=<path>/arm-v5te-linux-gnueabi- menuconfig
  HOSTCC  scripts/kconfig/lxdialog/checklist.o
  HOSTCC  scripts/kconfig/lxdialog/inputbox.o
  HOSTCC  scripts/kconfig/lxdialog/menubox.o
  HOSTCC  scripts/kconfig/lxdialog/textbox.o
  HOSTCC  scripts/kconfig/lxdialog/util.o
  HOSTCC  scripts/kconfig/lxdialog/yesno.o
  HOSTCC  scripts/kconfig/mconf.o
  HOSTLD  scripts/kconfig/mconf
scripts/kconfig/mconf Kconfig
warning: (ARCH_IMX25 && ARCH_IMX27 && ARCH_IMX35 && ARCH_IMX51 && ARCH_IMX28) selects ARCH_HAS_FEC_IMX which has unmet direct dependencies (ARCH_IMX)
warning: (ARCH_IMX25 && ARCH_IMX27 && ARCH_IMX35 && ARCH_IMX51 && ARCH_IMX28) selects ARCH_HAS_FEC_IMX which has unmet direct dependencies (ARCH_IMX)

Add the option for the FEC on MX28 as well.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-02-10 08:16:47 +01:00
Sascha Hauer 06ea6c135d Merge branch 'next' 2011-02-03 10:49:18 +01:00
Sascha Hauer e88d86a445 ARM: rename STM arch to mxs
We never supported the sigmatel stm chips and probably
never will. So do the first step and rename the architecture
to mxs just like in the kernel.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-20 10:43:24 +01:00
Baruch Siach 2f39e0604e miidev: allow read/write of all registers
Ethernet PHY devices have 32 registers, each 16 bits wide. Thus, the size of
the phy device should be 64 bytes.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-19 09:36:06 +01:00
Sascha Hauer 2f0109b1bb Merge branch 'master' into next 2011-01-17 09:43:40 +01:00
Sascha Hauer 06b7cc4875 fec i.MX28: Make it work with MMU on
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-17 09:42:56 +01:00
Sascha Hauer c65d601648 smc911x: fix printf compiler warnings
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-07 11:36:20 +01:00
Sascha Hauer 0f81fc1ca9 dm9000: fix printf compiler warnings
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-07 11:36:06 +01:00
Sascha Hauer 573400471d cs8900: fix printf compiler warnings
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-07 11:35:58 +01:00
Sascha Hauer d31a7a7eca fec_imx: fix printf compiler warnings
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-07 10:37:41 +01: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
Krzysztof Halasa d66ae58cd8 Cosmetic fixes, including format attributes for printf() and friends.
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-12-21 09:02:40 +01:00
Juergen Beisert cf463d7430 MX28: add FEC support
The i.MX28 comes with an extended ethernet controller (ENET/FEC) which
is backwards compatible to the FEC known from other i.MX CPUs. Add a few
adaptions to the existing driver to make it work with the MX28 FEC.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-12-14 15:15:07 +01:00
Juergen Beisert 07965c6fa1 Fixup the FEC driver files
Some register bits are not defined in the IMX CPUs using this FEC (at least
I did not find anything about them in the related datasheets) and they will
get (partially) a new meaning in the i.MX28 CPU. So, removing them from the
source seems the best way to avoid any accidental usage on i.MX28.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-12-14 15:15:07 +01:00
Jean-Christophe PLAGNIOL-VILLARD a6e514b388 miidev: allow multiple dev
now we need to set the dev id to -1

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-11-29 21:55:25 +01:00
Marek Belisko 52f5f20baa smc91111: Various sparse fixes.
Patch fix all similar warnings found by sparse:
drivers/net/smc91111.c:488:9:
warning: incorrect type in argument 1 (different base types)
	expected void const volatile [noderef] <asn:2>*<noident>
	got unsigned long [unsigned] offset

Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-11-19 09:35:09 +01:00
Sascha Hauer 884273c24f fec_imx: sparse fixes
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-21 22:21:23 +02:00
Sascha Hauer fce89665e2 netx eth: Fix compilation
Also, replace __FUNCTION__ with __func__

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-02 12:50:05 +02:00
Sascha Hauer ac4c5e36bd ep93xx net driver: Fix compilation
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-02 12:48:35 +02: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
Jean-Christophe PLAGNIOL-VILLARD 086f96b8e6 macb: introduce HAS_MACB configuration
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2010-08-23 11:20:21 +08:00
Jean-Christophe PLAGNIOL-VILLARD 54d6627f02 dm9000: allow to specify that no srom is present
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2010-08-23 11:20:21 +08:00
Baruch Siach 9965f8f78a fec_imx: add support for IIM stored mac address
The mac address information is taken from the imx_iim driver if it's present.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-08-17 10:21:26 +02:00
Jean-Christophe PLAGNIOL-VILLARD 873910050e at91: implement clock framework
this implementation is based on linux one (v2.6.35-rc5-76-gd0c6f62)
it will calculate all the clock dynamically instead of statictly
this will use also the new clock framework

it will also print the clock status after the console init

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-08-06 19:09:00 +02:00
Sascha Hauer 322bace5fb usbnet: remove unused dev member in struct usbnet
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-24 11:36:42 +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
Jan Weitzel 972d116ada fix miiphy alloc
if fec was allocated using malloc. if fec->miiphy->dev->driver != 0
miiphy_probe is not called

Signed-off-by: Jan Weitzel <J.Weitzel@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-04-14 10:12:51 +02:00
Sascha Hauer e3b2046685 netx eth driver: remove local definition of ARRAY_SIZE
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:04 +02:00
Sascha Hauer 6f5a6b591a pass arguments to dma_* as unsigned long as the kernel does
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:03 +02:00
Matthias Kaehlcke e1e9fc4ce9 ep93xx eth driver: dump_xxx() cleanup
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>
2010-02-03 12:12:25 +01:00
Matthias Kaehlcke 7f9bde68aa ep93xx eth driver: Remove unnecessary parentheses in constant definitions
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>
2010-02-03 12:12:25 +01:00
Matthias Kaehlcke e1cd82c07e ep93xx eth driver: Reorder functions to eliminate need for prototypes
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>
2010-02-02 08:34:57 +01:00
Matthias Kaehlcke 0e46c2673e ep93xx eth driver: Fix dump_xxx_queue() parameter list
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>
2010-02-02 08:34:57 +01:00
Marc Kleine-Budde 4903636f98 smc91111: fix odering of mac address read from EEPROM
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>
2010-02-01 16:27:35 +01:00
Matthias Kaehlcke 6f4ed9536d Add EP93xx ethernet driver
Added ethernet driver for EP93xx SoCs

Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-14 10:04:13 +01:00
Eric Benard faa8f98ea7 Fix a data abort with fec_imx
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>
2010-01-11 18:58:16 +01:00
Sascha Hauer a3ffa97f40 rename U-Boot-v2 project to barebox
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>
2009-12-15 10:18:30 +01:00
Marc Kleine-Budde c985ea0cb6 fec_imx: remove trailing whitespace
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-11-21 19:49:02 +01: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
Jean-Christophe PLAGNIOL-VILLARD b4521685bf [SANDBOX] Move include/asm-sandbox/arch-* to arch/sandbox/*/include/mach
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 14:21:29 +02:00
Jean-Christophe PLAGNIOL-VILLARD f6a579da9c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 14:21:25 +02:00
Jean-Christophe PLAGNIOL-VILLARD 7ac3805353 at91: add cpu devices common api
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-20 15:02:37 +02:00
Jean-Christophe PLAGNIOL-VILLARD 81362c2b2a at91sam9: move to at91
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>
2009-10-20 15:02:36 +02:00
Sascha Hauer 15abc47dba miiphy: Add missing lseek function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-19 15:58:53 +02:00
Sascha Hauer 1b019090f7 fec_imx: do not typedef struct
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 10:46:49 +02:00
Sascha Hauer aaf77314d8 sandbox tap driver: initialize device name
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-12 14:15:23 +02:00
Sascha Hauer 67551e7a76 fec_imx: initialize buffers on open time
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>
2009-10-09 11:57:07 +02:00
Sascha Hauer 3820307eb0 rename dma macros
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-25 13:34:57 +02:00
Sascha Hauer e471a5fd39 fec imx27: Add MMU support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-19 10:51:39 +02:00
Sascha Hauer 6437a0156a fec_imx: Make sure MII speed is correct before reading the phy
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-30 16:09:59 +02:00
Sascha Hauer 2f0a6d1050 miiphy: add device pointer to struct cdev
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 18:37:14 +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 58f5a971fa cdev fixes for new boards
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 16:55:49 +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 a2b7cd183b introduce cdev
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 16:41:44 +02:00
Sascha Hauer 001fd57523 smc91111: use miiphy functions for autonegotiation
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-09 15:22:43 +02:00
Juergen Beisert bf9679991a Adding the network driver for the SMSC91C111 ethernet device.
Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
2009-07-01 14:36:40 +02:00
Sascha Hauer 7538474c45 usbnet: Check return value
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-05-25 16:46:37 +02:00
Sascha Hauer dd51cabe4a select MIIPHY for usbnet
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-05-19 12:34:20 +02:00
Marc Kleine-Budde 6e71dcc9bc [miiphy] add missing lseek
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-05-19 09:31:55 +02:00
Marc Kleine-Budde c18c577722 [mac] add force link support
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-05-18 16:20:04 +02:00
Marc Kleine-Budde 4a770377d1 [miiphy] add feature to force link present
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>
2009-05-18 16:20:04 +02:00
Marc Kleine-Budde dfc1d8ef6b [macb] clear RMII bit when using plain MII
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>
2009-05-18 16:20:04 +02:00
Sascha Hauer 13c5d46ca1 cs8900: Whitespace changes, replace __FUNCTION__ with __func__
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-28 08:48:10 +02:00
Ivo Clarysse 85d0c46258 u-boot-v2: CS89x0 ethernet support
Support for CS89X0 ethernet controllers.
Tested with CS8900A ref. F on MX21ADS.

Signed-off-by: Ivo Clarysse <ivo.clarysse@gmail.com>
2009-04-28 08:39:32 +02:00
Sascha Hauer 277b605eae USB support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-07 10:56:22 +02:00
Sascha Hauer e97918fbf1 miiphy: add miiphy_unregister function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-07 10:42:33 +02:00
Sascha Hauer b7ed4d8fa9 fec: fail on open when autonegotiation fails
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-06 11:15:45 +02:00
Sascha Hauer fa38059695 fec_imx: whitespace changes
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-06 11:10:49 +02:00
Sascha Hauer 8cf4685826 fec_imx: do not typedef struct types #2
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-06 11:08:29 +02:00
Sascha Hauer 63d08b5107 fec_imx: do not typedef struct types
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-06 11:08:24 +02:00
Sascha Hauer ec671e3827 fec_imx: Fix RMII mode, remove struct-over-regsiter crap
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-06 11:08:16 +02:00
Sascha Hauer 5a2e3219f5 i.MX FEC Kconfig: add a ARCH_HAS_FEC_IMX symbol
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-03-31 11:03:49 +02:00
Sascha Hauer 2703e60e43 fec imx27: rename to fec_imx
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>
2009-03-19 12:21:48 +01:00
Sascha Hauer 8e7f17e658 fec imx27: add remove function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-03-19 12:21:35 +01:00
Sascha Hauer 309a75baaf i.MX use fecclk for fec and gtpclk for gpt
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-02-20 18:28:38 +01:00
Sascha Hauer a77e2a830b smc911x: fix wrong printf
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-02-20 18:27:35 +01:00
Sascha Hauer 7e60a6ee8e fec imx27: refacture
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-02-20 18:25:33 +01:00
Sascha Hauer 1e20d6bc20 fec imx27: Add RMII support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-02-20 18:25:24 +01:00
Sascha Hauer 370f550107 fec imx27: configure phy address from platform data
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-02-20 18:25:16 +01:00
Sascha Hauer 5392235bdd fec mx27: add timeout for transmission
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-02-20 18:25:10 +01:00
Sascha Hauer faa4c039c3 FEC MX27: fix typo
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-02-20 18:24:59 +01:00
Sascha Hauer d32c471741 Add MX35 FEC support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-02-06 14:44:46 +01:00
Marc Kleine-Budde f96f2d8e01 [macb] use phy_addr supplied by platform data
The driver was not using the phy address supplied by the platform
data. With this patch the miiphy.address is set phy addr supplied
by the mac platform data.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-01-13 12:12:40 +01:00
Marc Kleine-Budde 983630ef2b [miiphy] declare miiphy_{read,write} functions static
This patch declares miiphy_read and miiphy_write static.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2008-10-27 12:18:25 +01:00
Sascha Hauer 4da7734725 macb eth driver: remove barrier() definition
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-26 11:40:51 +02:00
Sascha Hauer 7b8baf6399 mx27 fec ethernet: remove memcpy
Instead of copying the received packet in memory, pass a pointer to the
packet to U-Boot

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:30:59 +02:00
Sascha Hauer c10e20846d at91sam ether: Make more configurable via platform_data
Pass RMII and phy address via platform data rather than hardcoded.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-01 11:33:12 +02:00
Sascha Hauer ec1b86784d [MIIPHY] Add default open/close functions 2008-08-01 08:58:06 +02:00
Sascha Hauer 3f73e61600 add macb ethernet driver 2008-06-06 09:30:47 +02:00
Sascha Hauer 4794a8ae7f [miiphy]: fix compiler warning 2008-04-07 12:23:54 +02:00
Sascha Hauer 2bdf73a210 Trivial documentation fix 2008-04-04 14:45:04 +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 b8fb74a466 fec i.MX27: Fix data buffer alignment 2008-03-14 13:04:56 +01: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
Sascha Hauer 5928516b68 [i.MX27]: use correct clock for i.MX27 ethernet driver 2008-02-19 15:52:52 +01:00
Enrik Berkhan 0449be2dc1 Only change ADVERTISE_ALL bit
Signed-Off-By: Enrik Berkhan <Enrik.Berkhan@ge.com>
2008-01-23 12:13:23 +01:00
Juergen Beisert dae2d42d9b doc fixed in i.MX27 fec related files
Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
2007-11-12 16:28:23 +01:00
Marc Kleine-Budde 57cae4e826 Merge branch 'ipe337' 2007-11-12 15:58:53 +01:00
Juergen Beisert b2c4402b94 Fix wrong warning message
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
2007-11-12 15:28:09 +01:00
Marc Kleine-Budde 880c221b76 [smsc911x] undef FLOW if already defined
fixes:
drivers/net/smc911x.c:334:1: warning: "FLOW" redefined
In file included from include/asm/blackfin.h:33,
                 from include/asm/system.h:29,
                 from include/asm/bitops.h:33,
                 from include/linux/bitops.h:69,
                 from include/common.h:31,
                 from drivers/net/smc911x.c:29:
include/asm/cpu/defBF561.h:1654:1: warning: this is the location of the previous definition

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-12 12:07:04 +01:00
Juergen Beisert f4ba1fff89 adding and correcting driver's doc
Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
2007-11-09 12:01:18 +01:00
Juergen Beisert be4a1c4acc setting correct buffer size
Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
2007-11-09 09:57:16 +01:00
Juergen Beisert 903d775d32 adding first clean mx27 only fec driver 2007-11-08 16:24:51 +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
Juergen Beisert 5f26029b10 noisy support 2007-10-18 21:02:02 +02: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 fa814e8fae add default for case to avoid compiler warning 2007-10-16 14:49:31 +02:00
sascha fdf739c7a5 move dm9000 specific stuff to platform_data 2007-10-16 13:55:48 +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 c1711479b0 remove unported includes and drivers 2007-09-21 14:14:05 +02:00
Sascha Hauer 8b0fa292f6 - coding style
- turn endless loop into timeout loop
- remove preliminary debug crap
2007-09-12 16:57:01 +02:00
Sascha Hauer 13e43a3536 use timeout loop instead of udelay/counter combination 2007-09-11 10:22:00 +02:00
Sascha Hauer 59432c41ce add blackfin network driver 2007-09-11 10:16:37 +02:00
Sascha Hauer 6402a7d5b7 dm9000.c: return -0 -> return 0 2007-09-11 10:10:09 +02:00
Sascha Hauer 4b72bf8449 add hilscher netx ethernet driver 2007-09-05 12:53:50 +02:00
Sascha Hauer e054dd9ee4 do loadtask in ethernet driver 2007-07-12 09:22:25 +02:00
Sascha Hauer c3243cfb03 use debug macro, some beautification 2007-07-05 21:47:48 +02:00
Sascha Hauer 75a10b942c svn_rev_706
add file headers
2007-07-05 18:02:19 +02:00
Sascha Hauer a107b04b30 svn_rev_698
add dummy init function
2007-07-05 18:02:18 +02:00
Sascha Hauer 98432d3925 svn_rev_683
more cleanups, fix compiler warnings
2007-07-05 18:02:16 +02:00
Sascha Hauer f59546b79b svn_rev_675
move serial and network drivers from cpu/ to drivers/
2007-07-05 18:02:15 +02:00
Sascha Hauer 2ae203a52e svn_rev_659
remove ns7520 files. They are completely unused even in original u-boot
2007-07-05 18:02:14 +02:00
Sascha Hauer 83e882ab00 svn_rev_628 2007-07-05 18:02:11 +02:00
Sascha Hauer 840a277e9f svn_rev_627 2007-07-05 18:02:11 +02:00
Sascha Hauer 0a95963207 svn_rev_626
use generic phy
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 14edc91f97 svn_rev_572
add miiphy support
2007-07-05 18:02:06 +02:00
Sascha Hauer 4f0d6f9b82 svn_rev_564
remove debug output
2007-07-05 18:02:05 +02:00
Sascha Hauer 58c95d74ad svn_rev_563
unify menu style
2007-07-05 18:02:05 +02:00
Sascha Hauer 36a60cf92b svn_rev_526
CFG_CACHELINESIZE -> CONFIG_CACHELINE_SIZE
2007-07-05 18:02:01 +02:00
Sascha Hauer 998a23e50d svn_rev_508
put driver back into business
2007-07-05 18:02:00 +02:00
Sascha Hauer 041c5e8b13 svn_rev_450
do autongotiation on probe and not on open, so this is done
when we actually need the phy.
We do not disable the phy now, that's not good. But at least
networking is much more responsive now.
2007-07-05 18:01:55 +02:00
Sascha Hauer 07045831cd svn_rev_430 2007-07-05 18:01:53 +02:00
Sascha Hauer a45e1af152 svn_rev_426 2007-07-05 18:01:52 +02:00
Sascha Hauer 205b6b6861 svn_rev_402
oh man
2007-07-05 18:01:50 +02:00
Sascha Hauer 4320cc59b5 svn_rev_376
remove unnecessary include
2007-07-05 18:01:48 +02:00
Sascha Hauer 76b81d8f16 svn_rev_311 2007-07-05 18:01:42 +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 1db57b0bfc svn_rev_309
add tap driver for arch=linux
2007-07-05 18:01:42 +02:00
Sascha Hauer 5909668c9f svn_rev_251
make it work again
2007-07-05 18:01:36 +02:00
Sascha Hauer feb3fee023 svn_rev_201
add mpc5200 fec driver
2007-07-05 18:01:32 +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 2ae2044e39 svn_rev_179
refacture, remove static eth_device because it does not work with more than one device
2007-07-05 18:01:30 +02:00
Sascha Hauer a9c805bf87 svn_rev_175
moved to drivers/net
2007-07-05 18:01:30 +02:00
Sascha Hauer ca24324ce1 svn_rev_129
make it work again
2007-07-05 18:01:25 +02:00
Sascha Hauer 55ebf67d3e svn_rev_120
implement initcalls
2007-07-05 18:01:24 +02:00
Sascha Hauer f5f406daef svn_rev_116
add dm9000 network driver
2007-07-05 18:01:24 +02:00
Sascha Hauer 2c6d68cc7d svn_rev_113
new api, cleanup
2007-07-05 18:01:24 +02:00
Sascha Hauer 70971534b6 svn_rev_111
rename
2007-07-05 18:01:24 +02:00
Sascha Hauer ea8ebce5db svn_rev_110
rename
2007-07-05 18:01:23 +02:00
Sascha Hauer abfbbad1eb svn_rev_109
do not know anymore
2007-07-05 18:01:23 +02:00
Sascha Hauer 3533c30ef4 svn_rev_107
removed ifdefs
2007-07-05 18:01:23 +02:00
Sascha Hauer f6508e1c4b svn_rev_095
Currently U-Boot uses globally defined eth_* functions. This is
horribly unflexible. This patch replaces the global functions
with pointers from structs. We could also use CONFIG_NET_MULTI,
but this has other implications, though we should merge this
some day.
Also, U-Boot has no unique way to handle MAC addresses. Each and
every board and network driver uses it's own mechanism to set the
MAC address. There are several problems which I've for too often.
For example everything goes well if we boot from network, but when
we boot from flash U-Boot forgets to set the MAC address and the
linux network driver has none.
This patch adds [gs]et_mac_address to the eth_device struct and
handles it as follows:
- First try to get a valid MAC address from the EEPROM and set
  'ethaddr' accordingly.
- If no valid MAC address is found in the EEPROM (or no EEPROM is
  connected), we set the devices MAC address from 'ethaddr'
This is done in eth_initialize which is called on startup for
every board.
2007-07-05 18:01:22 +02:00
Sascha Hauer 4fbb0d6987 svn_rev_064 2007-07-05 18:01:18 +02:00
Sascha Hauer 6ae6961105 svn_rev_062 2007-07-05 18:01:18 +02:00
Sascha Hauer 8b4976503c svn_rev_061
rename
2007-07-05 18:01:18 +02:00
Sascha Hauer 6f5a40d81a svn_rev_057
move all ethernet drivers to drivers/net
2007-07-05 18:01:18 +02:00