]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
add FPGA manager core
authorAlan Tull <atull@opensource.altera.com>
Wed, 7 Oct 2015 15:36:28 +0000 (16:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Oct 2015 17:08:15 +0000 (18:08 +0100)
commit6a8c3be7ec8eb3c1197766f9245e0d65a4e5aff8
tree311c3845b068f737086813b1231b1c3b695f0a1c
parentafb79e993a949d02895b912eacc86ab0e416b6fd
add FPGA manager core

API to support programming FPGA's.

The following functions are exported as GPL:
* fpga_mgr_buf_load
   Load fpga from image in buffer

* fpga_mgr_firmware_load
   Request firmware and load it to the FPGA.

* fpga_mgr_register
* fpga_mgr_unregister
   FPGA device drivers can be added by calling
   fpga_mgr_register() to register a set of
   fpga_manager_ops to do device specific stuff.

* of_fpga_mgr_get
* fpga_mgr_put
   Get/put a reference to a fpga manager.

The following sysfs files are created:
* /sys/class/fpga_manager/<fpga>/name
  Name of low level driver.

* /sys/class/fpga_manager/<fpga>/state
  State of fpga manager

Signed-off-by: Alan Tull <atull@opensource.altera.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/Kconfig
drivers/Makefile
drivers/fpga/Kconfig [new file with mode: 0644]
drivers/fpga/Makefile [new file with mode: 0644]
drivers/fpga/fpga-mgr.c [new file with mode: 0644]
include/linux/fpga/fpga-mgr.h [new file with mode: 0644]