blob: 0e92481f08c69d9b0134d4b700bc69957f42e7f4 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#!/bin/sh
2# Based on gabors ralink wisoc implementation.
3
4[ -e /lib/firmware/$FIRMWARE ] && exit 0
5
6. /lib/functions/caldata.sh
7
8board=$(board_name)
9
10case "$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 ;;
25esac