wifi: mt76: mt7925: add MT7928 per-chip PCIe register definitions

MT7928 maps PCIe MAC registers through base 0x74040000. Add
MT7928_PCIE_MAC_{INT_ENABLE,PM} macros and override dev->pcie_reg
at probe time for MT7928 hardware.

Signed-off-by: Xiong <[email protected]>
Signed-off-by: Emery Hsin <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Emery Hsin
2026-07-20 14:01:46 +02:00
committed by Felix Fietkau
parent 132991c04e
commit 030c9362b7
2 changed files with 11 additions and 0 deletions
+6
View File
@@ -473,6 +473,11 @@ static const struct mt792x_pcie_reg mt7925_pcie_reg = {
.pm = MT7925_PCIE_MAC_PM,
};
static const struct mt792x_pcie_reg mt7928_pcie_reg = {
.imask = MT7928_PCIE_MAC_INT_ENABLE,
.pm = MT7928_PCIE_MAC_PM,
};
static const struct mt792x_irq_map mt7925_irq_map = {
.host_irq_enable = MT_WFDMA0_HOST_INT_ENA,
.tx = {
@@ -609,6 +614,7 @@ static int mt7925_pci_probe(struct pci_dev *pdev,
dev->pcie_reg = &mt7925_pcie_reg;
if (is_mt7928_hw) {
dev->pcie_reg = &mt7928_pcie_reg;
dev->irq_map = &mt7928_irq_map;
mdev->rev = 0x7928 << 16;
} else if (is_mt7927_hw) {
+5
View File
@@ -114,6 +114,11 @@
#define MT7925_PCIE_MAC_INT_ENABLE MT7925_PCIE_MAC(0x188)
#define MT7925_PCIE_MAC_PM MT7925_PCIE_MAC(0x194)
#define MT7928_PCIE_MAC_BASE 0x74040000
#define MT7928_PCIE_MAC(ofs) (MT7928_PCIE_MAC_BASE + (ofs))
#define MT7928_PCIE_MAC_INT_ENABLE MT7928_PCIE_MAC(0x188)
#define MT7928_PCIE_MAC_PM MT7928_PCIE_MAC(0x194)
#define MT_DMASHDL_LITE_BASE 0x20026200
#define MT_DMASHDL_LITE(ofs) (MT_DMASHDL_LITE_BASE + (ofs))
#define MT_DMASHDL_LITE_MAIN_CONTROL MT_DMASHDL_LITE(0x004)