Author: blogic Date: 2015-12-17 10:27:31 +0100 (Thu, 17 Dec 2015) New Revision: 47911
Modified: trunk/target/linux/lantiq/patches-4.1/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch Log: lantiq: Allow configuration of ath9k disabled bands and LED polarity from the device tree. Signed-off-by: Vittorio Gambaletta <[email protected]> Modified: trunk/target/linux/lantiq/patches-4.1/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch =================================================================== --- trunk/target/linux/lantiq/patches-4.1/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch 2015-12-17 09:27:24 UTC (rev 47910) +++ trunk/target/linux/lantiq/patches-4.1/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch 2015-12-17 09:27:31 UTC (rev 47911) @@ -51,13 +51,14 @@ 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 <[email protected]> + * Copyright (C) 2011 John Crispin <[email protected]> + * Copyright (C) 2011 Andrej Vlašić <[email protected]> + * Copyright (C) 2013 Álvaro Fernández Rojas <[email protected]> + * Copyright (C) 2013 Daniel Gimpelevich <[email protected]> ++ * Copyright (C) 2015 Vittorio Gambaletta <[email protected]> + * + * 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 @@ + 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; _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
