X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fbrcm63xx%2Fpatches-3.18%2F513-MIPS-BCM63XX-add-inventel-Livebox-support.patch;h=3842f7b9ce4310c3569f43014b7b9c1cfdb94856;hb=096b3759a98cdbbc710d8620e948eaa7ee2045ed;hp=3414379969db558b41496acdb1250a46e6daadc0;hpb=f3c071b376164795bcd1c582fdbd4d4ffec3398f;p=openwrt%2Fopenwrt.git diff --git a/target/linux/brcm63xx/patches-3.18/513-MIPS-BCM63XX-add-inventel-Livebox-support.patch b/target/linux/brcm63xx/patches-3.18/513-MIPS-BCM63XX-add-inventel-Livebox-support.patch index 3414379969..3842f7b9ce 100644 --- a/target/linux/brcm63xx/patches-3.18/513-MIPS-BCM63XX-add-inventel-Livebox-support.patch +++ b/target/linux/brcm63xx/patches-3.18/513-MIPS-BCM63XX-add-inventel-Livebox-support.patch @@ -57,7 +57,7 @@ Subject: [PATCH] MIPS: BCM63XX: add inventel Livebox support #endif /* __BOARD_COMMON_H */ --- /dev/null +++ b/arch/mips/bcm63xx/boards/board_livebox.c -@@ -0,0 +1,215 @@ +@@ -0,0 +1,164 @@ +/* + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive @@ -82,9 +82,6 @@ Subject: [PATCH] MIPS: BCM63XX: add inventel Livebox support + +#define PFX "board_livebox: " + -+#define LIVEBOX_KEYS_POLL_INTERVAL 20 -+#define LIVEBOX_KEYS_DEBOUNCE_INTERVAL (LIVEBOX_KEYS_POLL_INTERVAL * 3) -+ +static unsigned int mac_addr_used = 0; + +/* @@ -111,7 +108,7 @@ Subject: [PATCH] MIPS: BCM63XX: add inventel Livebox support + }, + + .ephy_reset_gpio = 6, -+ .ephy_reset_gpio_flags = GPIOF_INIT_HIGH, ++ .ephy_reset_gpio_flags = GPIO_ACTIVE_LOW, + + .has_ohci0 = 1, + .has_pccard = 1, @@ -123,54 +120,6 @@ Subject: [PATCH] MIPS: BCM63XX: add inventel Livebox support + .cs = 2, + .ext_irq = 2, + }, -+ -+ .leds = { -+ { -+ .name = "Livebox-blue-5g:red:adsl-fail", -+ .gpio = 0, -+ .active_low = 0, -+ .default_trigger = "default-on", -+ }, -+ { -+ .name = "Livebox-blue-5g:red:adsl", -+ .gpio = 1, -+ }, -+ { -+ .name = "Livebox-blue-5g:red:traffic", -+ .gpio = 2, -+ }, -+ { -+ .name = "Livebox-blue-5g:red:phone", -+ .gpio = 3, -+ }, -+ { -+ .name = "Livebox-blue-5g:red:wifi", -+ .gpio = 4, -+ }, -+ }, -+ -+ .buttons = { -+ { -+ .desc = "BTN_1", -+ .gpio = 36, -+ .active_low = 1, -+ .type = EV_KEY, -+ .code = BTN_1, -+ .debounce_interval = LIVEBOX_KEYS_DEBOUNCE_INTERVAL, -+ }, -+ { -+ .desc = "BTN_2", -+ .gpio = 7, -+ .active_low = 1, -+ .type = EV_KEY, -+ .code = BTN_2, -+ .debounce_interval = LIVEBOX_KEYS_DEBOUNCE_INTERVAL, -+ }, -+ -+ }, -+ -+ .ephy_reset_gpio = 6, -+ .ephy_reset_gpio_flags = GPIOF_INIT_HIGH, +}; +#endif +