]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
(ab)Use the firmware API to store away EEPROM calibration data for
authoradrian <adrian@FreeBSD.org>
Fri, 13 Apr 2012 08:45:50 +0000 (08:45 +0000)
committeradrian <adrian@FreeBSD.org>
Fri, 13 Apr 2012 08:45:50 +0000 (08:45 +0000)
commit6b1a85efd5f030085520e61c4fd16d57d3ff063f
tree7f0cfd263bb6f36869b5a782e25038f2f54e0daf
parent72dc8f21cc12fb0671c3d4ae49c963de6a0cc445
(ab)Use the firmware API to store away EEPROM calibration data for
future use by the ath(4) driver.

These embedded devices put the calibration/PCI bootstrap data on the
on board SPI flash rather than on an EEPROM connected to the NIC.
For some boards, there's two NICs and two sets of EEPROM data in the
main SPI flash.

The particulars:

* Introduce ath_fixup_size, which is the size of the EEPROM area in
  bytes.
* Create a firmware image with a name based on the PCI device identifier
  (bus/slot/device/function).
* Hide some verbose debugging behind 'bootverbose'.

ath(4) can then use this to load in the EEPROM data.

This requires AR71XX_ATH_EEPROM to be defined.
sys/mips/atheros/ar71xx_pci.c