From b288c56e1e0b4a45579169906845c90b61e5ace4 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Sun, 27 Oct 2019 14:40:37 +0100 Subject: ath79: move base-files for ZyXEL NBG6716 Due to rebase of the base-files split patch after adding support for the ZyXEL NBG6716, its base-files were added to the generic subtarget, although the device belongs to the nand subtarget. This moves the definitions to their proper locations. Fixes: 0130022baec0 ("ath79: split base-files into subtargets") Signed-off-by: Adrian Schmutzler [improve commit message, rebase] Signed-off-by: David Bauer --- .../etc/hotplug.d/firmware/10-ath9k-eeprom | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom (limited to 'target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom') diff --git a/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom b/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom new file mode 100644 index 0000000000..88a40b5d41 --- /dev/null +++ b/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom @@ -0,0 +1,21 @@ +#!/bin/sh + +[ -e /lib/firmware/$FIRMWARE ] && exit 0 + +. /lib/functions/caldata.sh + +board=$(board_name) + +case "$FIRMWARE" in +"ath9k-eeprom-ahb-18100000.wmac.bin") + case $board in + zyxel,nbg6716) + caldata_extract "art" 0x1000 0x440 + ath9k_patch_mac $(mtd_get_mac_ascii u-boot-env ethaddr) + ;; + *) + caldata_die "board $board is not supported yet" + ;; + esac + ;; +esac -- cgit v1.2.3