diff options
author | TsiChung Liew <Tsi-Chung.Liew@freescale.com> | 2008-10-21 13:47:54 +0000 |
---|---|---|
committer | John Rigby <jrigby@freescale.com> | 2008-11-03 09:45:58 -0700 |
commit | f3962d3f574e5a1cffacd4e9bc48713060a2a314 (patch) | |
tree | 5dcca16fdfcc984a4ebdd85f4d25797ad877e0e1 /include/asm-m68k/fec.h | |
parent | 6e80f5aa09f8d41bac50b38dc7488ecd22107802 (diff) | |
download | u-boot-imx-f3962d3f574e5a1cffacd4e9bc48713060a2a314.zip u-boot-imx-f3962d3f574e5a1cffacd4e9bc48713060a2a314.tar.gz u-boot-imx-f3962d3f574e5a1cffacd4e9bc48713060a2a314.tar.bz2 |
ColdFire: Relocate FEC's GPIO and mii functions protocols
Place FEC pin assignments in cpu_init.c from platform's
mii.c
Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
Diffstat (limited to 'include/asm-m68k/fec.h')
-rw-r--r-- | include/asm-m68k/fec.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asm-m68k/fec.h b/include/asm-m68k/fec.h index e639599..49311e5 100644 --- a/include/asm-m68k/fec.h +++ b/include/asm-m68k/fec.h @@ -351,4 +351,16 @@ typedef struct fec { #define FEC_RESET_DELAY 100 #define FEC_RX_TOUT 100 +int fecpin_setclear(struct eth_device *dev, int setclear); + +#ifdef CONFIG_SYS_DISCOVER_PHY +void __mii_init(void); +uint mii_send(uint mii_cmd); +int mii_discover_phy(struct eth_device *dev); +int mcffec_miiphy_read(char *devname, unsigned char addr, + unsigned char reg, unsigned short *value); +int mcffec_miiphy_write(char *devname, unsigned char addr, + unsigned char reg, unsigned short value); +#endif + #endif /* fec_h */ |