diff options
author | Josh Cartwright <joshc@eso.teric.us> | 2013-03-15 18:26:00 -0500 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-04-03 17:21:51 +0200 |
commit | 28acd8331de84b4ecb8bc91f56292697bb977b99 (patch) | |
tree | c2ae3e1f5b02fcfb086ff63af8cc1974cd561f35 /include/platform_data | |
parent | 960a3d216a608567d4adccd08006090e694d273c (diff) | |
download | barebox-28acd8331de84b4ecb8bc91f56292697bb977b99.tar.gz barebox-28acd8331de84b4ecb8bc91f56292697bb977b99.tar.xz |
macb: rename platform data
The macb/gem core is used by the Zynq SoC. In preparation of sharing
the macb driver between at91 and Zynq, rename the platform data to
'struct macb_platform_data', and move the definition to a common
location.
Signed-off-by: Josh Cartwright <joshc@eso.teric.us>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/platform_data')
-rw-r--r-- | include/platform_data/macb.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/platform_data/macb.h b/include/platform_data/macb.h new file mode 100644 index 0000000000..9d718630a2 --- /dev/null +++ b/include/platform_data/macb.h @@ -0,0 +1,30 @@ +/* + * [origin Linux: arch/arm/mach-at91/include/mach/board.h] + * + * Copyright (C) 2005 HP Labs + * + * 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. + * + */ +#ifndef __MACB_H +#define __MACB_H + +#include <linux/phy.h> + +struct macb_platform_data { + unsigned int phy_flags; + unsigned int flags; + int phy_addr; + phy_interface_t phy_interface; + int (*get_ethaddr)(struct eth_device*, unsigned char *adr); +}; + +#endif |