diff options
author | sgalabov <sgalabov@FreeBSD.org> | 2016-05-25 06:47:28 +0000 |
---|---|---|
committer | sgalabov <sgalabov@FreeBSD.org> | 2016-05-25 06:47:28 +0000 |
commit | 49a189c5462bd7a51998e304b490aff53b3968fa (patch) | |
tree | 65e08f4cb66f3b47c2559698e217f0c0dbb39ae4 /sys/mips | |
parent | 65033a03d447f6c7121ccc37d25bafabb323535a (diff) | |
download | FreeBSD-src-49a189c5462bd7a51998e304b490aff53b3968fa.zip FreeBSD-src-49a189c5462bd7a51998e304b490aff53b3968fa.tar.gz |
Build etherswitch support for appropriate Ralink/Mediatek SoCs
Etherswitch support is built by default on all SoCs except RT3662/RT3883
as they have no built-in switch and their configurations with external
switches are not yet supported.
Sponsored by: Smartcom - Bulgaria AD
Diffstat (limited to 'sys/mips')
-rw-r--r-- | sys/mips/conf/RT3883_FDT | 4 | ||||
-rw-r--r-- | sys/mips/mediatek/files.mediatek | 5 | ||||
-rw-r--r-- | sys/mips/mediatek/std.mediatek | 6 |
3 files changed, 15 insertions, 0 deletions
diff --git a/sys/mips/conf/RT3883_FDT b/sys/mips/conf/RT3883_FDT index df1597b..d48ba10 100644 --- a/sys/mips/conf/RT3883_FDT +++ b/sys/mips/conf/RT3883_FDT @@ -76,3 +76,7 @@ device if_bridge # Extres device ext_resources device clk + +# For now there's no etherswitch support for RT3662/RT3883 +nodevice etherswitch +nodevice mtkswitch diff --git a/sys/mips/mediatek/files.mediatek b/sys/mips/mediatek/files.mediatek index 81c1217..a25c329 100644 --- a/sys/mips/mediatek/files.mediatek +++ b/sys/mips/mediatek/files.mediatek @@ -40,3 +40,8 @@ mips/mips/tick.c standard # Temporary Reset if mips/mediatek/fdt_reset.c standard mips/mediatek/fdt_reset_if.m standard + +# Switch +dev/etherswitch/mtkswitch/mtkswitch.c optional mtkswitch +dev/etherswitch/mtkswitch/mtkswitch_rt3050.c optional mtkswitch +dev/etherswitch/mtkswitch/mtkswitch_mt7620.c optional mtkswitch diff --git a/sys/mips/mediatek/std.mediatek b/sys/mips/mediatek/std.mediatek index df7a876..7806da8 100644 --- a/sys/mips/mediatek/std.mediatek +++ b/sys/mips/mediatek/std.mediatek @@ -82,3 +82,9 @@ device loop # ether device support device ether + +# ether switch support +device etherswitch +device miibus +device mtkswitch +device mdio |