You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom

26 lines
400 B
Bash

#!/bin/sh
# Based on gabors ralink wisoc implementation.
[ -e /lib/firmware/$FIRMWARE ] && exit 0
. /lib/functions/caldata.sh
board=$(board_name)
case "$FIRMWARE" in
"rt2x00.eeprom" )
case $board in
hg556a_c)
caldata_extract "cal_data" 0x1fe00 0x200
;;
hg622 |\
hg655b)
caldata_extract "cal_data" 0x0 0x200
;;
*)
caldata_die "board $board is not supported yet"
;;
esac
;;
esac