fpga: altera-cvp: Discover Vendor Specific offset
authorThor Thayer <thor.thayer@linux.intel.com>
Mon, 19 Aug 2019 20:48:06 +0000 (15:48 -0500)
committerMoritz Fischer <mdf@kernel.org>
Sat, 24 Aug 2019 18:38:24 +0000 (11:38 -0700)
commiteb12511f0d47b4da58cc9fc1e93362081fa3331b
tree007a6804555c211ca76f0250e7113a465f92f971
parent2949dc443116a66fd1a92d9ef107be16cdd197cd
fpga: altera-cvp: Discover Vendor Specific offset

Newer Intel FPGAs have different Vendor Specific offsets than
legacy parts. Use PCI discovery to find the CvP registers.
Since the register positions remain the same, change the hard
coded address to a more flexible way of indexing registers
from the offset.
Adding new PCI read and write abstraction functions to
handle the offset (altera_read_config_dword() and
altera_write_config_dword()).

Signed-off-by: Thor Thayer <thor.thayer@linux.intel.com>
Signed-off-by: Moritz Fischer <mdf@kernel.org>
drivers/fpga/altera-cvp.c