diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-02-08 20:33:30 +0100 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-02-14 14:10:51 +0100 |
commit | e7bfda2c243e66a75ff966ba04c28b1590b5d24c (patch) | |
tree | 069959b7e6a8cf31b0feb2857a63c7c4c0e3dcbf /target/linux/bcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom | |
parent | 8fe5ad5d3373cebed4fbc55a7b779721971ce427 (diff) | |
download | upstream-e7bfda2c243e66a75ff966ba04c28b1590b5d24c.tar.gz upstream-e7bfda2c243e66a75ff966ba04c28b1590b5d24c.tar.bz2 upstream-e7bfda2c243e66a75ff966ba04c28b1590b5d24c.zip |
brcm63xx: rename target to bcm63xx
This change makes the names of Broadcom targets consistent by using
the common notation based on SoC/CPU ID (which is used internally
anyway), bcmXXXX instead of brcmXXXX.
This is even used for target TITLE in make menuconfig already,
only the short target name used brcm so far.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/bcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom')
-rw-r--r-- | target/linux/bcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/target/linux/bcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/bcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom new file mode 100644 index 0000000000..0e92481f08 --- /dev/null +++ b/target/linux/bcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom @@ -0,0 +1,25 @@ +#!/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 + huawei,echolife-hg556a-c) + caldata_extract "cal_data" 0x1fe00 0x200 + ;; + huawei,echolife-hg622|\ + huawei,echolife-hg655b) + caldata_extract "cal_data" 0x0 0x200 + ;; + *) + caldata_die "board $board is not supported yet" + ;; + esac + ;; +esac |