瀏覽代碼

gpio-stp-xway: Fix enabling the highest bit of the PHY LEDs

0x3 only masks two bits, but three bits have to be allowed. This fixes
GPHY0 LED2 (which is the highest bit of phy2) on my board.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Acked-by: John Crispin <blogic@openwrt.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Martin Blumenstingl 10 年之前
父節點
當前提交
08b085a07e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/gpio/gpio-stp-xway.c

+ 1 - 1
drivers/gpio/gpio-stp-xway.c

@@ -58,7 +58,7 @@
 #define XWAY_STP_ADSL_MASK	0x3
 #define XWAY_STP_ADSL_MASK	0x3
 
 
 /* 2 groups of 3 bits can be driven by the phys */
 /* 2 groups of 3 bits can be driven by the phys */
-#define XWAY_STP_PHY_MASK	0x3
+#define XWAY_STP_PHY_MASK	0x7
 #define XWAY_STP_PHY1_SHIFT	27
 #define XWAY_STP_PHY1_SHIFT	27
 #define XWAY_STP_PHY2_SHIFT	15
 #define XWAY_STP_PHY2_SHIFT	15