Skip to content
Snippets Groups Projects
  1. Oct 18, 2010
    • Wolfgang Denk's avatar
      FPGA: fix support for non-Lattice devices · 439f6f7e
      Wolfgang Denk authored
      
      Commit 3b8ac464 "FPGA: add support for downloading Lattice bitstream"
      added support for Lattice devices, but failed to add #ifdef's that are
      needed when building for non-Lattice devices, which results in build
      failures like these:
      
      Configuring for GEN860T board...
      drivers/fpga/libfpga.a(fpga.o): In function `fpga_dev_info':
      /home/wd/git/u-boot/work/drivers/fpga/fpga.c:145: undefined reference to `lattice_info'
      drivers/fpga/libfpga.a(fpga.o): In function `fpga_dump':
      /home/wd/git/u-boot/work/drivers/fpga/fpga.c:269: undefined reference to `lattice_dump'
      drivers/fpga/libfpga.a(fpga.o): In function `fpga_load':
      /home/wd/git/u-boot/work/drivers/fpga/fpga.c:233: undefined reference to `lattice_load'
      make: *** [u-boot] Error 1
      
      Add the missing code.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Stefano Babic <sbabic@denx.de>
      439f6f7e
  2. Oct 13, 2010
    • Stefano Babic's avatar
      FPGA: add support for downloading Lattice bitstream · 3b8ac464
      Stefano Babic authored
      
      The patch adds support to load a Lattice's bitstream
      image (called VME file) into a Lattice FPGA. The code
      containing the state machine delivered as part of
      Lattice's ispVMtools is integrated.
      
      The FPGA is programmed using the JTAG interface. The
      board maintainer must provide accessors to drive the
      JTAG signals TCK, TMS, TDI and to get the value of the
      input signal TDO.
      
      Signed-off-by: default avatarStefano Babic <sbabic@denx.de>
      3b8ac464
  3. Oct 03, 2009
  4. Dec 05, 2008
  5. Aug 12, 2008
  6. Apr 13, 2008
    • eran liberty's avatar
      Altera Stratix II support · 3c735e74
      eran liberty authored
      
      Adds Support for Altera's Stratix II.
      
      Within your board specific init file you will have to call
      
      1. fpga_init (/* relocated code offset. usually => */ gd->reloc_off);
      2. fpga_add (fpga_altera, (Altera_desc*)&altera_desc);
      
      Altera_desc* contines (for example):
      	{
      	 Altera_StratixII,	/* part type */
      	 passive_serial,	/* interface type */
      	 1,			/* bytes of data part can accept */
      	 (void *)(&funcs),	/* interface function table */
      	 0L,			/* base interface address */
      	 0			/* implementation specific cookie */
      	 }
      
      funcs is the interface. It is of type altera_board_specific_func.
      It looks like this:
      altera_board_specific_func func = {
      	pre_fn,
      	config_fn,
      	status_fn,
      	done_fn,
      	clk_fn,
      	data_fn,
      	abort_fn,
      	post_fn,
      };
      
      you will have to implement these functions, which is usually bit
      banging some gpio.
      
      Signed-off-by: default avatarEran Liberty <liberty@extricom.com>
      3c735e74
  7. Jan 09, 2008
  8. Oct 13, 2005
  9. Jun 27, 2003
    • Wolfgang Denk's avatar
      * Code cleanup: · 8bde7f77
      Wolfgang Denk authored
        - remove trailing white space, trailing empty lines, C++ comments, etc.
        - split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c)
      
      * Patches by Kenneth Johansson, 25 Jun 2003:
        - major rework of command structure
          (work done mostly by Michal Cendrowski and Joakim Kristiansen)
      8bde7f77
  10. Nov 02, 2002
Loading