lantiq: add support for Arcadyan ARV7519PW
[openwrt.git] / target / linux / lantiq / base-files / etc / hotplug.d / firmware / 10-rt2x00-eeprom
index e2dfc163119c87b3c592770399b66cf60448d387..a849584fcf17f0a561393f8dd3270d4e2ca03b2d 100644 (file)
@@ -12,7 +12,7 @@ rt2x00_eeprom_extract() {
        local count=$3
        local mtd
 
-       . /etc/functions.sh
+       . /lib/functions.sh
 
        mtd=$(find_mtd_part $part)
        [ -n "$mtd" ] || \
@@ -23,13 +23,14 @@ rt2x00_eeprom_extract() {
 }
 
 [ -e /lib/firmware/$FIRMWARE ] && exit 0
+. /lib/functions/lantiq.sh
 
 case "$FIRMWARE" in
 "RT2860.eeprom" )
-       local board=$(grep ^machine /proc/cpuinfo | sed "s/machine.*: \(.*\) - .*/\1/g")
+       local board=$(lantiq_board_id)
        case $board in
-       ARV7525PW)
-               rt2x00_eeprom_extract "board_config" 1040 272
+       ARV7510PW22|ARV7519PW|ARV7525PW|ARV752DPW|ARV752DPW22)
+               rt2x00_eeprom_extract "board_config" 1040 512
                ;;
        *)
                rt2x00_eeprom_die "board $board is not supported yet"