summaryrefslogtreecommitdiff
path: root/target/linux/lantiq/dts
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-06-10 08:25:12 +0000
committerJohn Crispin <john@openwrt.org>2013-06-10 08:25:12 +0000
commit76c79f50d71f9ef08b67e85385344de9da70f53a (patch)
tree1213b9320e7fec6ec301fe7bcab5b1ca0f147385 /target/linux/lantiq/dts
parent7638caf35d0ce624b3f304004675c50fbe18db5f (diff)
downloadmtk-20170518-76c79f50d71f9ef08b67e85385344de9da70f53a.zip
mtk-20170518-76c79f50d71f9ef08b67e85385344de9da70f53a.tar.gz
mtk-20170518-76c79f50d71f9ef08b67e85385344de9da70f53a.tar.bz2
lantiq: Fixes to athxk EEPROM loading
Use platform data array for storing ath5k EEPROM instead of creating another one. EEPROM size is 2048 words (2 bytes), so we must read 4096 bytes from flash. No need to keep the checksum fix now that the EEPROM is loaded completely. Add a manual eeprom swap for ath9k and keep the endian way. Use mac-offset property retrieved from the DTS. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> SVN-Revision: 36901
Diffstat (limited to 'target/linux/lantiq/dts')
-rw-r--r--target/linux/lantiq/dts/ARV4518PWR01.dts2
-rw-r--r--target/linux/lantiq/dts/ARV4518PWR01A.dts2
-rw-r--r--target/linux/lantiq/dts/ARV4525PW.dts2
-rw-r--r--target/linux/lantiq/dts/ARV452CQW.dts2
-rw-r--r--target/linux/lantiq/dts/ARV7518PW.dts5
5 files changed, 6 insertions, 7 deletions
diff --git a/target/linux/lantiq/dts/ARV4518PWR01.dts b/target/linux/lantiq/dts/ARV4518PWR01.dts
index 0256618..64e2974 100644
--- a/target/linux/lantiq/dts/ARV4518PWR01.dts
+++ b/target/linux/lantiq/dts/ARV4518PWR01.dts
@@ -71,7 +71,7 @@
ath5k_eep {
compatible = "ath5k,eeprom";
- reg = <0 0x3f0400 0x800
+ reg = <0 0x3f0400 0x1000
0 0x3f0016 0x6>;
ath,mac-increment = <1>;
ath,eep-swap;
diff --git a/target/linux/lantiq/dts/ARV4518PWR01A.dts b/target/linux/lantiq/dts/ARV4518PWR01A.dts
index e6d83ed..211ad87 100644
--- a/target/linux/lantiq/dts/ARV4518PWR01A.dts
+++ b/target/linux/lantiq/dts/ARV4518PWR01A.dts
@@ -71,7 +71,7 @@
ath5k_eep {
compatible = "ath5k,eeprom";
- reg = <0 0x3f0400 0x800
+ reg = <0 0x3f0400 0x1000
0 0x3f0016 0x6>;
ath,mac-increment = <1>;
ath,eep-swap;
diff --git a/target/linux/lantiq/dts/ARV4525PW.dts b/target/linux/lantiq/dts/ARV4525PW.dts
index e2d3860..b6cde8d 100644
--- a/target/linux/lantiq/dts/ARV4525PW.dts
+++ b/target/linux/lantiq/dts/ARV4525PW.dts
@@ -57,7 +57,7 @@
ath5k_eep {
compatible = "ath5k,eeprom";
- reg = <0 0x3f0400 0x800>;
+ reg = <0 0x3f0400 0x1000>;
ath,mac-offset = <0>;
ath,eep-swap;
};
diff --git a/target/linux/lantiq/dts/ARV452CQW.dts b/target/linux/lantiq/dts/ARV452CQW.dts
index b40f595..a261d93 100644
--- a/target/linux/lantiq/dts/ARV452CQW.dts
+++ b/target/linux/lantiq/dts/ARV452CQW.dts
@@ -62,7 +62,7 @@
ath5k_eep {
compatible = "ath5k,eeprom";
- reg = <0 0x3f0400 0x800>;
+ reg = <0 0x3f0400 0x1000>;
ath,mac-offset = <0>;
ath,eep-swap;
};
diff --git a/target/linux/lantiq/dts/ARV7518PW.dts b/target/linux/lantiq/dts/ARV7518PW.dts
index 70e7d8e..e76abb5 100644
--- a/target/linux/lantiq/dts/ARV7518PW.dts
+++ b/target/linux/lantiq/dts/ARV7518PW.dts
@@ -69,12 +69,11 @@
ath9k_eep {
compatible = "ath9k,eeprom";
- reg = <0 0x7f0400 0x800
+ reg = <0 0x7f0400 0x1000
0 0x7f0016 0x6>;
ath,mac-increment = <1>;
ath,pci-slot = <14>;
- ath,eep-swap;
- ath,eep-csum;
+ ath,eep-endian;
};
};