diff options
| author | H Hartley Sweeten <[email protected]> | 2014-11-10 16:20:11 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2014-11-26 15:31:33 -0800 |
| commit | 951fd40b28444e273404c2fb0b28d8e3cf5660b2 (patch) | |
| tree | 6a4809ad7aaac0005863e62b2a062373ade000f6 /tools/perf/scripts/python | |
| parent | 4484a23907724ad524d41e11dafa2a6be993420a (diff) | |
staging: comedi: addi_apci_1564: detect PLD revision for I/O mapping
The APCI-1564 has different I/O mapping depending on if the PLD revision is
Rev 1.0 or Rev 2.x. The revision can be determined by reading the EEPROM
register at offset 0x00 of PCI BAR 0 and checking the value of bits 7 to 4.
Add this check to apci1564_auto_attach(). Currently this driver is coded
to work with the Rev 2.x I/O mapping. For now, fail the attach if a Rev 1.0
PLD is detected. Document the I/O mapping for both revisions.
Signed-off-by: H Hartley Sweeten <[email protected]>
Reviewed-by: Ian Abbott <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions