openwrt/target/linux/brcm63xx/patches-4.14/392-MIPS-BCM63XX-remove-leds-and-buttons.patch
Koen Vandeputte 4eba86820f kernel: bump 4.14 to 4.14.169
Refreshed all patches.

Fixes:
- CVE-2019-14896
- CVE-2019-14897

Remove upstreamed:
- 023-0007-crypto-crypto4xx-Fix-wrong-ppc4xx_trng_probe-ppc4xx_.patch

Altered patches:
- 102-MIPS-BCM63XX-move-code-touching-the-USB-private-regi.patch
- 105-MIPS-BCM63XX-add-support-for-the-on-chip-OHCI-contro.patch
- 106-MIPS-BCM63XX-register-OHCI-controller-if-board-enabl.patch
- 108-MIPS-BCM63XX-add-support-for-the-on-chip-EHCI-contro.patch
- 207-MIPS-BCM63XX-move-device-registration-code-into-its-.patch
- 350-MIPS-BCM63XX-support-settings-num-usbh-ports.patch
- 356-MIPS-BCM63XX-move-fallback-sprom-support-into-its-ow.patch
- 390-MIPS-BCM63XX-do-not-register-SPI-controllers.patch
- 391-MIPS-BCM63XX-do-not-register-uart.patch
- 392-MIPS-BCM63XX-remove-leds-and-buttons.patch
- 416-BCM63XX-add-a-fixup-for-ath9k-devices.patch
- 422-BCM63XX-add-a-fixup-for-rt2x00-devices.patch
-

Compile-tested on: brcm63xx, cns3xxx
Runtime-tested on: cns3xxx

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2020-02-04 18:12:19 +01:00

342 lines
5.6 KiB
Diff

