ar71xx: add inital support for the ALFA Network AP96 board
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / files / arch / mips / ar71xx / mach-tl-wr703n.c
index 54733dbd3ba38d2c20b58ede0065ec31cc8c5746..e9c2f25fe3494ef53540b7da0469e8745a54b30d 100644 (file)
@@ -9,9 +9,6 @@
  *  by the Free Software Foundation.
  */
 
-#include <linux/mtd/mtd.h>
-#include <linux/mtd/partitions.h>
-#include <linux/spi/flash.h>
 #include <linux/gpio.h>
 
 #include <asm/mach-ar71xx/ar71xx.h>
 #define TL_WR703N_KEYS_POLL_INTERVAL   20      /* msecs */
 #define TL_WR703N_KEYS_DEBOUNCE_INTERVAL       (3 * TL_WR703N_KEYS_POLL_INTERVAL)
 
-#ifdef CONFIG_MTD_PARTITIONS
-static struct mtd_partition tl_wr703n_parts[] = {
-       {
-               .name           = "u-boot",
-               .offset         = 0,
-               .size           = 0x020000,
-               .mask_flags     = MTD_WRITEABLE,
-       }, {
-               .name           = "kernel",
-               .offset         = 0x020000,
-               .size           = 0x100000,
-       }, {
-               .name           = "rootfs",
-               .offset         = 0x120000,
-               .size           = 0x2d0000,
-       }, {
-               .name           = "art",
-               .offset         = 0x3f0000,
-               .size           = 0x010000,
-               .mask_flags     = MTD_WRITEABLE,
-       }, {
-               .name           = "firmware",
-               .offset         = 0x020000,
-               .size           = 0x3d0000,
-       }
+static const char *tl_wr703n_part_probes[] = {
+       "tp-link",
+       NULL,
 };
-#define tl_wr703n_nr_parts     ARRAY_SIZE(tl_wr703n_parts)
-#else
-#define tl_wr703n_parts                NULL
-#define tl_wr703n_nr_parts     0
-#endif /* CONFIG_MTD_PARTITIONS */
 
 static struct flash_platform_data tl_wr703n_flash_data = {
-       .parts          = tl_wr703n_parts,
-       .nr_parts       = tl_wr703n_nr_parts,
+       .part_probes    = tl_wr703n_part_probes,
 };
 
 static struct gpio_led tl_wr703n_leds_gpio[] __initdata = {
@@ -106,11 +75,6 @@ static void __init tl_wr703n_setup(void)
 
        ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac, 0);
 
-       ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
-       ar71xx_eth0_data.speed = SPEED_100;
-       ar71xx_eth0_data.duplex = DUPLEX_FULL;
-       ar71xx_eth0_data.phy_mask = BIT(4);
-
        ar71xx_add_device_mdio(0, 0x0);
        ar71xx_add_device_eth(0);