From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Golle Date: Mon, 14 Nov 2011 14:09:31 +0100 Subject: [ath9k-devel] [PATCH v0 5/6] support for antenna configuration profiles Message-ID: <20111114130931.GA3237@localhost> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Add antenna switch profiles of the Allnet ALL0258N. Signed-of-by: Daniel Golle 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); }