summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authorsgalabov <sgalabov@FreeBSD.org>2016-05-17 06:45:25 +0000
committersgalabov <sgalabov@FreeBSD.org>2016-05-17 06:45:25 +0000
commit2ba8b0863768ea4eb8681ab0c754c7b9d4cbc06a (patch)
treef3213260b7d523d58f58e8f068554f9749eee106 /sys/mips
parente282774be5d5e779a1c4ee6e6391a5d03758853a (diff)
downloadFreeBSD-src-2ba8b0863768ea4eb8681ab0c754c7b9d4cbc06a.zip
FreeBSD-src-2ba8b0863768ea4eb8681ab0c754c7b9d4cbc06a.tar.gz
Add proper PCIe init for MT7628/MT7688 SoCs
PCIe PHY needs different initialization on MT7628/MT7688 SoCs than it does on MT7620. However, LEDE (and OpenWRT) dts files have the PCIe node for MT7628/MT7688 as compatible with mt7620-pci. We already can handle this properly in our driver, so we just need to add compat strings to fbsd-mt7628an.dtsi and the PCIe driver. Approved by: adrian (mentor) Sponsored by: Smartcom - Bulgaria AD Differential Revision: https://reviews.freebsd.org/D6395
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/mediatek/mtk_pcie.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/mips/mediatek/mtk_pcie.c b/sys/mips/mediatek/mtk_pcie.c
index d36f6a4..59c1319 100644
--- a/sys/mips/mediatek/mtk_pcie.c
+++ b/sys/mips/mediatek/mtk_pcie.c
@@ -203,6 +203,7 @@ mtk_pci_ranges(phandle_t node, struct mtk_pci_range *io_space,
static struct ofw_compat_data compat_data[] = {
{ "ralink,rt3883-pci", MTK_SOC_RT3883 },
{ "mediatek,mt7620-pci", MTK_SOC_MT7620A },
+ { "mediatek,mt7628-pci", MTK_SOC_MT7628 },
{ "mediatek,mt7621-pci", MTK_SOC_MT7621 },
{ NULL, MTK_SOC_UNKNOWN }
};
OpenPOWER on IntegriCloud