Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Aug 2012 04:26:26 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r239703 - head/sys/dev/ath/ath_hal/ar9002
Message-ID:  <201208260426.q7Q4QQ3B059920@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Sun Aug 26 04:26:25 2012
New Revision: 239703
URL: http://svn.freebsd.org/changeset/base/239703

Log:
  Add EEPROM data hooks for the AR9287.
  
  Tested:
  	* AP99 Reference board (AR7241 + AR9287)

Modified:
  head/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c

Modified: head/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c	Sun Aug 26 02:34:03 2012	(r239702)
+++ head/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c	Sun Aug 26 04:26:25 2012	(r239703)
@@ -137,6 +137,13 @@ ar9287Attach(uint16_t devid, HAL_SOFTC s
 
 	ar5416InitState(AH5416(ah), devid, sc, st, sh, status);
 
+	if (eepromdata != AH_NULL) {
+		AH_PRIVATE(ah)->ah_eepromRead = ath_hal_EepromDataRead;
+		AH_PRIVATE(ah)->ah_eepromWrite = NULL;
+		ah->ah_eepromdata = eepromdata;
+	}
+
+
 	/* XXX override with 9280 specific state */
 	/* override 5416 methods for our needs */
 	AH5416(ah)->ah_initPLL = ar9280InitPLL;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208260426.q7Q4QQ3B059920>