2 * Atheros AR71xx SoC specific platform definitions
4 * Copyright (C) 2008 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/skbuff.h>
16 #include <linux/phy.h>
17 #include <linux/spi/spi.h>
19 struct ag71xx_platform_data {
23 phy_interface_t phy_if_mode;
27 struct ar71xx_spi_platform_data {
29 unsigned num_chipselect;
30 u32 (*get_ioc_base)(u8 chip_select, int cs_high, int is_on);
33 #define AR71XX_SPI_CS_INACTIVE 0
34 #define AR71XX_SPI_CS_ACTIVE 1
36 extern void ar71xx_add_device_spi(struct ar71xx_spi_platform_data *pdata,
37 struct spi_board_info const *info,
39 extern void ar71xx_add_device_eth(unsigned int id, phy_interface_t phy_if_mode,
42 #endif /* __ASM_MACH_AR71XX_PLATFORM_H */