Skip to content
Snippets Groups Projects
  1. Nov 29, 2016
  2. Nov 10, 2016
    • Alan Tull's avatar
      fpga-mgr: add fpga image information struct · 1df2865f
      Alan Tull authored
      
      This patch adds a minor change in the FPGA Manager API
      to hold information that is specific to an FPGA image
      file.  This change is expected to bring little, if any,
      pain.  The socfpga and zynq drivers are fixed up in
      this patch.
      
      An FPGA image file will have particulars that affect how the
      image is programmed to the FPGA.  One example is that
      current 'flags' currently has one bit which shows whether the
      FPGA image was built for full reconfiguration or partial
      reconfiguration.  Another example is timeout values for
      enabling or disabling the bridges in the FPGA.  As the
      complexity of the FPGA design increases, the bridges in the
      FPGA may take longer times to enable or disable.
      
      This patch adds a new 'struct fpga_image_info', moves the
      current 'u32 flags' to it.  Two other image-specific u32's
      are added for the bridge enable/disable timeouts.  The FPGA
      Manager API functions are changed, replacing the 'u32 flag'
      parameter with a pointer to struct fpga_image_info.
      Subsequent patches fix the existing low level FPGA manager
      drivers.
      
      Signed-off-by: default avatarAlan Tull <atull@opensource.altera.com>
      Acked-by: default avatarMoritz Fischer <moritz.fischer@ettus.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      1df2865f
    • Alan Tull's avatar
      fpga: add method to get fpga manager from device · 9dce0287
      Alan Tull authored
      
      The intent is to provide a non-DT method of getting
      ahold of a FPGA manager to do some FPGA programming.
      
      This patch refactors of_fpga_mgr_get() to reuse most of it
      while adding a new method fpga_mgr_get() for getting a
      pointer to a fpga manager struct, given the device.
      
      Signed-off-by: default avatarAlan Tull <atull@opensource.altera.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9dce0287
  3. Nov 24, 2015
  4. Oct 23, 2015
  5. Oct 07, 2015
    • Alan Tull's avatar
      add FPGA manager core · 6a8c3be7
      Alan Tull authored
      
      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: default avatarAlan Tull <atull@opensource.altera.com>
      Acked-by: default avatarMichal Simek <michal.simek@xilinx.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      6a8c3be7
Loading