aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq40xx/base-files/etc/board.d/02_network
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ipq40xx/base-files/etc/board.d/02_network')
-rw-r--r--target/linux/ipq40xx/base-files/etc/board.d/02_network25
1 files changed, 25 insertions, 0 deletions
diff --git a/target/linux/ipq40xx/base-files/etc/board.d/02_network b/target/linux/ipq40xx/base-files/etc/board.d/02_network
index ced26b9dd3..7d4806b605 100644
--- a/target/linux/ipq40xx/base-files/etc/board.d/02_network
+++ b/target/linux/ipq40xx/base-files/etc/board.d/02_network
@@ -98,6 +98,26 @@ ipq40xx_setup_interfaces()
esac
}
+ipq40xx_setup_dsl()
+{
+ local board="$1"
+ local annex="j"
+ local tone="b"
+ local xfer_mode=""
+
+ case "$board" in
+ avm,fritzbox-7530)
+ ;;
+ *)
+ return 0
+ ;;
+ esac
+
+ ucidef_add_atm_bridge "1" "32" "llc" "bridged" "dsl"
+ ucidef_add_vdsl_modem "$annex" "$tone" "$xfer_mode"
+ ucidef_set_interface_wan "dsl0" "pppoe"
+}
+
ipq40xx_setup_macs()
{
local board="$1"
@@ -117,6 +137,10 @@ ipq40xx_setup_macs()
lan_mac=$(mtd_get_mac_binary_ubi Factory 0x5006)
label_mac=$wan_mac
;;
+ avm,fritzbox-7530)
+ local tffsdev=$(find_mtd_chardev "nand-tffs")
+ wan_mac=$(/usr/bin/fritz_tffs_nand -b -d $tffsdev -n macdsl)
+ ;;
cilab,meshpoint-one)
label_mac=$(mtd_get_mac_binary "ART" 0x1006)
;;
@@ -185,6 +209,7 @@ ipq40xx_setup_macs()
board_config_update
board=$(board_name)
ipq40xx_setup_interfaces $board
+ipq40xx_setup_dsl $board
ipq40xx_setup_macs $board
board_config_flush