From 997f53b174c63153335508c22dc4493e8e5808d6 Mon Sep 17 00:00:00 2001
From: Jonas Gorski <jogo@openwrt.org>
Date: Sun, 22 Feb 2015 17:52:32 +0100
Subject: [PATCH] MIPS: BCM63XX: remove leds and buttons
---
arch/mips/bcm63xx/boards/board_bcm963xx.c | 262 -----------------------------
1 file changed, 262 deletions(-)
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -43,14 +43,6 @@ static struct board_info __initdata boar
.use_internal_phy = 1,
},
- .leds = {
- {
- .name = "CVG834G:green:power",
- .gpio = 37,
- .default_trigger= "default-on",
- },
- },
-
.ephy_reset_gpio = 36,
.ephy_reset_gpio_flags = GPIO_ACTIVE_LOW,
};
@@ -72,35 +64,6 @@ static struct board_info __initdata boar
.use_fullspeed = 0,
.port_no = 0,
},
-
- .leds = {
- {
- .name = "96328avng::ppp-fail",
- .gpio = 2,
- .active_low = 1,
- },
- {
- .name = "96328avng::power",
- .gpio = 4,
- .active_low = 1,
- .default_trigger = "default-on",
- },
- {
- .name = "96328avng::power-fail",
- .gpio = 8,
- .active_low = 1,
- },
- {
- .name = "96328avng::wps",
- .gpio = 9,
- .active_low = 1,
- },
- {
- .name = "96328avng::ppp",
- .gpio = 11,
- .active_low = 1,
- },
- },
};
#endif
@@ -119,35 +82,6 @@ static struct board_info __initdata boar
},
.has_ohci0 = 1,
-
- .leds = {
- {
- .name = "adsl",
- .gpio = 3,
- .active_low = 1,
- },
- {
- .name = "ses",
- .gpio = 5,
- .active_low = 1,
- },
- {
- .name = "ppp-fail",
- .gpio = 4,
- .active_low = 1,
- },
- {
- .name = "power",
- .gpio = 0,
- .active_low = 1,
- .default_trigger = "default-on",
- },
- {
- .name = "stop",
- .gpio = 1,
- .active_low = 1,
- }
- },
};
static struct board_info __initdata board_96338w = {
@@ -159,35 +93,6 @@ static struct board_info __initdata boar
.force_speed_100 = 1,
.force_duplex_full = 1,
},
-
- .leds = {
- {
- .name = "adsl",
- .gpio = 3,
- .active_low = 1,
- },
- {
- .name = "ses",
- .gpio = 5,
- .active_low = 1,
- },
- {
- .name = "ppp-fail",
- .gpio = 4,
- .active_low = 1,
- },
- {
- .name = "power",
- .gpio = 0,
- .active_low = 1,
- .default_trigger = "default-on",
- },
- {
- .name = "stop",
- .gpio = 1,
- .active_low = 1,
- },
- },
};
#endif
@@ -217,36 +122,6 @@ static struct board_info __initdata boar
.has_phy = 1,
.use_internal_phy = 1,
},
-
- .leds = {
- {
- .name = "adsl-fail",
- .gpio = 2,
- .active_low = 1,
- },
- {
- .name = "ppp",
- .gpio = 3,
- .active_low = 1,
- },
- {
- .name = "ppp-fail",
- .gpio = 4,
- .active_low = 1,
- },
- {
- .name = "power",
- .gpio = 0,
- .active_low = 1,
- .default_trigger = "default-on",
-
- },
- {
- .name = "stop",
- .gpio = 1,
- .active_low = 1,
- },
- },
};
static struct board_info __initdata board_96348gw_10 = {
@@ -271,34 +146,6 @@ static struct board_info __initdata boar
.has_pccard = 1,
.has_ehci0 = 1,
- .leds = {
- {
- .name = "adsl-fail",
- .gpio = 2,
- .active_low = 1,
- },
- {
- .name = "ppp",
- .gpio = 3,
- .active_low = 1,
- },
- {
- .name = "ppp-fail",
- .gpio = 4,
- .active_low = 1,
- },
- {
- .name = "power",
- .gpio = 0,
- .active_low = 1,
- .default_trigger = "default-on",
- },
- {
- .name = "stop",
- .gpio = 1,
- .active_low = 1,
- },
- },
};
static struct board_info __initdata board_96348gw_11 = {
@@ -324,35 +171,6 @@ static struct board_info __initdata boar
.has_ohci0 = 1,
.has_pccard = 1,
.has_ehci0 = 1,
-
- .leds = {
- {
- .name = "adsl-fail",
- .gpio = 2,
- .active_low = 1,
- },
- {
- .name = "ppp",
- .gpio = 3,
- .active_low = 1,
- },
- {
- .name = "ppp-fail",
- .gpio = 4,
- .active_low = 1,
- },
- {
- .name = "power",
- .gpio = 0,
- .active_low = 1,
- .default_trigger = "default-on",
- },
- {
- .name = "stop",
- .gpio = 1,
- .active_low = 1,
- },
- },
};
static struct board_info __initdata board_96348gw = {
@@ -375,34 +193,6 @@ static struct board_info __initdata boar
.has_ohci0 = 1,
- .leds = {
- {
- .name = "adsl-fail",
- .gpio = 2,
- .active_low = 1,
- },
- {
- .name = "ppp",
- .gpio = 3,
- .active_low = 1,
- },
- {
- .name = "ppp-fail",
- .gpio = 4,
- .active_low = 1,
- },
- {
- .name = "power",
- .gpio = 0,
- .active_low = 1,
- .default_trigger = "default-on",
- },
- {
- .name = "stop",
- .gpio = 1,
- .active_low = 1,
- },
- },
};
static struct board_info __initdata board_FAST2404 = {
@@ -518,33 +308,6 @@ static struct board_info __initdata boar
.has_ohci0 = 1,
.has_pccard = 1,
.has_ehci0 = 1,
-
- .leds = {
- {
- .name = "adsl-fail",
- .gpio = 15,
- .active_low = 1,
- },
- {
- .name = "ppp",
- .gpio = 22,
- .active_low = 1,
- },
- {
- .name = "ppp-fail",
- .gpio = 23,
- .active_low = 1,
- },
- {
- .name = "power",
- .gpio = 4,
- .default_trigger = "default-on",
- },
- {
- .name = "stop",
- .gpio = 5,
- },
- },
};
static struct board_info __initdata board_96358vw2 = {
@@ -571,29 +334,6 @@ static struct board_info __initdata boar
.has_pccard = 1,
.has_ehci0 = 1,
.num_usbh_ports = 2,
-
- .leds = {
- {
- .name = "adsl",
- .gpio = 22,
- .active_low = 1,
- },
- {
- .name = "ppp-fail",
- .gpio = 23,
- },
- {
- .name = "power",
- .gpio = 5,
- .active_low = 1,
- .default_trigger = "default-on",
- },
- {
- .name = "stop",
- .gpio = 4,
- .active_low = 1,
- },
- },
};
static struct board_info __initdata board_AGPFS0 = {