ar71xx: Bitmain Antminer S1/S3 set GPIO for USB Power
[openwrt.git] / target / linux / ar71xx / files / arch / mips / ath79 / mach-wzr-hp-ag300h.c
index aa035c8..edd48f2 100644 (file)
@@ -36,28 +36,21 @@ static struct mtd_partition wzrhpag300h_flash_partitions[] = {
                .name           = "u-boot-env",
                .offset         = 0x0040000,
                .size           = 0x0010000,
+               .mask_flags     = MTD_WRITEABLE,
        }, {
                .name           = "art",
                .offset         = 0x0050000,
                .size           = 0x0010000,
                .mask_flags     = MTD_WRITEABLE,
        }, {
-               .name           = "kernel",
+               .name           = "firmware",
                .offset         = 0x0060000,
-               .size           = 0x0100000,
-       }, {
-               .name           = "rootfs",
-               .offset         = 0x0160000,
-               .size           = 0x1e90000,
+               .size           = 0x1f90000,
        }, {
                .name           = "user_property",
                .offset         = 0x1ff0000,
                .size           = 0x0010000,
                .mask_flags     = MTD_WRITEABLE,
-       }, {
-               .name           = "firmware",
-               .offset         = 0x0060000,
-               .size           = 0x1f90000,
        }
 };
 
@@ -139,21 +132,21 @@ static struct gpio_keys_button wzrhpag300h_gpio_keys[] __initdata = {
                .active_low     = 1,
        }, {
                .desc           = "router_auto",
-               .type           = EV_KEY,
+               .type           = EV_SW,
                .code           = BTN_6,
                .debounce_interval = WZRHPAG300H_KEYS_DEBOUNCE_INTERVAL,
                .gpio           = 6,
                .active_low     = 1,
        }, {
                .desc           = "router_off",
-               .type           = EV_KEY,
+               .type           = EV_SW,
                .code           = BTN_5,
                .debounce_interval = WZRHPAG300H_KEYS_DEBOUNCE_INTERVAL,
                .gpio           = 7,
                .active_low     = 1,
        }, {
                .desc           = "movie_engine",
-               .type           = EV_KEY,
+               .type           = EV_SW,
                .code           = BTN_7,
                .debounce_interval = WZRHPAG300H_KEYS_DEBOUNCE_INTERVAL,
                .gpio           = 8,
@@ -209,8 +202,4 @@ static void __init wzrhpag300h_setup(void)
 }
 
 MIPS_MACHINE(ATH79_MACH_WZR_HP_AG300H, "WZR-HP-AG300H",
-            "Buffalo WZR-HP-AG300H", wzrhpag300h_setup);
-
-MIPS_MACHINE(ATH79_MACH_WZR_600DHP, "WZR-600DHP",
-            "Buffalo WZR-600DHP", wzrhpag300h_setup);
-
+            "Buffalo WZR-HP-AG300H/WZR-600DHP", wzrhpag300h_setup);