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
This commit is contained in:
John Crispin
2013-06-10 08:25:12 +00:00
parent 7638caf35d
commit 76c79f50d7
7 changed files with 36 additions and 59 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -57,7 +57,7 @@
ath5k_eep {
compatible = "ath5k,eeprom";
reg = <0 0x3f0400 0x800>;
reg = <0 0x3f0400 0x1000>;
ath,mac-offset = <0>;
ath,eep-swap;
};

View File

@@ -62,7 +62,7 @@
ath5k_eep {
compatible = "ath5k,eeprom";
reg = <0 0x3f0400 0x800>;
reg = <0 0x3f0400 0x1000>;
ath,mac-offset = <0>;
ath,eep-swap;
};

View File

@@ -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;
};
};