2 * Atheros AR71xx SoC specific platform data definitions
4 * Copyright (C) 2008-2012 Gabor Juhos <juhosg@openwrt.org>
5 * Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License version 2 as published
9 * by the Free Software Foundation.
12 #ifndef __ASM_MACH_ATH79_PLATFORM_H
13 #define __ASM_MACH_ATH79_PLATFORM_H
15 #include <linux/if_ether.h>
16 #include <linux/skbuff.h>
17 #include <linux/phy.h>
18 #include <linux/spi/spi.h>
20 struct ag71xx_switch_platform_data
{
25 struct ag71xx_platform_data
{
26 phy_interface_t phy_if_mode
;
31 u8 mac_addr
[ETH_ALEN
];
32 struct device
*mii_bus_dev
;
40 struct ag71xx_switch_platform_data
*switch_data
;
42 void (*ddr_flush
)(void);
43 void (*set_speed
)(int speed
);
49 unsigned int max_frame_len
;
50 unsigned int desc_pktlen_mask
;
53 struct ag71xx_mdio_platform_data
{
59 unsigned long mdio_clock
;
60 unsigned long ref_clock
;
62 void (*reset
)(struct mii_bus
*bus
);
65 #endif /* __ASM_MACH_ATH79_PLATFORM_H */