summaryrefslogtreecommitdiff
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-02-14 17:32:45 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-02-14 17:32:45 +0000
commit02a01a16c71da321ddc1ccf294971c82e2fdd18b (patch)
tree11cf435b3899c381a8d2e1aaefd0c44d81ac1937 /target/linux/ramips/base-files
parent43d1a2c3abf4f7099e2759fbf6fda635881241ac (diff)
downloadmtk-20170518-02a01a16c71da321ddc1ccf294971c82e2fdd18b.zip
mtk-20170518-02a01a16c71da321ddc1ccf294971c82e2fdd18b.tar.gz
mtk-20170518-02a01a16c71da321ddc1ccf294971c82e2fdd18b.tar.bz2
ramips: extract eeprom for the PCIe wlan module on the RT-N56U
SVN-Revision: 30529
Diffstat (limited to 'target/linux/ramips/base-files')
-rw-r--r--target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom16
1 files changed, 12 insertions, 4 deletions
diff --git a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
index ace012a..65b2cd3 100644
--- a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
+++ b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
@@ -23,13 +23,13 @@ rt2x00_eeprom_extract() {
[ -e /lib/firmware/$FIRMWARE ] && exit 0
+. /lib/ramips.sh
+
+board=$(ramips_board_name)
+
case "$FIRMWARE" in
"RT288X.eeprom" | \
"RT305X.eeprom")
- . /lib/ramips.sh
-
- local board=$(ramips_board_name)
-
case $board in
dir-300-b1 | \
dir-600-b1 | \
@@ -78,4 +78,12 @@ case "$FIRMWARE" in
;;
esac
;;
+
+"rt2x00pci_1_0.eeprom")
+ case $board in
+ rt-n56u)
+ rt2x00_eeprom_extract "factory" 32768 272
+ ;;
+ esac
+ ;;
esac