]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ralink: Build 8M image for 7Links PX-4885
authorJohn Crispin <john@openwrt.org>
Mon, 13 Oct 2014 19:41:36 +0000 (19:41 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 13 Oct 2014 19:41:36 +0000 (19:41 +0000)
7Links PX-4885 (clones) can also be purchased with 8MB flash.
Creating images for these routers, use dtsi for common part

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
SVN-Revision: 42892

target/linux/ramips/dts/PX4885-4M.dts [new file with mode: 0644]
target/linux/ramips/dts/PX4885-8M.dts [new file with mode: 0644]
target/linux/ramips/dts/PX4885.dtsi [moved from target/linux/ramips/dts/PX4885.dts with 55% similarity]
target/linux/ramips/image/Makefile

diff --git a/target/linux/ramips/dts/PX4885-4M.dts b/target/linux/ramips/dts/PX4885-4M.dts
new file mode 100644 (file)
index 0000000..39bca1c
--- /dev/null
@@ -0,0 +1,42 @@
+/dts-v1/;
+
+/include/ "PX4885.dtsi"
+
+/ {
+       palmbus@10000000 {
+               spi@b00 {
+                       status = "okay";
+                       m25p80@0 {
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+                               compatible = "mx25l3205d";
+                               reg = <0 0>;
+                               linux,modalias = "m25p80", "mx25l3205d";
+                               spi-max-frequency = <10000000>;
+
+                               partition@0 {
+                                       label = "u-boot";
+                                       reg = <0x0 0x20000>;
+                                       read-only;
+                               };
+
+                               partition@20000 {
+                                       label = "devdata";
+                                       reg = <0x20000 0x20000>;
+                                       read-only;
+                               };
+
+                               factory: partition@40000 {
+                                       label = "devconf";
+                                       reg = <0x40000 0x10000>;
+                                       read-only;
+                               };
+
+                               partition@50000 {
+                                       label = "firmware";
+                                       reg = <0x50000 0x3b0000>;
+                               };
+                       };
+               };
+       };
+};
diff --git a/target/linux/ramips/dts/PX4885-8M.dts b/target/linux/ramips/dts/PX4885-8M.dts
new file mode 100644 (file)
index 0000000..03cb580
--- /dev/null
@@ -0,0 +1,42 @@
+/dts-v1/;
+
+/include/ "PX4885.dtsi"
+
+/ {
+       palmbus@10000000 {
+               spi@b00 {
+                       status = "okay";
+                       m25p80@0 {
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+                               compatible = "mx25l3205d";
+                               reg = <0 0>;
+                               linux,modalias = "m25p80", "mx25l3205d";
+                               spi-max-frequency = <10000000>;
+
+                               partition@0 {
+                                       label = "u-boot";
+                                       reg = <0x0 0x20000>;
+                                       read-only;
+                               };
+
+                               partition@20000 {
+                                       label = "devdata";
+                                       reg = <0x20000 0x20000>;
+                                       read-only;
+                               };
+
+                               factory: partition@40000 {
+                                       label = "devconf";
+                                       reg = <0x40000 0x10000>;
+                                       read-only;
+                               };
+
+                               partition@50000 {
+                                       label = "firmware";
+                                       reg = <0x50000 0x7b0000>;
+                               };
+                       };
+               };
+       };
+};
similarity index 55%
rename from target/linux/ramips/dts/PX4885.dts
rename to target/linux/ramips/dts/PX4885.dtsi
index 2bea444f8294e794dcec891b2cba19b35090055b..1f47a17bbd8a44b65dc5fb244d751eb8bd78fed8 100644 (file)
@@ -1,48 +1,9 @@
-/dts-v1/;
-
 /include/ "rt5350.dtsi"
 
 / {
        compatible = "PX4885", "ralink,rt5350-soc";
        model = "7Links PX-4885";
 
-       palmbus@10000000 {
-               spi@b00 {
-                       status = "okay";
-                       m25p80@0 {
-                               #address-cells = <1>;
-                               #size-cells = <1>;
-                               compatible = "mx25l3205d";
-                               reg = <0 0>;
-                               linux,modalias = "m25p80", "mx25l3205d";
-                               spi-max-frequency = <10000000>;
-
-                               partition@0 {
-                                       label = "u-boot";
-                                       reg = <0x0 0x20000>;
-                                       read-only;
-                               };
-
-                               partition@20000 {
-                                       label = "devdata";
-                                       reg = <0x20000 0x20000>;
-                                       read-only;
-                               };
-
-                               factory: partition@40000 {
-                                       label = "devconf";
-                                       reg = <0x40000 0x10000>;
-                                       read-only;
-                               };
-
-                               partition@50000 {
-                                       label = "firmware";
-                                       reg = <0x50000 0x3b0000>;
-                               };
-                       };
-               };
-       };
-
        pinctrl {
                state_default: pinctrl0 {
                        gpio {
index 93554489a6b638c2c3f6d2aecb548cadb9f67a34..f048cafadca613c2ab147a46512190a64568674b 100644 (file)
@@ -466,7 +466,7 @@ Image/Build/Profile/PSR-680W=$(call BuildFirmware/Default4M/$(1),$(1),psr-680w,P
 
 Image/Build/Profile/PWH2004=$(call BuildFirmware/Default8M/$(1),$(1),pwh2004,PWH2004)
 
-Image/Build/Profile/PX4885=$(call BuildFirmware/Default4M/$(1),$(1),px4885,PX4885)
+Image/Build/Profile/PX4885=$(call BuildFirmware/DefaultDualSize/$(1),$(1),px4885,PX4885)
 
 Image/Build/Profile/RTG32B1=$(call BuildFirmware/Default4M/$(1),$(1),rt-g32-b1,RT-G32-B1)