diff options
author | Anatolij Gustschin <agust@denx.de> | 2010-02-26 07:00:48 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-27 05:34:35 -0500 |
commit | 60ab4361adc188fb47da1c4892cc7a2bb621efef (patch) | |
tree | 7949c204769f3bf400f9c4806082a122bc6e8e79 /drivers/net/fs_enet/mii-fec.c | |
parent | fcb6a1c83e48c30ff99624e9c46ce301707ede05 (diff) |
fs_enet: Add support for MPC512x to fs_enet driver
Extend the fs_enet driver to support MPC512x FEC.
Enable it with CONFIG_FS_ENET_MPC5121_FEC option.
Signed-off-by: John Rigby <jcrigby@gmail.com>
Signed-off-by: Piotr Ziecik <kosmo@semihalf.com>
Signed-off-by: Wolfgang Denk <wd@denx.de>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/fs_enet/mii-fec.c')
-rw-r--r-- | drivers/net/fs_enet/mii-fec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/fs_enet/mii-fec.c b/drivers/net/fs_enet/mii-fec.c index 96eba4280c5c..5944b65082cb 100644 --- a/drivers/net/fs_enet/mii-fec.c +++ b/drivers/net/fs_enet/mii-fec.c | |||
@@ -52,7 +52,7 @@ | |||
52 | static int fs_enet_fec_mii_read(struct mii_bus *bus , int phy_id, int location) | 52 | static int fs_enet_fec_mii_read(struct mii_bus *bus , int phy_id, int location) |
53 | { | 53 | { |
54 | struct fec_info* fec = bus->priv; | 54 | struct fec_info* fec = bus->priv; |
55 | fec_t __iomem *fecp = fec->fecp; | 55 | struct fec __iomem *fecp = fec->fecp; |
56 | int i, ret = -1; | 56 | int i, ret = -1; |
57 | 57 | ||
58 | BUG_ON((in_be32(&fecp->fec_r_cntrl) & FEC_RCNTRL_MII_MODE) == 0); | 58 | BUG_ON((in_be32(&fecp->fec_r_cntrl) & FEC_RCNTRL_MII_MODE) == 0); |
@@ -75,7 +75,7 @@ static int fs_enet_fec_mii_read(struct mii_bus *bus , int phy_id, int location) | |||
75 | static int fs_enet_fec_mii_write(struct mii_bus *bus, int phy_id, int location, u16 val) | 75 | static int fs_enet_fec_mii_write(struct mii_bus *bus, int phy_id, int location, u16 val) |
76 | { | 76 | { |
77 | struct fec_info* fec = bus->priv; | 77 | struct fec_info* fec = bus->priv; |
78 | fec_t __iomem *fecp = fec->fecp; | 78 | struct fec __iomem *fecp = fec->fecp; |
79 | int i; | 79 | int i; |
80 | 80 | ||
81 | /* this must never happen */ | 81 | /* this must never happen */ |