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#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" |
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} |