From: Daniel Golle <dgolle@allnet.de>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] [PATCH v0 5/6] support for antenna configuration profiles
Date: Mon, 14 Nov 2011 14:09:31 +0100 [thread overview]
Message-ID: <20111114130931.GA3237@localhost> (raw)
Add antenna switch profiles of the Allnet ALL0258N.
Signed-of-by: Daniel Golle <dgolle@allnet.de>
Index: arch/mips/ar71xx/mach-all0258n.c
===================================================================
--- arch/mips/ar71xx/mach-all0258n.c (revision 28855)
+++ arch/mips/ar71xx/mach-all0258n.c (working copy)
@@ -34,6 +34,9 @@
#define ALL0258N_LAN_PHYMASK BIT(4)
#define ALL0258N_SEC_PHYMASK BIT(3)
+#define ALL0258N_SWITCHCOM_HORIZONTAL 0x09a00210
+#define ALL0258N_SWITCHCOM_VERTICAL 0x0a900120
+
/*
* from U-Boot bootargs of original firmware:
* mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),320k(custom),1024k(kernel),4928k(rootfs),1536k(failsafe),64k(ART)
@@ -139,6 +142,9 @@
ar71xx_add_device_eth(0);
ar71xx_add_device_eth(1);
+ ap91_pci_setup_wmac_switchcom(0, ALL0258N_SWITCHCOM_HORIZONTAL, "horiz", "horizontal TX, vertical RX");
+ ap91_pci_setup_wmac_switchcom(1, ALL0258N_SWITCHCOM_VERTICAL, "vert", "vertical TX, horizontal RX");
+
ap91_pci_init(ee, mac);
}
reply other threads:[~2011-11-14 13:09 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=20111114130931.GA3237@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.