diff options
author | John Crispin <john@openwrt.org> | 2014-08-01 11:19:50 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-08-01 11:19:50 +0000 |
commit | 9efd7ebd346862f32acb7ee782e90aa9eaab2268 (patch) | |
tree | d55e5ddec29e8e12babec9593a0e75293237b59d /target/linux | |
parent | c890f71b95274302a608299fc46bbd061e9090fa (diff) | |
download | upstream-9efd7ebd346862f32acb7ee782e90aa9eaab2268.tar.gz upstream-9efd7ebd346862f32acb7ee782e90aa9eaab2268.tar.bz2 upstream-9efd7ebd346862f32acb7ee782e90aa9eaab2268.zip |
ramips: add support for easyacc wizard8800
Signed-off-by: Sebastian Wendel <s.wendel@sourceindex.de>
SVN-Revision: 41936
Diffstat (limited to 'target/linux')
-rwxr-xr-x | target/linux/ramips/base-files/etc/uci-defaults/02_network | 1 | ||||
-rwxr-xr-x | target/linux/ramips/base-files/lib/ramips.sh | 3 | ||||
-rw-r--r-- | target/linux/ramips/dts/WIZARD8800.dts | 82 | ||||
-rw-r--r-- | target/linux/ramips/image/Makefile | 3 |
4 files changed, 89 insertions, 0 deletions
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 40c60fee5c..da7600c2c4 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/02_network +++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network @@ -55,6 +55,7 @@ ramips_setup_interfaces() ucidef_set_interface_lan "eth0.2" ;; + wizard8800 | \ wl-330n | \ wmr300) ucidef_set_interface_lan "eth0.1" diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index f7e04b7391..d188dd7bde 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -121,6 +121,9 @@ ramips_board_detect() { *"ESR-9753") name="esr-9753" ;; + *"EASYACC WI-STOR WIZARD 8800") + name="wizard8800" + ;; *"Edimax BR-6475nD") name="br-6475nd" ;; diff --git a/target/linux/ramips/dts/WIZARD8800.dts b/target/linux/ramips/dts/WIZARD8800.dts new file mode 100644 index 0000000000..a80b9375ca --- /dev/null +++ b/target/linux/ramips/dts/WIZARD8800.dts @@ -0,0 +1,82 @@ +/dts-v1/; + +/include/ "rt5350.dtsi" + +/ { + compatible = "WIZARD8800", "ralink,rt5350-soc"; + model = "EASYACC WI-STOR WIZARD 8800"; + + palmbus@10000000 { + gpio1@638 { + status = "okay"; + }; + + gpio2@660 { + status = "okay"; + }; + + spi@b00 { + status = "okay"; + m25p80@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "w25q32"; + reg = <0 0>; + linux,modalias = "m25p80", "w25q32"; + spi-max-frequency = <10000000>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + label = "firmware"; + reg = <0x50000 0x7b0000>; + }; + }; + }; + }; + + pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; + }; + + ethernet@10100000 { + mtd-mac-address = <&factory 0x4>; + }; + + esw@10110000 { + ralink,portmap = <0x2f>; + }; + + ehci@101c0000 { + status = "okay"; + }; + + ohci@101c1000 { + status = "okay"; + }; + + wmac@10180000 { + ralink,mtd-eeprom = <&factory 0>; + }; +}; diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index 62992cd607..c8f1a433d9 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -499,6 +499,8 @@ endef BuildFirmware/WHRG300N/initramfs=$(call BuildFirmware/OF/initramfs,$(1),whr-g300n,WHR-G300N) Image/Build/Profile/WHRG300N=$(call BuildFirmware/WHRG300N/$(1),$(1)) +Image/Build/Profile/WIZARD8800=$(call BuildFirmware/Default8M/$(1),$(1),wizard-8800,WIZARD8800,Linux Kernel Image) + Image/Build/Profile/WL_330N=$(call BuildFirmware/Default4M/$(1),$(1),wl-330n,WL_330N) Image/Build/Profile/WL_330N3G=$(call BuildFirmware/Default4M/$(1),$(1),wl-330n3g,WL_330N3G) @@ -617,6 +619,7 @@ define Image/Build/Profile/Default $(call Image/Build/Profile/W502U,$(1)) $(call Image/Build/Profile/WCR150GN,$(1)) $(call Image/Build/Profile/WHRG300N,$(1)) + $(call Image/Build/Profile/WIZARD8800,$(1)) $(call Image/Build/Profile/WL_330N,$(1)) $(call Image/Build/Profile/WL_330N3G,$(1)) $(call Image/Build/Profile/WL341V3,$(1)) |