Skip to contentSkip to conversation

mt76: connac: introduce mt76_connac_reg_map structure

PATCH New Lorenzo Bianconi 1 participant 1 message Jun 24, 2022

Subsystems (2)
lore
Share & tools
lore

Lorenzo Bianconi

author maintainer
#0 lore raw

PATCH 1/1 mt76: connac: introduce mt76_connac_reg_map structure

Introduce mt76_connac_reg_map structure in mt76-connac module since it is used by all connac2 chipset. Align structure definitions. This is a preliminary patch to add mt7990 chipset support.

---
 .../net/wireless/mediatek/mt76/mt76_connac.h  |   6 +
 .../net/wireless/mediatek/mt76/mt7915/mmio.c  | 254 +++++++++---------
 .../net/wireless/mediatek/mt76/mt7915/regs.h  |   8 +-
 .../net/wireless/mediatek/mt76/mt7921/pci.c   |  76 +++---
 4 files changed, 170 insertions(+), 174 deletions(-)
drivers/net/wireless/mediatek/mt76/mt76_connac.h +6 -0
index 386d5572681d..a46379bdd74b 100644
@@ -63,6 +63,12 @@ enum {
 	REPEATER_BSSID_MAX = 0x3f,
 };
 
+struct mt76_connac_reg_map {
+	u32 phys;
+	u32 maps;
+	u32 size;
+};
+
 struct mt76_connac_pm {
 	bool enable:1;
 	bool enable_user:1;
drivers/net/wireless/mediatek/mt76/mt7915/mmio.c +127 -127

274 lines not on this page · raw message

drivers/net/wireless/mediatek/mt76/mt7915/regs.h +1 -7
index 77fd448beed7..51f3d8af4d4a 100644
@@ -4,17 +4,11 @@
 #ifndef __MT7915_REGS_H
 #define __MT7915_REGS_H
 
-struct __map {
-	u32 phys;
-	u32 maps;
-	u32 size;
-};
-
 /* used to differentiate between generations */
 struct mt7915_reg_desc {
 	const u32 *reg_rev;
 	const u32 *offs_rev;
-	const struct __map *map;
+	const struct mt76_connac_reg_map *map;
 	u32 map_size;
 };
 
drivers/net/wireless/mediatek/mt76/mt7921/pci.c +36 -40

97 lines not on this page · raw message

Signature · 1 line
2.36.1