All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Golle <dgolle@allnet.de>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] [PATCH v0 4/6] support for antenna configuration profiles
Date: Mon, 14 Nov 2011 14:07:29 +0100	[thread overview]
Message-ID: <20111114130729.GA3148@localhost> (raw)

Add support for platform-supplied antenna-switch profiles in the AP91 template
of the OpenWrt Kernel.
Here hust for illustration and to be re-posted on openwrt-devel.

Signed-off-by: Daniel Golle <dgolle@allnet.de>

Index: arch/mips/ar71xx/dev-ap91-pci.c
===================================================================
--- arch/mips/ar71xx/dev-ap91-pci.c	(revision 28855)
+++ arch/mips/ar71xx/dev-ap91-pci.c	(working copy)
@@ -53,6 +53,15 @@
 	ap91_wmac_data.gpio_val = val;
 }
 
+__init void ap91_pci_setup_wmac_switchcom(int idx, u32 val, char *name, char *desc)
+{
+	if (idx>=0 && idx<ATH9K_PLAT_MAX_SWITCHCOM_PROFILES) {
+		ap91_wmac_data.switchcom_profiles[idx].val = val;
+		ap91_wmac_data.switchcom_profiles[idx].name = name;
+		ap91_wmac_data.switchcom_profiles[idx].desc = desc;
+	}
+}
+
 void __init ap91_pci_init(u8 *cal_data, u8 *mac_addr)
 {
 	if (cal_data)
Index: arch/mips/ar71xx/dev-ap91-pci.h
===================================================================
--- arch/mips/ar71xx/dev-ap91-pci.h	(revision 28855)
+++ arch/mips/ar71xx/dev-ap91-pci.h	(working copy)
@@ -15,10 +15,12 @@
 void ap91_pci_init(u8 *cal_data, u8 *mac_addr) __init;
 void ap91_pci_setup_wmac_led_pin(int pin) __init;
 void ap91_pci_setup_wmac_gpio(u32 mask, u32 val) __init;
+void ap91_pci_setup_wmac_switchcom(int idx, u32 val, char *name, char *desc) __init;
 #else
 static inline void ap91_pci_init(u8 *cal_data, u8 *mac_addr) { }
 static inline void ap91_pci_setup_wmac_led_pin(int pin) { }
 static inline void ap91_pci_setup_wmac_gpio(u32 mask, u32 gpio) { }
+static inline void ap91_pci_setup_wmac_switchcom(int idx, u32 val, char *name, char *desc) { }
 #endif
 
 #endif /* _AR71XX_DEV_AP91_PCI_H */

                 reply	other threads:[~2011-11-14 13:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111114130729.GA3148@localhost \
    --to=dgolle@allnet.de \
    --cc=ath9k-devel@lists.ath9k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.