mt76: mt7921: use physical addr to unify register access
authorSean Wang <sean.wang@mediatek.com>
Mon, 18 Oct 2021 23:11:39 +0000 (07:11 +0800)
committerFelix Fietkau <nbd@nbd.name>
Wed, 20 Oct 2021 08:36:57 +0000 (10:36 +0200)
commitf1e2eef111018a4f0d280656be4351c37e9e554b
tree66475a75ef72c6f1d38e990e1950c3a3f1859f7a
parentf0ff5d3aa648128d0fc8055df072551d0d89c88d
mt76: mt7921: use physical addr to unify register access

Use physical address to unify the register access and reorder the
entries in fixed_map table to accelerate the address lookup for
MT7921e. Cosmetics the patch with adding an extra space to make all
entries in the array style consistent.

Tested-by: Deren Wu <deren.wu@mediatek.com>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/dma.c
drivers/net/wireless/mediatek/mt76/mt7921/regs.h