aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-12-17 09:27:31 +0000
committerJohn Crispin <blogic@openwrt.org>2015-12-17 09:27:31 +0000
commitbe637de191604b112112a9e0d2893a0225a7e8be (patch)
tree1463c03569bc8e256cb4d7b4ac2917f5b48eb47f
parent80973b203d226a2a79722b0c8f67e19cf6691b0f (diff)
downloadmaster-187ad058-be637de191604b112112a9e0d2893a0225a7e8be.tar.gz
master-187ad058-be637de191604b112112a9e0d2893a0225a7e8be.tar.bz2
master-187ad058-be637de191604b112112a9e0d2893a0225a7e8be.zip
lantiq: Allow configuration of ath9k disabled bands and LED polarity from the device tree.
Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47911 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/lantiq/patches-4.1/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch18
1 files changed, 17 insertions, 1 deletions
diff --git a/target/linux/lantiq/patches-4.1/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch b/target/linux/lantiq/patches-4.1/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch
index 2fc4db3066..edf7a0b8ec 100644
--- a/target/linux/lantiq/patches-4.1/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch
+++ b/target/linux/lantiq/patches-4.1/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch
@@ -51,13 +51,14 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
obj-$(CONFIG_XRX200_PHY_FW) += xrx200_phy_fw.o
--- /dev/null
+++ b/arch/mips/lantiq/xway/ath_eep.c
-@@ -0,0 +1,282 @@
+@@ -0,0 +1,298 @@
+/*
+ * Copyright (C) 2011 Luca Olivetti <luca@ventoso.org>
+ * Copyright (C) 2011 John Crispin <blogic@openwrt.org>
+ * Copyright (C) 2011 Andrej Vlašić <andrej.vlasic0@gmail.com>
+ * Copyright (C) 2013 Álvaro Fernández Rojas <noltari@gmail.com>
+ * Copyright (C) 2013 Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
++ * Copyright (C) 2015 Vittorio Gambaletta <openwrt@vittgam.net>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 as published
@@ -192,6 +193,21 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+ dev_info(&pdev->dev, "using led pin %d.\n", led_pin);
+ }
+
++ if (of_property_read_bool(np, "ath,led-active-high")) {
++ ath9k_pdata.led_active_high = true;
++ dev_info(&pdev->dev, "inverted LED polarity\n");
++ }
++
++ if (of_property_read_bool(np, "ath,disable-2ghz")) {
++ ath9k_pdata.disable_2ghz = true;
++ dev_info(&pdev->dev, "disabled 2.4 GHz band\n");
++ }
++
++ if (of_property_read_bool(np, "ath,disable-5ghz")) {
++ ath9k_pdata.disable_5ghz = true;
++ dev_info(&pdev->dev, "disabled 5 GHz band\n");
++ }
++
+ dev_info(&pdev->dev, "loaded ath9k eeprom\n");
+
+ return 0;