diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-10-14 04:52:00 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-02-02 12:24:24 -0500 |
commit | ac45af4e63ea925f4accc98453aab1a1166c196d (patch) | |
tree | a930d47a61b2a5c7e50f77960048252c2e75bd49 /drivers/net/bfin_mac.h | |
parent | 6b310a05f0d10c751f22468040932139f71c71d3 (diff) | |
download | u-boot-imx-ac45af4e63ea925f4accc98453aab1a1166c196d.zip u-boot-imx-ac45af4e63ea925f4accc98453aab1a1166c196d.tar.gz u-boot-imx-ac45af4e63ea925f4accc98453aab1a1166c196d.tar.bz2 |
Blackfin: bfin_mac: cleanup MII/PHY functions
Cleanup and rewrite the MII/PHY related functions so that we can reuse the
existing common linux/miiphy.h code and hook into the `mii` command.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'drivers/net/bfin_mac.h')
-rw-r--r-- | drivers/net/bfin_mac.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/net/bfin_mac.h b/drivers/net/bfin_mac.h index c8a94d0..c41b4d4 100644 --- a/drivers/net/bfin_mac.h +++ b/drivers/net/bfin_mac.h @@ -10,28 +10,8 @@ #define __BFIN_MAC_H__ #define PHYADDR 0x01 -#define NO_PHY_REGS 0x20 - -#define DEFAULT_PHY_PHYID1 0x0007 -#define DEFAULT_PHY_PHYID2 0xC0A3 -#define PHY_MODECTL 0x00 -#define PHY_MODESTAT 0x01 -#define PHY_PHYID1 0x02 -#define PHY_PHYID2 0x03 -#define PHY_ANAR 0x04 -#define PHY_ANLPAR 0x05 -#define PHY_ANER 0x06 - -#define PHY_RESET 0x8000 -#define PHY_ANEG_EN 0x1000 -#define PHY_DUPLEX 0x0100 -#define PHY_SPD_SET 0x2000 - #define RECV_BUFSIZE (0x614) -typedef volatile u32 reg32; -typedef volatile u16 reg16; - typedef struct ADI_DMA_CONFIG_REG { u16 b_DMA_EN:1; /* 0 Enabled */ u16 b_WNR:1; /* 1 Direction */ @@ -79,11 +59,6 @@ static void bfin_EMAC_halt(struct eth_device *dev); static int bfin_EMAC_send(struct eth_device *dev, volatile void *packet, int length); static int bfin_EMAC_recv(struct eth_device *dev); -static void PollMdcDone(void); -static void WrPHYReg(u16 PHYAddr, u16 RegAddr, u16 Data); -static u16 RdPHYReg(u16 PHYAddr, u16 RegAddr); -static int SetupSystemRegs(int *opmode); - static void bfin_EMAC_setup_addr(bd_t *bd); #endif |