summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mediatek/mt76/mt7615/eeprom.h
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo@kernel.org>2020-05-02 01:13:11 +0200
committerFelix Fietkau <nbd@nbd.name>2020-05-12 19:52:34 +0200
commiteb7bd8d7fb727dcdbf4b1c145bba1169bc3c2d4a (patch)
tree14719e99d2e639773580a7f61dc9d37278d314c2 /drivers/net/wireless/mediatek/mt76/mt7615/eeprom.h
parentmt76: mt7615: introduce beacon_loss mcu event (diff)
downloadlinux-eb7bd8d7fb727dcdbf4b1c145bba1169bc3c2d4a.tar.xz
linux-eb7bd8d7fb727dcdbf4b1c145bba1169bc3c2d4a.zip
mt76: mt7663: read tx streams from eeprom
Read tx stream configuration from eeprom/efuse Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7615/eeprom.h')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt7615/eeprom.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/eeprom.h b/drivers/net/wireless/mediatek/mt76/mt7615/eeprom.h
index 3dd7009e5836..aad82b600c63 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7615/eeprom.h
+++ b/drivers/net/wireless/mediatek/mt76/mt7615/eeprom.h
@@ -39,6 +39,7 @@ enum mt7615_eeprom_field {
MT7663_EE_TX0_2G_TARGET_POWER = 0x123,
MT_EE_TX2_5G_G0_TARGET_POWER = 0x142,
MT_EE_TX3_5G_G0_TARGET_POWER = 0x16a,
+ MT7663_EE_HW_CONF1 = 0x1b0,
MT7615_EE_MAX = 0x3bf,
MT7622_EE_MAX = 0x3db,
@@ -55,6 +56,8 @@ enum mt7615_eeprom_field {
#define MT_EE_NIC_CONF_TX_MASK GENMASK(7, 4)
#define MT_EE_NIC_CONF_RX_MASK GENMASK(3, 0)
+#define MT_EE_HW_CONF1_TX_MASK GENMASK(2, 0)
+
#define MT_EE_NIC_CONF_TSSI_2G BIT(5)
#define MT_EE_NIC_CONF_TSSI_5G BIT(6)