2
0
forked from Ivasoft/openwrt

ralink: Add support for samsung cy-swr1100 wireless router

It is base on rt3662 soc with dual band 802.11n
wireless router. Use rtl8367R switch chip.
This patch adds a profile for this board.
It use seama image header. so i also enable it
on kernel config.

Signed-off-by: michael lee <igvtee@gmail.com>

SVN-Revision: 40908
This commit is contained in:
John Crispin
2014-06-02 12:42:52 +00:00
parent efd09832fe
commit 813a7c3827
12 changed files with 180 additions and 0 deletions

View File

@@ -60,6 +60,10 @@ case $board in
br6524n)
set_wifi_led "edimax:blue:wlan"
;;
cy-swr1100)
ucidef_set_led_default "wps" "WPS" "samsung:blue:wps" "0"
set_usb_led "samsung:blue:usb"
;;
d105)
ucidef_set_led_default "power" "POWER" "d105:red:power" "1"
set_usb_led "d105:green:usb"

View File

@@ -78,6 +78,13 @@ ramips_setup_interfaces()
ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 6t"
;;
cy-swr1100)
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
ucidef_add_switch "switch0" "1" "1"
ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 9t"
ucidef_add_switch_vlan "switch0" "2" "4 9t"
;;
dir-610-a1 | \
dir-300-b7 | \
dir-320-b1 | \
@@ -205,6 +212,7 @@ ramips_setup_macs()
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
cy-swr1100 | \
dir-645)
lan_mac=$(mtd_get_mac_ascii nvram lanmac)
wan_mac=$(mtd_get_mac_ascii nvram wanmac)

View File

@@ -14,6 +14,7 @@ fix_seama_header() {
board=$(ramips_board_name)
case "$board" in
cy-swr1100 | \
dir-645)
fix_seama_header kernel
;;