MIPS: pci: Add MT7620a PCIE driver

The "a" version of the MT7620 has single port PCIE bus. The driver is
straightforward without any special magic required. The driver works on
MT7620 and MT7628. There are a few magic values that get written to the
pcie phy and a register of which we only know the name. I marked these
places as vodoo in the comments above the code.

Signed-off-by: John Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11996/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
John Crispin
2016-01-04 20:24:01 +01:00
committed by Ralf Baechle
parent 3b2e7c7c83
commit 7e5873d375
3 changed files with 428 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ choice
config SOC_MT7620
bool "MT7620/8"
select HW_HAS_PCI
config SOC_MT7621
bool "MT7621"