aboutsummaryrefslogtreecommitdiffstats
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
commit65c467788468d0b16b45d79e022550aca632dd48 (patch)
tree2e0f3fed2f6b1d420814452d42c7104bb240a8b9
parentda1a1a53cbdd5f9a83bc0d5a2920f895f0ef19ca (diff)
downloadupstream-65c467788468d0b16b45d79e022550aca632dd48.tar.gz
upstream-65c467788468d0b16b45d79e022550aca632dd48.tar.bz2
upstream-65c467788468d0b16b45d79e022550aca632dd48.zip
ramips: extract eeprom for the PCIe wlan module on the RT-N56U
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30529 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 ace012acc7..65b2cd39c8 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