diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2009-02-20 18:08:05 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-02-20 18:25:16 +0100 |
commit | 370f550107b57f02c7cb5cdbdf8b6c0872de0acd (patch) | |
tree | f7e8f344b6fb1cc8a4ceab2bc7989cab293a5c3c /include/fec.h | |
parent | 5392235bddf419390817092c00fe8fb8d388a0c7 (diff) | |
download | barebox-370f550107b57f02c7cb5cdbdf8b6c0872de0acd.tar.gz barebox-370f550107b57f02c7cb5cdbdf8b6c0872de0acd.tar.xz |
fec imx27: configure phy address from platform data
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/fec.h')
-rw-r--r-- | include/fec.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/include/fec.h b/include/fec.h index f8247da57a..8f6bdb3fdc 100644 --- a/include/fec.h +++ b/include/fec.h @@ -25,21 +25,23 @@ #ifndef __INCLUDE_NETWORK_FEC_H #define __INCLUDE_NETWORK_FEC_H -/** +/* + * Supported phy types on this platform + */ +typedef enum { + SEVENWIRE, + MII10, + MII100, +} xceiver_type; + +/* * Define the phy connected externally for FEC drivers * (like MPC52xx and i.MX27) */ struct fec_platform_data { - ulong xcv_type; /**< phy's type. See enum xceiver_type */ + xceiver_type xcv_type; + int phy_addr; }; -/** - * Supported phy types on this platform - */ -typedef enum { - SEVENWIRE, /**< 7-wire */ - MII10, /**< MII 10Mbps */ - MII100 /**< MII 100Mbps */ -} xceiver_type; - #endif /* __INCLUDE_NETWORK_FEC_H */ + |