diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-04-12 10:09:08 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-04-15 08:44:41 +0200 |
commit | 51b03f48448ec6fe99929a75d792cedc4def4a51 (patch) | |
tree | 25899a3b47a28dcf85c1320a941f38213cc4472d /include/platform_data | |
parent | 4fc192f6be10348024eeb357494c4dbc937deabd (diff) | |
download | barebox-51b03f48448ec6fe99929a75d792cedc4def4a51.tar.gz barebox-51b03f48448ec6fe99929a75d792cedc4def4a51.tar.xz |
include: Move fec eth platform_data to include/platform_data
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/platform_data')
-rw-r--r-- | include/platform_data/eth-fec.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/include/platform_data/eth-fec.h b/include/platform_data/eth-fec.h new file mode 100644 index 0000000000..699761a998 --- /dev/null +++ b/include/platform_data/eth-fec.h @@ -0,0 +1,37 @@ +/* + * (C) Copyright 2007 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de> + * (C) Copyright 2007 Pengutronix, Juergen Beisert <j.beisert@pengutronix.de> + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + */ + +/** + * @file + * @brief Shared structures and constants between i.MX27's and MPC52xx's FEC + */ +#ifndef __INCLUDE_NETWORK_FEC_H +#define __INCLUDE_NETWORK_FEC_H + +#include <linux/phy.h> + +/* + * Define the phy connected externally for FEC drivers + * (like MPC52xx and i.MX27) + */ +struct fec_platform_data { + phy_interface_t xcv_type; + int phy_addr; + void (*phy_init)(struct phy_device *dev); +}; + +#endif /* __INCLUDE_NETWORK_FEC_H */ + |