mt76: connac: introduce mt76_connac_reg_map structure
Subsystems (2)
Lorenzo Bianconi
maintainerPATCH 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.
Signed-off-by Lorenzo Bianconi <[email protected]>
--- .../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
@@ -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
@@ -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