"0:lan:4" "1:lan:3" "2:lan:2" "4:lan:1" "5:wan:5" "6t@eth0"
;;
+FRITZ3370)
+ wan_mac=$(macaddr_add "$(mtd_get_mac_binary urlader 2439)" 1)
+ ;;
+
+FRITZ7320)
+ wan_mac=$(macaddr_add "$(mtd_get_mac_binary urlader 2705)" 1)
+ ;;
+
FRITZ7360SL)
+ wan_mac=$(macaddr_add "$(mtd_get_mac_binary urlader 2705)" 1)
ucidef_add_switch "switch0" \
"0:lan:3" "1:lan:4" "2:lan:2" "4:lan:1" "6t@eth0"
;;
ath9k_eeprom_extract "calibration" 61440 0
ath9k_patch_fw_mac_crc $(macaddr_add $(mtd_get_mac_ascii uboot-env ethaddr) +2) 524
;;
- FRITZ3370)
+ FRITZ3370|FRITZ7320|FRITZ7360SL)
ath9k_eeprom_extract "urlader" 2437 0
- ath9k_patch_fw_mac "00:00:00:00:00:00" 2
- ;;
- FRITZ7320|FRITZ7360SL)
- ath9k_eeprom_extract "urlader" 2437 0
- ath9k_patch_fw_mac_crc "00:00:00:00:00:00" 268
;;
TDW8970|TDW8980)
ath9k_eeprom_extract "boardconfig" 135168 0
reg = <4 0>;
spi-max-frequency = <1000000>;
- partition@0 {
+ urlader: partition@0 {
reg = <0x0 0x20000>;
label = "urlader";
read-only;
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
- mac-address = [ 00 11 22 33 44 55 ];
+ mtd-mac-address = <&urlader 0x987>;
+ mtd-mac-address-increment = <(-2)>;
lantiq,switch;
ethernet@0 {
etop@E180000 {
phy-mode = "mii";
+ mtd-mac-address = <&ath9k_cal 0xa91>;
+ mtd-mac-address-increment = <(-2)>;
};
ifxhcd@E101000 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
- mac-address = [ 00 11 22 33 44 55 ];
+ mtd-mac-address = <&urlader 0xa91>;
+ mtd-mac-address-increment = <(-2)>;
lantiq,switch;
ethernet@0 {