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;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to