Deleted Added
full compact
ar5212_reset.c (185380) ar5212_reset.c (185406)
1/*
2 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
3 * Copyright (c) 2002-2008 Atheros Communications, Inc.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *

--- 4 unchanged lines hidden (view full) ---

13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 *
17 * $Id: ar5212_reset.c,v 1.20 2008/11/27 22:30:00 sam Exp $
18 */
19#include "opt_ah.h"
20
1/*
2 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
3 * Copyright (c) 2002-2008 Atheros Communications, Inc.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *

--- 4 unchanged lines hidden (view full) ---

13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 *
17 * $Id: ar5212_reset.c,v 1.20 2008/11/27 22:30:00 sam Exp $
18 */
19#include "opt_ah.h"
20
21#ifdef AH_SUPPORT_AR5212
22
23#include "ah.h"
24#include "ah_internal.h"
25#include "ah_devid.h"
26
27#include "ar5212/ar5212.h"
28#include "ar5212/ar5212reg.h"
29#include "ar5212/ar5212phy.h"
21#include "ah.h"
22#include "ah_internal.h"
23#include "ah_devid.h"
24
25#include "ar5212/ar5212.h"
26#include "ar5212/ar5212reg.h"
27#include "ar5212/ar5212phy.h"
30#ifdef AH_SUPPORT_AR5311
31#include "ar5212/ar5311reg.h"
32#endif
33
34#include "ah_eeprom_v3.h"
35
36/* Additional Time delay to wait after activiting the Base band */
37#define BASE_ACTIVATE_DELAY 100 /* 100 usec */
38#define PLL_SETTLE_DELAY 300 /* 300 usec */
39
40static HAL_BOOL ar5212SetResetReg(struct ath_hal *, uint32_t resetMask);

--- 2616 unchanged lines hidden (view full) ---

2657 }
2658
2659 OS_REG_WRITE(ah, AR_USEC, (usec | refClock | txLat | rxLat));
2660 OS_REG_WRITE(ah, AR_D_GBL_IFS_SLOT, slot);
2661 OS_REG_WRITE(ah, AR_D_GBL_IFS_EIFS, eifs);
2662 OS_REG_RMW_FIELD(ah, AR_D_GBL_IFS_MISC,
2663 AR_D_GBL_IFS_MISC_USEC_DURATION, init_usec);
2664}
28
29#include "ah_eeprom_v3.h"
30
31/* Additional Time delay to wait after activiting the Base band */
32#define BASE_ACTIVATE_DELAY 100 /* 100 usec */
33#define PLL_SETTLE_DELAY 300 /* 300 usec */
34
35static HAL_BOOL ar5212SetResetReg(struct ath_hal *, uint32_t resetMask);

--- 2616 unchanged lines hidden (view full) ---

2652 }
2653
2654 OS_REG_WRITE(ah, AR_USEC, (usec | refClock | txLat | rxLat));
2655 OS_REG_WRITE(ah, AR_D_GBL_IFS_SLOT, slot);
2656 OS_REG_WRITE(ah, AR_D_GBL_IFS_EIFS, eifs);
2657 OS_REG_RMW_FIELD(ah, AR_D_GBL_IFS_MISC,
2658 AR_D_GBL_IFS_MISC_USEC_DURATION, init_usec);
2659}
2665#endif /* AH_SUPPORT_AR5212 */