2007-11-08 15:24:51 +00:00
|
|
|
/*
|
|
|
|
* (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
|
|
|
|
|
2012-08-09 07:49:51 +00:00
|
|
|
#include <linux/phy.h>
|
|
|
|
|
2009-02-20 17:08:05 +00:00
|
|
|
/*
|
2007-11-09 11:01:18 +00:00
|
|
|
* Define the phy connected externally for FEC drivers
|
|
|
|
* (like MPC52xx and i.MX27)
|
2007-11-08 15:24:51 +00:00
|
|
|
*/
|
|
|
|
struct fec_platform_data {
|
2013-03-07 21:33:08 +00:00
|
|
|
phy_interface_t xcv_type;
|
2009-02-20 17:08:05 +00:00
|
|
|
int phy_addr;
|
2012-08-09 07:49:51 +00:00
|
|
|
void (*phy_init)(struct phy_device *dev);
|
2007-11-08 15:24:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __INCLUDE_NETWORK_FEC_H */
|
2009-02-20 17:08:05 +00:00
|
|
|
|