diff options
author | John Crispin <john@openwrt.org> | 2014-06-02 12:42:52 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-06-02 12:42:52 +0000 |
commit | 813a7c3827afe71f49f2985c607585900a7db4fb (patch) | |
tree | bf7b310aad63e81c8676b0615f3a3adf01447a9b /target/linux/ramips/base-files/etc | |
parent | efd09832febde11e9d4bc6fca6e471f94933867f (diff) | |
download | upstream-813a7c3827afe71f49f2985c607585900a7db4fb.tar.gz upstream-813a7c3827afe71f49f2985c607585900a7db4fb.tar.bz2 upstream-813a7c3827afe71f49f2985c607585900a7db4fb.zip |
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
Diffstat (limited to 'target/linux/ramips/base-files/etc')
5 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index 66a0aaae47..f9b4168245 100755 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -27,6 +27,9 @@ get_status_led() { br6425 | br-6475nd) status_led="edimax:green:power" ;; + cy-swr1100) + status_led="samsung:blue:wps" + ;; d105) status_led="d105:red:power" ;; diff --git a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom index 1a39bb6035..b57bfd82ae 100644 --- a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom +++ b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom @@ -70,6 +70,7 @@ case "$FIRMWARE" in broadway | \ br6524n | \ carambola | \ + cy-swr1100 | \ d105 | \ dcs-930 | \ dir-300-b7 | \ @@ -136,6 +137,9 @@ case "$FIRMWARE" in "rt2x00pci_1_0.eeprom") case $board in + cy-swr1100) + rt2x00_eeprom_extract "factory" 8192 512 + ;; rt-n56u | whr-600d) rt2x00_eeprom_extract "factory" 32768 512 ;; diff --git a/target/linux/ramips/base-files/etc/uci-defaults/01_leds b/target/linux/ramips/base-files/etc/uci-defaults/01_leds index 74ba0ba63e..23c24515e2 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ramips/base-files/etc/uci-defaults/01_leds @@ -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" diff --git a/target/linux/ramips/base-files/etc/uci-defaults/02_network b/target/linux/ramips/base-files/etc/uci-defaults/02_network index b66d176ec0..b9524f6d2c 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/02_network +++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network @@ -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) diff --git a/target/linux/ramips/base-files/etc/uci-defaults/09_fix-seama-header b/target/linux/ramips/base-files/etc/uci-defaults/09_fix-seama-header index d8bed79514..a6c392c6ba 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/09_fix-seama-header +++ b/target/linux/ramips/base-files/etc/uci-defaults/09_fix-seama-header @@ -14,6 +14,7 @@ fix_seama_header() { board=$(ramips_board_name) case "$board" in +cy-swr1100 | \ dir-645) fix_seama_header kernel ;; |