generic: ar8216: add custom LED support for the AR8327 switch
[15.05/openwrt.git] / target / linux / generic / files / drivers / net / phy / ar8216.h
index 2244c4f..00d6d7f 100644 (file)
 #define   AR8316_POSTRIP_POWER_ON_SEL          BIT(31)
 
 #define AR8327_NUM_PORTS       7
+#define AR8327_NUM_LEDS                15
 #define AR8327_NUM_PHYS                5
 #define AR8327_PORTS_ALL       0x7f
+#define AR8327_NUM_LED_CTRL_REGS       4
 
 #define AR8327_REG_MASK                                0x000
 
 #define   AR8327_MIB_CPU_KEEP                  BIT(20)
 
 #define AR8327_REG_SERVICE_TAG                 0x048
+#define AR8327_REG_LED_CTRL(_i)                        (0x050 + (_i) * 4)
 #define AR8327_REG_LED_CTRL0                   0x050
 #define AR8327_REG_LED_CTRL1                   0x054
 #define AR8327_REG_LED_CTRL2                   0x058