svn commit: r298350 - in head/sys: dev/rt mips/mediatek
Stanislav Galabov
sgalabov at FreeBSD.org
Wed Apr 20 14:47:18 UTC 2016
Author: sgalabov
Date: Wed Apr 20 14:47:16 2016
New Revision: 298350
URL: https://svnweb.freebsd.org/changeset/base/298350
Log:
Add compat strings used by OpenWRT to some Mediatek/Ralink drivers
Approved by: adrian (mentor)
Sponsored by: Smartcom - Bulgaria AD
Differential Revision: https://reviews.freebsd.org/D5995
Modified:
head/sys/dev/rt/if_rt.c
head/sys/mips/mediatek/mtk_pcie.c
head/sys/mips/mediatek/mtk_usb_phy.c
Modified: head/sys/dev/rt/if_rt.c
==============================================================================
--- head/sys/dev/rt/if_rt.c Wed Apr 20 14:36:45 2016 (r298349)
+++ head/sys/dev/rt/if_rt.c Wed Apr 20 14:47:16 2016 (r298350)
@@ -104,6 +104,7 @@ static const struct ofw_compat_data rt_c
{ "ralink,rt3883-eth", RT_CHIPID_RT3050 },
{ "ralink,rt5350-eth", RT_CHIPID_RT5350 },
{ "ralink,mt7620a-eth", RT_CHIPID_MT7620 },
+ { "mediatek,mt7620-eth", RT_CHIPID_MT7620 },
{ "ralink,mt7621-eth", RT_CHIPID_MT7621 },
{ "mediatek,mt7621-eth", RT_CHIPID_MT7621 },
{ NULL, 0 }
Modified: head/sys/mips/mediatek/mtk_pcie.c
==============================================================================
--- head/sys/mips/mediatek/mtk_pcie.c Wed Apr 20 14:36:45 2016 (r298349)
+++ head/sys/mips/mediatek/mtk_pcie.c Wed Apr 20 14:47:16 2016 (r298350)
@@ -201,13 +201,9 @@ mtk_pci_ranges(phandle_t node, struct mt
}
static struct ofw_compat_data compat_data[] = {
- { "ralink,rt3662-pcie", MTK_SOC_RT3883 },
- { "ralink,rt3883-pcie", MTK_SOC_RT3883 },
- { "ralink,mt7620a-pcie", MTK_SOC_MT7620A },
- { "ralink,mt7621-pcie", MTK_SOC_MT7621 },
+ { "ralink,rt3883-pci", MTK_SOC_RT3883 },
+ { "mediatek,mt7620-pci", MTK_SOC_MT7620A },
{ "mediatek,mt7621-pci", MTK_SOC_MT7621 },
- { "ralink,mt7628-pcie", MTK_SOC_MT7628 },
- { "ralink,mt7688-pcie", MTK_SOC_MT7628 },
{ NULL, MTK_SOC_UNKNOWN }
};
Modified: head/sys/mips/mediatek/mtk_usb_phy.c
==============================================================================
--- head/sys/mips/mediatek/mtk_usb_phy.c Wed Apr 20 14:36:45 2016 (r298349)
+++ head/sys/mips/mediatek/mtk_usb_phy.c Wed Apr 20 14:47:16 2016 (r298350)
@@ -85,6 +85,7 @@ static void mtk_usb_phy_mt7628_init(devi
static struct ofw_compat_data compat_data[] = {
{ "ralink,mt7620-usbphy", MTK_SOC_MT7620A },
+ { "mediatek,mt7620-usbphy", MTK_SOC_MT7620A },
{ "ralink,mt7628an-usbphy", MTK_SOC_MT7628 },
{ "ralink,rt3352-usbphy", MTK_SOC_RT3352 },
{ "ralink,rt3050-usbphy", MTK_SOC_RT3050 },
More information about the svn-src-head
mailing list