diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2010-08-26 18:33:28 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-08-27 14:36:03 +0200 |
commit | 12f396a8b02e57f579d2863299948b5172ffdf6f (patch) | |
tree | dd354d4cf966925422d20f5796a134d148d39693 /drivers/net/at91_ether.c | |
parent | f2283c2057b28d81b9060ba3fde68f24f2eb2922 (diff) | |
download | barebox-12f396a8b02e57f579d2863299948b5172ffdf6f.tar.gz barebox-12f396a8b02e57f579d2863299948b5172ffdf6f.tar.xz |
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>
Diffstat (limited to 'drivers/net/at91_ether.c')
-rw-r--r-- | drivers/net/at91_ether.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/at91_ether.c b/drivers/net/at91_ether.c index 3c4f4b053c..4563ff383f 100644 --- a/drivers/net/at91_ether.c +++ b/drivers/net/at91_ether.c @@ -24,7 +24,7 @@ #include <at91rm9200_net.h> #include <init.h> #include <net.h> -#include <miiphy.h> +#include <miidev.h> #include <malloc.h> #include <driver.h> @@ -208,7 +208,7 @@ static void at91rm9200_eth_halt (struct eth_device *edev) }; #if defined(CONFIG_MII) || (CONFIG_COMMANDS & CFG_CMD_MII) -int at91rm9200_miiphy_read(char *devname, unsigned char addr, +int at91rm9200_miidev_read(char *devname, unsigned char addr, unsigned char reg, unsigned short * value) { at91rm9200_EmacEnableMDIO (p_mac); @@ -217,7 +217,7 @@ int at91rm9200_miiphy_read(char *devname, unsigned char addr, return 0; } -int at91rm9200_miiphy_write(char *devname, unsigned char addr, +int at91rm9200_miidev_write(char *devname, unsigned char addr, unsigned char reg, unsigned short value) { at91rm9200_EmacEnableMDIO (p_mac); @@ -228,10 +228,10 @@ int at91rm9200_miiphy_write(char *devname, unsigned char addr, #endif /* defined(CONFIG_MII) || (CONFIG_COMMANDS & CFG_CMD_MII) */ -int at91rm9200_miiphy_initialize(void) +int at91rm9200_miidev_initialize(void) { #if defined(CONFIG_MII) || (CONFIG_COMMANDS & CFG_CMD_MII) - miiphy_register("at91rm9200phy", at91rm9200_miiphy_read, at91rm9200_miiphy_write); + mii_register("at91rm9200phy", at91rm9200_miidev_read, at91rm9200_miidev_write); #endif return 0; } |