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
This commit is contained in:
Stanislav Galabov 2016-05-25 06:47:28 +00:00
parent 4e5f11e0b9
commit 8fff7b95fd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300659
3 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -82,3 +82,9 @@ device loop
# ether device support
device ether
# ether switch support
device etherswitch
device miibus
device mtkswitch
device mdio