diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-08-29 10:37:40 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-08-29 10:37:40 +0000 |
commit | f1b9d77912787339a2273c94ddece2cb5d0aceb3 (patch) | |
tree | 5ca17d9b54fb795d48331f60af8ae3602feb1c1d /target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c | |
parent | 1f3400d3b4cd3cf817cf63585d3843d1dd1e76d0 (diff) | |
download | mtk-20170518-f1b9d77912787339a2273c94ddece2cb5d0aceb3.zip mtk-20170518-f1b9d77912787339a2273c94ddece2cb5d0aceb3.tar.gz mtk-20170518-f1b9d77912787339a2273c94ddece2cb5d0aceb3.tar.bz2 |
ramips: Minor ramips_esw.c cleanup
Stop handling VLAN setup in the kernel.
Removes the obsolete RT305X_ESW_VLAN_CONFIG_BYPASS option I added for
WL-351 and add some extra comments.
Also removes the en_vlan per-port flag that isn't very useful really, it now
is only controlled by the global enable_vlan flag.
Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>
SVN-Revision: 33301
Diffstat (limited to 'target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c')
-rw-r--r-- | target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c b/target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c index 2e884c3..07e950a 100644 --- a/target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c +++ b/target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c @@ -156,8 +156,15 @@ static struct resource rt305x_esw_resources[] = { }; struct rt305x_esw_platform_data rt305x_esw_data = { + /* All ports are LAN ports. */ .vlan_config = RT305X_ESW_VLAN_CONFIG_NONE, .reg_initval_fct2 = 0x00d6500c, + /* + * ext phy base addr 31, enable port 5 polling, rx/tx clock skew 1, + * turbo mii off, rgmi 3.3v off + * port5: disabled + * port6: enabled, gige, full-duplex, rx/tx-flow-control + */ .reg_initval_fpa2 = 0x3f502b28, }; |