Skip to content

Commit

Permalink
mt76x2: add LED register definitions
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Oct 27, 2017
1 parent a6fce8a commit f658dd2
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions mt76x2_mcu.h
Expand Up @@ -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
Expand Down

0 comments on commit f658dd2

Please sign in to comment.