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 | 0d5d65059aa8de8c3830c87041177eac04ce0dd4 (patch) | |
tree | 87a1d9001e01f5073a4e9b733adf69e87c4bf7f5 /target/linux/ramips/files/arch/mips/ralink/rt305x/mach-wl351.c | |
parent | e06f1e9ec0bbb4a316b93f8249655d0fad9cc1bc (diff) | |
download | master-187ad058-0d5d65059aa8de8c3830c87041177eac04ce0dd4.tar.gz master-187ad058-0d5d65059aa8de8c3830c87041177eac04ce0dd4.tar.bz2 master-187ad058-0d5d65059aa8de8c3830c87041177eac04ce0dd4.zip |
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33301 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/files/arch/mips/ralink/rt305x/mach-wl351.c')
-rw-r--r-- | target/linux/ramips/files/arch/mips/ralink/rt305x/mach-wl351.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-wl351.c b/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-wl351.c index 8551f2541c..8c0caadb1a 100644 --- a/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-wl351.c +++ b/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-wl351.c @@ -97,9 +97,15 @@ static void __init wl351_init(void) ramips_register_gpio_buttons(-1, WL351_KEYS_POLL_INTERVAL, ARRAY_SIZE(wl351_gpio_buttons), wl351_gpio_buttons); - // external rtl8366rb - rt305x_esw_data.vlan_config = RT305X_ESW_VLAN_CONFIG_BYPASS; + /* External RTL8366RB. */ + rt305x_esw_data.vlan_config = RT305X_ESW_VLAN_CONFIG_NONE; rt305x_esw_data.reg_initval_fct2 = 0x0002500c; + /* + * ext phy base addr 31, rx/tx clock skew 0, + * turbo mii off, rgmi 3.3v off, port 5 polling off + * port5: enabled, gige, full-duplex, rx/tx-flow-control + * port6: enabled, gige, full-duplex, rx/tx-flow-control + */ rt305x_esw_data.reg_initval_fpa2 = 0x1f003fff; rt305x_register_ethernet(); platform_device_register(&wl351_switch); |