summaryrefslogtreecommitdiff
path: root/target/linux/ramips/base-files/etc
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2016-11-07 22:02:20 +0100
committerMathias Kresin <dev@kresin.me>2016-11-09 20:22:59 +0100
commitd8dd207ea6f299cfcaef4899f1cade375e694dd5 (patch)
treef0c915ff2feba6f853ccf07b3ad91cd8c9cb2240 /target/linux/ramips/base-files/etc
parent21d8de78dc61bb59434bc3f83b6463793e9fb89e (diff)
downloadmtk-20170518-d8dd207ea6f299cfcaef4899f1cade375e694dd5.zip
mtk-20170518-d8dd207ea6f299cfcaef4899f1cade375e694dd5.tar.gz
mtk-20170518-d8dd207ea6f299cfcaef4899f1cade375e694dd5.tar.bz2
ramips: use the ralink,mtd-eeprom device tree property
Use the ralink,mtd-eeprom instead of invoking the userspace firmware loader. Set the label and compatible string according to the the PCI binding documentation. Use the wifi@0,0 label and the pci0,0 compatible string in case the PCI vendor and device id is unknown. It should work anyway since the compatible string isn't evaluated (yet). This commit might fixes the PCIe wireless for the Buffalo WHR-600D. This board was mentioned in the board 10-rt2x00-eeprom firmware hotplug script but never had the correct eeprom name set to trigger the firmware from flash extraction. Use the usual eeprom for the soc wmac of the Dovado Tiny AC. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/base-files/etc')
-rw-r--r--target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom17
1 files changed, 3 insertions, 14 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 4c8beac..b44bae9 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
@@ -43,25 +43,14 @@ board=$(ramips_board_name)
case "$FIRMWARE" in
"soc_wmac.eeprom")
case $board in
- *)
- rt2x00_eeprom_die "Please define mtd-eeprom in $board DTS file!"
- ;;
- esac
- ;;
-
-"rt2x00pci_1_0.eeprom")
- case $board in
- cy-swr1100)
- rt2x00_eeprom_extract "factory" 8192 512
- ;;
- br-6475nd | rt-n56u | whr-600d | whr-1166d)
- rt2x00_eeprom_extract "factory" 32768 512
- ;;
tiny-ac)
wifi_mac=$(mtd_get_mac_ascii u-boot-env INIC_MAC_ADDR)
rt2x00_eeprom_extract "factory" 0 512
rt2x00_eeprom_set_macaddr $wifi_mac
;;
+ *)
+ rt2x00_eeprom_die "Please define mtd-eeprom in $board DTS file!"
+ ;;
esac
;;
esac