~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to drivers/net/wireless/ath/ath9k/ar9002_phy.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (c) 2008-2010 Atheros Communications Inc.
 
2
 * Copyright (c) 2008-2011 Atheros Communications Inc.
3
3
 *
4
4
 * Permission to use, copy, modify, and/or distribute this software for any
5
5
 * purpose with or without fee is hereby granted, provided that the above
517
517
        }
518
518
}
519
519
 
520
 
void ar9002_hw_attach_phy_ops(struct ath_hw *ah)
521
 
{
522
 
        struct ath_hw_private_ops *priv_ops = ath9k_hw_private_ops(ah);
523
 
 
524
 
        priv_ops->set_rf_regs = NULL;
525
 
        priv_ops->rf_alloc_ext_banks = NULL;
526
 
        priv_ops->rf_free_ext_banks = NULL;
527
 
        priv_ops->rf_set_freq = ar9002_hw_set_channel;
528
 
        priv_ops->spur_mitigate_freq = ar9002_hw_spur_mitigate;
529
 
        priv_ops->olc_init = ar9002_olc_init;
530
 
        priv_ops->compute_pll_control = ar9002_hw_compute_pll_control;
531
 
        priv_ops->do_getnf = ar9002_hw_do_getnf;
532
 
 
533
 
        ar9002_hw_set_nf_limits(ah);
534
 
}
535
 
 
536
 
void ath9k_hw_antdiv_comb_conf_get(struct ath_hw *ah,
 
520
static void ar9002_hw_antdiv_comb_conf_get(struct ath_hw *ah,
537
521
                                   struct ath_hw_antcomb_conf *antconf)
538
522
{
539
523
        u32 regval;
545
529
                                 AR_PHY_9285_ANT_DIV_ALT_LNACONF_S;
546
530
        antconf->fast_div_bias = (regval & AR_PHY_9285_FAST_DIV_BIAS) >>
547
531
                                  AR_PHY_9285_FAST_DIV_BIAS_S;
 
532
        antconf->lna1_lna2_delta = -3;
 
533
        antconf->div_group = 0;
548
534
}
549
 
EXPORT_SYMBOL(ath9k_hw_antdiv_comb_conf_get);
550
535
 
551
 
void ath9k_hw_antdiv_comb_conf_set(struct ath_hw *ah,
 
536
static void ar9002_hw_antdiv_comb_conf_set(struct ath_hw *ah,
552
537
                                   struct ath_hw_antcomb_conf *antconf)
553
538
{
554
539
        u32 regval;
566
551
 
567
552
        REG_WRITE(ah, AR_PHY_MULTICHAIN_GAIN_CTL, regval);
568
553
}
569
 
EXPORT_SYMBOL(ath9k_hw_antdiv_comb_conf_set);
 
554
 
 
555
void ar9002_hw_attach_phy_ops(struct ath_hw *ah)
 
556
{
 
557
        struct ath_hw_private_ops *priv_ops = ath9k_hw_private_ops(ah);
 
558
        struct ath_hw_ops *ops = ath9k_hw_ops(ah);
 
559
 
 
560
        priv_ops->set_rf_regs = NULL;
 
561
        priv_ops->rf_alloc_ext_banks = NULL;
 
562
        priv_ops->rf_free_ext_banks = NULL;
 
563
        priv_ops->rf_set_freq = ar9002_hw_set_channel;
 
564
        priv_ops->spur_mitigate_freq = ar9002_hw_spur_mitigate;
 
565
        priv_ops->olc_init = ar9002_olc_init;
 
566
        priv_ops->compute_pll_control = ar9002_hw_compute_pll_control;
 
567
        priv_ops->do_getnf = ar9002_hw_do_getnf;
 
568
 
 
569
        ops->antdiv_comb_conf_get = ar9002_hw_antdiv_comb_conf_get;
 
570
        ops->antdiv_comb_conf_set = ar9002_hw_antdiv_comb_conf_set;
 
571
 
 
572
        ar9002_hw_set_nf_limits(ah);
 
573
}