linux-mips
[Top] [All Lists]

[3.17][PATCH 2/2] MIPS: BCM47XX: Fix LEDs on WRT54GS V1.0

To: linux-mips@linux-mips.org, Ralf Baechle <ralf@linux-mips.org>
Subject: [3.17][PATCH 2/2] MIPS: BCM47XX: Fix LEDs on WRT54GS V1.0
From: Rafał Miłecki <zajec5@gmail.com>
Date: Fri, 20 Jun 2014 07:56:40 +0200
Cc: Hauke Mehrtens <hauke@hauke-m.de>, Catalin Patulea <cat@vv.carleton.ca>, Rafał Miłecki <zajec5@gmail.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=20I1StT2cPvvWCSyDWbVWZy6rcpJNsqpJSIqHTV48Sc=; b=R0TbM8AUwMU2OT8F/DfqxRZ315PuGEUDrd3Lz5lm/2dqdj8f174xKcohDdsyiYqw2I CMcqHPNwvCinhgy+zlMRV7pBBMGgmcA1PsL4CMih/3wgfOl/5lZWwMCAiW+FymgiHtN8 d2V3FgnTSlcEs58LH9zpRqZb0DY0U/eBGNyk0DBUATxB78ekV1a5LUGNhEL2ka0xPYQt ymvAgV8PgbLwwe2NY7Pu8ZaEtyttm+IPxHcKuFIUbbBIRW+yhvoF8o7nydIRuRbNWZ25 jtn9tj2OwkFgGErkoy8XOnkK2hBrTwb91fnq8liBMvK7D/Q6ckXi70dnauHqpAXNBcgr ETgQ==
In-reply-to: <1403243800-7849-1-git-send-email-zajec5@gmail.com>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1403243800-7849-1-git-send-email-zajec5@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
Reported-by: Catalin Patulea <cat@vv.carleton.ca>
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
---
 arch/mips/bcm47xx/leds.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/mips/bcm47xx/leds.c b/arch/mips/bcm47xx/leds.c
index 909e00f..23324e3 100644
--- a/arch/mips/bcm47xx/leds.c
+++ b/arch/mips/bcm47xx/leds.c
@@ -306,6 +306,14 @@ bcm47xx_leds_linksys_wrt54g3gv2[] __initconst = {
        BCM47XX_GPIO_LED(3, "blue", "3g", 0, LEDS_GPIO_DEFSTATE_OFF),
 };
 
+/* Verified on: WRT54GS V1.0 */
+static const struct gpio_led
+bcm47xx_leds_linksys_wrt54g_type_0101[] __initconst = {
+       BCM47XX_GPIO_LED(0, "green", "wlan", 0, LEDS_GPIO_DEFSTATE_OFF),
+       BCM47XX_GPIO_LED(1, "green", "power", 0, LEDS_GPIO_DEFSTATE_ON),
+       BCM47XX_GPIO_LED(7, "green", "dmz", 1, LEDS_GPIO_DEFSTATE_OFF),
+};
+
 static const struct gpio_led
 bcm47xx_leds_linksys_wrt610nv1[] __initconst = {
        BCM47XX_GPIO_LED(0, "unk", "usb",  1, LEDS_GPIO_DEFSTATE_OFF),
@@ -542,6 +550,8 @@ void __init bcm47xx_leds_register(void)
                bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt54g3gv2);
                break;
        case BCM47XX_BOARD_LINKSYS_WRT54G_TYPE_0101:
+               bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt54g_type_0101);
+               break;
        case BCM47XX_BOARD_LINKSYS_WRT54G_TYPE_0467:
        case BCM47XX_BOARD_LINKSYS_WRT54G_TYPE_0708:
                bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt54g_generic);
-- 
1.8.4.5


<Prev in Thread] Current Thread [Next in Thread>