* [ath9k-devel] [PATCH v0 5/6] support for antenna configuration profiles
@ 2011-11-14 13:09 Daniel Golle
0 siblings, 0 replies; only message in thread
From: Daniel Golle @ 2011-11-14 13:09 UTC (permalink / raw)
To: ath9k-devel
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);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-11-14 13:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-14 13:09 [ath9k-devel] [PATCH v0 5/6] support for antenna configuration profiles Daniel Golle
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.