Date: Tue, 17 May 2016 06:45:25 +0000 (UTC) From: Stanislav Galabov <sgalabov@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r300014 - in head/sys: boot/fdt/dts/mips mips/mediatek Message-ID: <201605170645.u4H6jPTl022034@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sgalabov Date: Tue May 17 06:45:25 2016 New Revision: 300014 URL: https://svnweb.freebsd.org/changeset/base/300014 Log: 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 Modified: head/sys/boot/fdt/dts/mips/fbsd-mt7628an.dtsi head/sys/mips/mediatek/mtk_pcie.c Modified: head/sys/boot/fdt/dts/mips/fbsd-mt7628an.dtsi ============================================================================== --- head/sys/boot/fdt/dts/mips/fbsd-mt7628an.dtsi Tue May 17 06:42:24 2016 (r300013) +++ head/sys/boot/fdt/dts/mips/fbsd-mt7628an.dtsi Tue May 17 06:45:25 2016 (r300014) @@ -36,4 +36,5 @@ * different values for the reg property */ reg = <0x10140000 0x10000>; + compatible = "mediatek,mt7628-pci"; }; Modified: head/sys/mips/mediatek/mtk_pcie.c ============================================================================== --- head/sys/mips/mediatek/mtk_pcie.c Tue May 17 06:42:24 2016 (r300013) +++ head/sys/mips/mediatek/mtk_pcie.c Tue May 17 06:45:25 2016 (r300014) @@ -203,6 +203,7 @@ mtk_pci_ranges(phandle_t node, struct mt 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 } };
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605170645.u4H6jPTl022034>