brcm47xx: rename target to bcm47xx
[openwrt/staging/wigyori.git] / target / linux / brcm63xx / base-files / etc / hotplug.d / firmware / 10-rt2x00-eeprom
1 #!/bin/sh
2 # Based on gabors ralink wisoc implementation.
3
4 [ -e /lib/firmware/$FIRMWARE ] && exit 0
5
6 . /lib/functions/caldata.sh
7
8 board=$(board_name)
9
10 case "$FIRMWARE" in
11 "rt2x00.eeprom" )
12 case $board in
13 huawei,echolife-hg556a-c)
14 caldata_extract "cal_data" 0x1fe00 0x200
15 ;;
16 huawei,echolife-hg622|\
17 huawei,echolife-hg655b)
18 caldata_extract "cal_data" 0x0 0x200
19 ;;
20 *)
21 caldata_die "board $board is not supported yet"
22 ;;
23 esac
24 ;;
25 esac