2400eb998a4084a8303ee83d4d1b81d525121001
[openwrt/openwrt.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 hg556a_c)
14 caldata_extract "cal_data" 0x1fe00 0x200
15 ;;
16 hg622 |\
17 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