30 Jul, 2019

1 commit

  • In cmd/fpga.c the commands should return enum command_ret_t, e.g.
    CMD_RET_USAGE, CMD_RET_SUCCESS, or CMD_RET_FAILURE. What they actually
    do is passing a return value from different 'fpga_' functions.

    Passing on a return value of -1 from a called function leads to printing
    out usage text. In case of actually correct usage with correctly
    specified parameters but some fail at runtime printing out that usage
    text is distracting.

    The reason is most 'fpga_' functions return either FPGA_SUCCESS or
    FPGA_FAIL, the latter was equal to -1 which is the same value as
    CMD_RET_USAGE. So just passing on FPGA_FAIL lead to printing out usage.

    We should only return CMD_RET_USAGE in cases, where the user sent wrong
    input. Every other case should return CMD_RET_SUCCESS or
    CMD_RET_FAILURE, and not simply pass an error code.

    Simply changing FPGA_FAIL from -1 to 1 gets the job done.

    Suggested-by: Michal Simek
    Signed-off-by: Alexander Dahl

    Alexander Dahl
     

16 Apr, 2019

1 commit


01 Jun, 2018

1 commit

  • This patch adds support to load secure bitstreams(authenticated or
    encrypted or both). As of now, this feature is added and tested only
    for xilinx bitstreams and the secure bitstream was generated using
    xilinx bootgen tool, but the command is defined in more generic way.

    Command example to load authenticated and device key
    encrypted bitstream is as follows
    "fpga loads 0 100000 2000000 0 1"

    Signed-off-by: Siva Durga Prasad Paladugu
    Signed-off-by: Michal Simek

    Siva Durga Prasad Paladugu
     

07 May, 2018

1 commit

  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have a single declared
    license in the tag as both the before and after are identical in tag
    contents. There's also a few places where I found we did not have a tag
    and have introduced one.

    Signed-off-by: Tom Rini

    Tom Rini
     

14 Dec, 2017

1 commit

  • This drops the limit that fpga is only loaded from FIT images for Xilinx.
    This is done by moving the 'partial' check from 'common/image.c' to
    'drivers/fpga/xilinx.c' (the only driver supporting partial images yet)
    and supplies a weak default implementation in 'drivers/fpga/fpga.c'.

    Signed-off-by: Simon Goldschmidt
    Tested-by: Michal Simek (On zcu102)
    Signed-off-by: Michal Simek

    Goldschmidt Simon
     

27 Jan, 2016

1 commit


21 Jan, 2015

2 commits


20 May, 2014

3 commits


24 Jul, 2013

1 commit


06 May, 2013

4 commits


02 Apr, 2013

1 commit

  • 'bool' is defined in random places. This patch consolidates them into a
    single header file include/linux/types.h, using stdbool.h introduced in C99.

    All other #define, typedef and enum are removed. They are all consistent with
    true = 1, false = 0.

    Replace FALSE, False with false. Replace TRUE, True with true.
    Skip *.py, *.php, lib/* files.

    Signed-off-by: York Sun

    York Sun
     

01 Aug, 2011

1 commit

  • Fix compiler warning:

    cmd_fpga.c:318: warning: passing argument 3 of 'fit_image_get_data'
    from incompatible pointer type

    Adding the needed 'const' here entails a whole bunch of additonal
    changes all over the FPGA code.

    Signed-off-by: Wolfgang Denk
    Cc: Andre Schwarz
    Cc: Murray Jensen
    Acked-by: Andre Schwarz

    Wolfgang Denk
     

14 Oct, 2010

1 commit

  • 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: Stefano Babic

    Stefano Babic
     

03 Oct, 2009

1 commit

  • PPC boards are the only users of the current FPGA code which is littered
    with manual relocation fixups. Now that proper relocation is supported
    for PPC boards, remove FPGA manual relocation.

    Signed-off-by: Peter Tyser

    Peter Tyser
     

19 Oct, 2008

1 commit


21 May, 2008

1 commit

  • This commit gets rid of a huge amount of silly white-space issues.
    Especially, all sequences of SPACEs followed by TAB characters get
    removed (unless they appear in print statements).

    Also remove all embedded "vim:" and "vi:" statements which hide
    indentation problems.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

13 Oct, 2005

1 commit


22 Aug, 2002

1 commit