From 6c95162c3415f4376d91f59cc4e85994a164dea8 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Mon, 10 Jun 2013 08:25:12 +0000 Subject: lantiq: Fixes to athxk EEPROM loading MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36901 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/lantiq/dts/ARV4518PWR01.dts | 2 +- target/linux/lantiq/dts/ARV4518PWR01A.dts | 2 +- target/linux/lantiq/dts/ARV4525PW.dts | 2 +- target/linux/lantiq/dts/ARV452CQW.dts | 2 +- target/linux/lantiq/dts/ARV7518PW.dts | 5 ++--- 5 files changed, 6 insertions(+), 7 deletions(-) (limited to 'target/linux/lantiq/dts') diff --git a/target/linux/lantiq/dts/ARV4518PWR01.dts b/target/linux/lantiq/dts/ARV4518PWR01.dts index 02566181d5..64e2974150 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 e6d83ed2e1..211ad87949 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 e2d386088f..b6cde8dc7f 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 b40f595cc5..a261d93edf 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 70e7d8e57c..e76abb5787 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; }; }; -- cgit v1.2.3