2 * Atheros AR71xx SoC specific platform data definitions
4 * Copyright (C) 2008-2009 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_AR71XX_PLATFORM_H
13 #define __ASM_MACH_AR71XX_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_platform_data
{
21 phy_interface_t phy_if_mode
;
26 u8 mac_addr
[ETH_ALEN
];
27 struct device
*mii_bus_dev
;
34 u8 has_ar7240_switch
:1;
36 void (*ddr_flush
)(void);
37 void (*set_speed
)(int speed
);
44 struct ag71xx_mdio_platform_data
{
49 struct ar71xx_ehci_platform_data
{
53 struct ar71xx_spi_platform_data
{
55 unsigned num_chipselect
;
56 u32 (*get_ioc_base
)(u8 chip_select
, int cs_high
, int is_on
);
59 #define AR71XX_SPI_CS_INACTIVE 0
60 #define AR71XX_SPI_CS_ACTIVE 1
62 #endif /* __ASM_MACH_AR71XX_PLATFORM_H */