ar71xx: build ALFA AP96 images with default profile as well
[oweals/openwrt.git] / target / linux / ar71xx / files / arch / mips / include / asm / mach-ar71xx / platform.h
index 5644fc956b23022ae3b304ce1cb1355d376a2dc3..206c4d75009677cd7f9b5634c7697aad27a05010 100644 (file)
 #include <linux/skbuff.h>
 #include <linux/phy.h>
 #include <linux/spi/spi.h>
-#include <linux/mtd/mtd.h>
-#include <linux/mtd/partitions.h>
+
+struct ag71xx_switch_platform_data {
+       u8              phy4_mii_en:1;
+};
 
 struct ag71xx_platform_data {
        phy_interface_t phy_if_mode;
@@ -25,19 +27,28 @@ struct ag71xx_platform_data {
        int             speed;
        int             duplex;
        u32             reset_bit;
-       u32             mii_if;
        u8              mac_addr[ETH_ALEN];
+       struct device   *mii_bus_dev;
 
        u8              has_gbit:1;
        u8              is_ar91xx:1;
+       u8              is_ar7240:1;
+       u8              is_ar724x:1;
        u8              has_ar8216:1;
 
-       void            (* ddr_flush)(void);
-       void            (* set_pll)(int speed);
+       struct ag71xx_switch_platform_data *switch_data;
+
+       void            (*ddr_flush)(void);
+       void            (*set_speed)(int speed);
+
+       u32             fifo_cfg1;
+       u32             fifo_cfg2;
+       u32             fifo_cfg3;
 };
 
 struct ag71xx_mdio_platform_data {
        u32             phy_mask;
+       int             is_ar7240;
 };
 
 struct ar71xx_ehci_platform_data {
@@ -53,13 +64,4 @@ struct ar71xx_spi_platform_data {
 #define AR71XX_SPI_CS_INACTIVE 0
 #define AR71XX_SPI_CS_ACTIVE   1
 
-struct ar91xx_flash_platform_data {
-       unsigned int            width;
-       u8                      is_shared:1;
-#ifdef CONFIG_MTD_PARTITIONS
-       unsigned int            nr_parts;
-       struct mtd_partition    *parts;
-#endif
-};
-
 #endif /* __ASM_MACH_AR71XX_PLATFORM_H */