support for antenna configuration profiles
PATCH 5/6 support for antenna configuration profiles
Add antenna switch profiles of the Allnet ALL0258N.
Signed-of-by Daniel Golle <[email protected]>
mips/ar71xx/mach-all0258n.c +6 -0
@@ -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); }