Date: Thu, 3 Nov 2011 05:44:00 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r227054 - user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar5416 Message-ID: <201111030544.pA35i0Ut055179@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Thu Nov 3 05:44:00 2011 New Revision: 227054 URL: http://svn.freebsd.org/changeset/base/227054 Log: Add a PLL init call, matching what the reference driver does when waking up the NIC after a total shutdown. Obtained from: Atheros Modified: user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar5416/ar5416_power.c Modified: user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar5416/ar5416_power.c ============================================================================== --- user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar5416/ar5416_power.c Thu Nov 3 05:35:31 2011 (r227053) +++ user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar5416/ar5416_power.c Thu Nov 3 05:44:00 2011 (r227054) @@ -36,7 +36,7 @@ static HAL_BOOL ar5416SetPowerModeAwake(struct ath_hal *ah, int setChip) { -#define POWER_UP_TIME 200000 +#define POWER_UP_TIME 10000 uint32_t val; int i = 0; @@ -50,6 +50,7 @@ ar5416SetPowerModeAwake(struct ath_hal * & AR_RTC_PM_STATUS_M) == AR_RTC_STATUS_SHUTDOWN) { if (!ar5416SetResetReg(ah, HAL_RESET_POWER_ON)) goto bad; + ar5416InitPLL(ah, AH_NULL); } if (AR_SREV_HOWL(ah))
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111030544.pA35i0Ut055179>