| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 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 |