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
This commit is contained in:
Stanislav Galabov 2016-04-20 14:47:16 +00:00
parent 680354a7a4
commit d478c9fe53
3 changed files with 4 additions and 6 deletions

View File

@ -104,6 +104,7 @@ static const struct ofw_compat_data rt_compat_data[] = {
{ "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 }

View File

@ -201,13 +201,9 @@ mtk_pci_ranges(phandle_t node, struct mtk_pci_range *io_space,
}
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 }
};

View File

@ -85,6 +85,7 @@ static void mtk_usb_phy_mt7628_init(device_t);
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 },