Skip to content
Snippets Groups Projects
  1. Sep 05, 2011
    • Wolfgang Denk's avatar
      FPGA: constify Lattice FPGA code · fb2d6efb
      Wolfgang Denk authored
      
      The Lattice code was missed by commit e6a857da "fpga: constify to fix
      build warning" resulting in such warnings:
      
      fpga.c: In function 'fpga_load':
      fpga.c:238: warning: passing argument 2 of 'lattice_load' discards qualifiers from pointer target type
      fpga.c: In function 'fpga_dump':
      fpga.c:278: warning: passing argument 2 of 'lattice_dump' discards qualifiers from pointer target type
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      cc: Stefano Babic <sbabic@denx.de>
      fb2d6efb
  2. Aug 01, 2011
  3. Jul 28, 2011
  4. Dec 09, 2010
  5. Nov 30, 2010
  6. Nov 17, 2010
    • Sebastien Carlier's avatar
      Switch from archive libraries to partial linking · 6d8962e8
      Sebastien Carlier authored
      
      Before this commit, weak symbols were not overridden by non-weak symbols
      found in archive libraries when linking with recent versions of
      binutils.  As stated in the System V ABI, "the link editor does not
      extract archive members to resolve undefined weak symbols".
      
      This commit changes all Makefiles to use partial linking (ld -r) instead
      of creating library archives, which forces all symbols to participate in
      linking, allowing non-weak symbols to override weak symbols as intended.
      This approach is also used by Linux, from which the gmake function
      cmd_link_o_target (defined in config.mk and used in all Makefiles) is
      inspired.
      
      The name of each former library archive is preserved except for
      extensions which change from ".a" to ".o".  This commit updates
      references accordingly where needed, in particular in some linker
      scripts.
      
      This commit reveals board configurations that exclude some features but
      include source files that depend these disabled features in the build,
      resulting in undefined symbols.  Known such cases include:
      - disabling CMD_NET but not CMD_NFS;
      - enabling CONFIG_OF_LIBFDT but not CONFIG_QE.
      
      Signed-off-by: default avatarSebastien Carlier <sebastien.carlier@gmail.com>
      6d8962e8
  7. Oct 27, 2010
  8. 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
  9. 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
  10. Mar 24, 2010
    • Wolfgang Wegner's avatar
      add block write function to spartan3 slave serial load · 89083346
      Wolfgang Wegner authored
      Using seperate function calls for each bit-bang of slave serial
      load can be painfully slow. This patch adds the possibility to
      supply a block write function that loads the complete block of
      data in one call (like it can already be done with Altera FPGAs).
      On an MCF5373L (240 MHz) loading an XC3S4000 this reduces the load
      time from around 15 seconds to around 3 seconds
      
      Signed-off-by: Wolfgang Wegner <w.wegner at astro-kom.de>
      89083346
  11. Oct 03, 2009
  12. Feb 21, 2009
  13. Dec 05, 2008
Loading