mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt7603: add LED definition registers
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -485,6 +485,24 @@ enum {
|
||||
#define MT_TX_HW_QUEUE_BCN 7
|
||||
#define MT_TX_HW_QUEUE_BMC 8
|
||||
|
||||
#define MT_LED_BASE_PHYS 0x80024000
|
||||
#define MT_LED_PHYS(_n) (MT_LED_BASE_PHYS + (_n))
|
||||
|
||||
#define MT_LED_CTRL MT_LED_PHYS(0x00)
|
||||
|
||||
#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_TX_MANUAL_BLINK(_n) BIT(3 + (8 * (_n)))
|
||||
#define MT_LED_CTRL_TX_OVER_BLINK(_n) BIT(5 + (8 * (_n)))
|
||||
#define MT_LED_CTRL_KICK(_n) BIT(7 + (8 * (_n)))
|
||||
|
||||
#define MT_LED_STATUS_0(_n) MT_LED_PHYS(0x10 + ((_n) * 8))
|
||||
#define MT_LED_STATUS_1(_n) MT_LED_PHYS(0x14 + ((_n) * 8))
|
||||
#define MT_LED_STATUS_OFF GENMASK(31, 24)
|
||||
#define MT_LED_STATUS_ON GENMASK(23, 16)
|
||||
#define MT_LED_STATUS_DURATION GENMASK(15, 0)
|
||||
|
||||
#define MT_CLIENT_BASE_PHYS_ADDR 0x800c0000
|
||||
|
||||
#define MT_CLIENT_TMAC_INFO_TEMPLATE 0x040
|
||||
|
||||
Reference in New Issue
Block a user