From 8fff7b95fdb525d73a7138ff5ba21f34b7e75004 Mon Sep 17 00:00:00 2001 From: Stanislav Galabov Date: Wed, 25 May 2016 06:47:28 +0000 Subject: [PATCH] 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 --- sys/mips/conf/RT3883_FDT | 4 ++++ sys/mips/mediatek/files.mediatek | 5 +++++ sys/mips/mediatek/std.mediatek | 6 ++++++ 3 files changed, 15 insertions(+) diff --git a/sys/mips/conf/RT3883_FDT b/sys/mips/conf/RT3883_FDT index df1597b95b94..d48ba10877e4 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 81c12170b416..a25c3292f506 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 df7a876340b0..7806da8f099a 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