mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76x2: add LED register definitions
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+15
-5
@@ -30,11 +30,21 @@
|
||||
#define MT_MCU_PCIE_REMAP_BASE2 0x0744
|
||||
#define MT_MCU_PCIE_REMAP_BASE3 0x0748
|
||||
#define MT_MCU_PCIE_REMAP_BASE4 0x074C
|
||||
#define MT_MCU_LED_CTRL 0x0770
|
||||
#define MT_MCU_LED_TX_BLINK_0 0x0774
|
||||
#define MT_MCU_LED_TX_BLINK_1 0x0778
|
||||
#define MT_MCU_LED0_S0 0x077C
|
||||
#define MT_MCU_LED0_S1 0x0780
|
||||
|
||||
#define MT_LED_CTRL 0x0770
|
||||
#define MT_LED_CTRL_REPLAY(_n) BIT(0 + (8 * (_n)))
|
||||
#define MT_LED_CTRL_POLARITY(_n) BIT(1 + (8 * (_n)))
|
||||
#define MT_LED_CTRL_TX_BLINK_MODE(_n) BIT(2 + (8 * (_n)))
|
||||
#define MT_LED_CTRL_KICK(_n) BIT(7 + (8 * (_n)))
|
||||
|
||||
#define MT_LED_TX_BLINK_0 0x0774
|
||||
#define MT_LED_TX_BLINK_1 0x0778
|
||||
#define MT_LED0_S0 0x077C
|
||||
#define MT_LED0_S1 0x0780
|
||||
#define MT_LED0_STATUS_OFF GENMASK(31, 24)
|
||||
#define MT_LED0_STATUS_ON GENMASK(23, 16)
|
||||
#define MT_LED0_STATUS_DURATION GENMASK(15, 8)
|
||||
|
||||
#define MT_MCU_SEMAPHORE_00 0x07B0
|
||||
#define MT_MCU_SEMAPHORE_01 0x07B4
|
||||
#define MT_MCU_SEMAPHORE_02 0x07B8
|
||||
|
||||
Reference in New Issue
Block a user