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