ar71xx: build ALFA AP96 images with default profile as well
[oweals/openwrt.git] / target / linux / ar71xx / files / arch / mips / ar71xx / mach-tl-wr1043nd.c
index 1cf01684863b0ba66f9d4d677f084442220375e2..3a844b774019f4dfda91fb13909c6791179ca6b3 100644 (file)
@@ -8,10 +8,8 @@
  *  by the Free Software Foundation.
  */
 
-#include <linux/mtd/mtd.h>
-#include <linux/mtd/partitions.h>
 #include <linux/platform_device.h>
-#include <linux/rtl8366rb.h>
+#include <linux/rtl8366.h>
 #include <asm/mach-ar71xx/ar71xx.h>
 
 #include "machtype.h"
 #define TL_WR1043ND_KEYS_POLL_INTERVAL 20      /* msecs */
 #define TL_WR1043ND_KEYS_DEBOUNCE_INTERVAL (3 * TL_WR1043ND_KEYS_POLL_INTERVAL)
 
-#ifdef CONFIG_MTD_PARTITIONS
-static struct mtd_partition tl_wr1043nd_partitions[] = {
-       {
-               .name           = "u-boot",
-               .offset         = 0,
-               .size           = 0x020000,
-               .mask_flags     = MTD_WRITEABLE,
-       }, {
-               .name           = "kernel",
-               .offset         = 0x020000,
-               .size           = 0x140000,
-       }, {
-               .name           = "rootfs",
-               .offset         = 0x160000,
-               .size           = 0x690000,
-       }, {
-               .name           = "art",
-               .offset         = 0x7f0000,
-               .size           = 0x010000,
-               .mask_flags     = MTD_WRITEABLE,
-       }, {
-               .name           = "firmware",
-               .offset         = 0x020000,
-               .size           = 0x7d0000,
-       }
+static const char *tl_wr1043nd_part_probes[] = {
+       "tp-link",
+       NULL,
 };
-#endif /* CONFIG_MTD_PARTITIONS */
 
 static struct flash_platform_data tl_wr1043nd_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
-       .parts          = tl_wr1043nd_partitions,
-       .nr_parts       = ARRAY_SIZE(tl_wr1043nd_partitions),
-#endif
+       .part_probes    = tl_wr1043nd_part_probes,
 };
 
 static struct gpio_led tl_wr1043nd_leds_gpio[] __initdata = {
        {
-               .name           = "tl-wr1043nd:green:usb",
+               .name           = "tp-link:green:usb",
                .gpio           = TL_WR1043ND_GPIO_LED_USB,
                .active_low     = 1,
        }, {
-               .name           = "tl-wr1043nd:green:system",
+               .name           = "tp-link:green:system",
                .gpio           = TL_WR1043ND_GPIO_LED_SYSTEM,
                .active_low     = 1,
        }, {
-               .name           = "tl-wr1043nd:green:qss",
+               .name           = "tp-link:green:qss",
                .gpio           = TL_WR1043ND_GPIO_LED_QSS,
                .active_low     = 0,
        }, {
-               .name           = "tl-wr1043nd:green:wlan",
+               .name           = "tp-link:green:wlan",
                .gpio           = TL_WR1043ND_GPIO_LED_WLAN,
                .active_low     = 1,
        }
@@ -109,7 +81,7 @@ static struct gpio_keys_button tl_wr1043nd_gpio_keys[] __initdata = {
        }
 };
 
-static struct rtl8366rb_platform_data tl_wr1043nd_rtl8366rb_data = {
+static struct rtl8366_platform_data tl_wr1043nd_rtl8366rb_data = {
        .gpio_sda        = TL_WR1043ND_GPIO_RTL8366_SDA,
        .gpio_sck        = TL_WR1043ND_GPIO_RTL8366_SCK,
 };