Search Linux Wireless

Re: [PATCH 3/3] b43: N-PHY: add 2055 radio regs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Doesn't brcm80211 contain register names for B2055?

2010/10/11 RafaÅ MiÅecki <zajec5@xxxxxxxxx>:
> Signed-off-by: RafaÅ MiÅecki <zajec5@xxxxxxxxx>
> ---
> I'm not too happy with presented numbering but:
> 1) We can not just use regiser number, because we use same registers few times
> 2) Using just order numbering (00 - 36) would make registers writing less clean
>
> This way I decided to use both: order numbering and register numbering.
> ---
> Âdrivers/net/wireless/b43/tables_nphy.c | Â 42 ++++++++++++++++++++++++++++++++
> Âdrivers/net/wireless/b43/tables_nphy.h | Â 40 ++++++++++++++++++++++++++++--
> Â2 files changed, 79 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/wireless/b43/tables_nphy.c b/drivers/net/wireless/b43/tables_nphy.c
> index e74b8eb..0cedb9a 100644
> --- a/drivers/net/wireless/b43/tables_nphy.c
> +++ b/drivers/net/wireless/b43/tables_nphy.c
> @@ -317,6 +317,48 @@ void b2055_upload_inittab(struct b43_wldev *dev,
>    Â.radio_c2_tx_pgapadtn  = r20, Â\
>    Â.radio_c2_tx_mxbgtrim  = r21
>
> +#define RADIOREGS3(r00, r01, r02, r03, r04, r05, r06, r07, r08, r09, \
> + Â Â Â Â Â Â Â Â Âr10, r11, r12, r13, r14, r15, r16, r17, r18, r19, \
> + Â Â Â Â Â Â Â Â Âr20, r21, r22, r23, r24, r25, r26, r27, r28, r29, \
> + Â Â Â Â Â Â Â Â Âr30, r31, r32, r33, r34, r35, r36) \
> + Â Â Â .radio_reg_00_56 Â Â Â Â= r00, Â\
> + Â Â Â .radio_reg_01_56 Â Â Â Â= r01, Â\
> + Â Â Â .radio_reg_02_46 Â Â Â Â= r02, Â\
> + Â Â Â .radio_reg_03_51 Â Â Â Â= r03, Â\
> + Â Â Â .radio_reg_04_50 Â Â Â Â= r04, Â\
> +    .radio_reg_05_4b    Â= r05, Â\
> +    .radio_reg_06_4c    Â= r06, Â\
> +    .radio_reg_07_4d    Â= r07, Â\
> +    .radio_reg_08_4e    Â= r08, Â\
> +    .radio_reg_09_4f    Â= r09, Â\
> +    .radio_reg_10_1b    Â= r10, Â\
> +    .radio_reg_11_1c    Â= r11, Â\
> +    .radio_reg_12_1d    Â= r12, Â\
> + Â Â Â .radio_reg_13_70 Â Â Â Â= r13, Â\
> + Â Â Â .radio_reg_14_72 Â Â Â Â= r14, Â\
> + Â Â Â .radio_reg_15_75 Â Â Â Â= r15, Â\
> + Â Â Â .radio_reg_16_76 Â Â Â Â= r16, Â\
> +    .radio_reg_17_2d    Â= r17, Â\
> + Â Â Â .radio_reg_18_34 Â Â Â Â= r18, Â\
> + Â Â Â .radio_reg_19_37 Â Â Â Â= r19, Â\
> + Â Â Â .radio_reg_20_41 Â Â Â Â= r20, Â\
> +    .radio_reg_21_4d    Â= r21, Â\
> + Â Â Â .radio_reg_22_53 Â Â Â Â= r22, Â\
> + Â Â Â .radio_reg_23_58 Â Â Â Â= r23, Â\
> +    .radio_reg_24_5e    Â= r24, Â\
> + Â Â Â .radio_reg_25_62 Â Â Â Â= r25, Â\
> + Â Â Â .radio_reg_26_64 Â Â Â Â= r26, Â\
> +    .radio_reg_27_2d    Â= r27, Â\
> + Â Â Â .radio_reg_28_34 Â Â Â Â= r28, Â\
> + Â Â Â .radio_reg_29_37 Â Â Â Â= r29, Â\
> + Â Â Â .radio_reg_30_41 Â Â Â Â= r30, Â\
> +    .radio_reg_31_4d    Â= r31, Â\
> + Â Â Â .radio_reg_32_53 Â Â Â Â= r32, Â\
> + Â Â Â .radio_reg_33_58 Â Â Â Â= r33, Â\
> +    .radio_reg_34_5e    Â= r34, Â\
> + Â Â Â .radio_reg_35_62 Â Â Â Â= r35, Â\
> + Â Â Â .radio_reg_36_64 Â Â Â Â= r36
> +
> Â#define PHYREGS(r0, r1, r2, r3, r4, r5) Â Â Â Â\
>    Â.phy_regs.phy_bw1a   Â= r0,  \
> Â Â Â Â.phy_regs.phy_bw2 Â Â Â = r1, Â \
> diff --git a/drivers/net/wireless/b43/tables_nphy.h b/drivers/net/wireless/b43/tables_nphy.h
> index 3eedb86..07b2c22 100644
> --- a/drivers/net/wireless/b43/tables_nphy.h
> +++ b/drivers/net/wireless/b43/tables_nphy.h
> @@ -48,12 +48,46 @@ struct b43_nphy_channeltab_entry_rev2 {
> Â};
>
> Âstruct b43_nphy_channeltab_entry_rev3 {
> - Â Â Â /* The channel number */
> - Â Â Â u8 channel;
> Â Â Â Â/* The channel frequency in MHz */
> Â Â Â Âu16 freq;
> Â Â Â Â/* Radio register values on channelswitch */
> - Â Â Â /* TODO */
> + Â Â Â u8 radio_reg_00_56;
> + Â Â Â u8 radio_reg_01_56;
> + Â Â Â u8 radio_reg_02_46;
> + Â Â Â u8 radio_reg_03_51;
> + Â Â Â u8 radio_reg_04_50;
> + Â Â Â u8 radio_reg_05_4b;
> + Â Â Â u8 radio_reg_06_4c;
> + Â Â Â u8 radio_reg_07_4d;
> + Â Â Â u8 radio_reg_08_4e;
> + Â Â Â u8 radio_reg_09_4f;
> + Â Â Â u8 radio_reg_10_1b;
> + Â Â Â u8 radio_reg_11_1c;
> + Â Â Â u8 radio_reg_12_1d;
> + Â Â Â u8 radio_reg_13_70;
> + Â Â Â u8 radio_reg_14_72;
> + Â Â Â u8 radio_reg_15_75;
> + Â Â Â u8 radio_reg_16_76;
> + Â Â Â u8 radio_reg_17_2d;
> + Â Â Â u8 radio_reg_18_34;
> + Â Â Â u8 radio_reg_19_37;
> + Â Â Â u8 radio_reg_20_41;
> + Â Â Â u8 radio_reg_21_4d;
> + Â Â Â u8 radio_reg_22_53;
> + Â Â Â u8 radio_reg_23_58;
> + Â Â Â u8 radio_reg_24_5e;
> + Â Â Â u8 radio_reg_25_62;
> + Â Â Â u8 radio_reg_26_64;
> + Â Â Â u8 radio_reg_27_2d;
> + Â Â Â u8 radio_reg_28_34;
> + Â Â Â u8 radio_reg_29_37;
> + Â Â Â u8 radio_reg_30_41;
> + Â Â Â u8 radio_reg_31_4d;
> + Â Â Â u8 radio_reg_32_53;
> + Â Â Â u8 radio_reg_33_58;
> + Â Â Â u8 radio_reg_34_5e;
> + Â Â Â u8 radio_reg_35_62;
> + Â Â Â u8 radio_reg_36_64;
> Â Â Â Â/* PHY register values on channelswitch */
> Â Â Â Âstruct b43_phy_n_sfo_cfg phy_regs;
> Â};
> --
> 1.7.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at Âhttp://vger.kernel.org/majordomo-info.html
>



-- 
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
ÿô.nlj·Ÿ®‰­†+%ŠË±é¥Šwÿº{.nlj·¥Š{±ÿ«zW¬³ø¡Ü}©ž²ÆzÚj:+v‰¨þø®w¥þŠàÞ¨è&¢)ß«a¶Úÿûz¹ÞúŽŠÝjÿŠwèf



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux