10 Sep, 2016

1 commit

  • We only need the function found in cmd/disk.c when we have IDE, SCSI or
    USB_STORAGE enabled. While the first two are easy to get right, in the
    3rd case we assume that the set of cases where we do have USB and do not
    enable USB_STORAGE are small enough that we can take the small bloat of
    un-discarded strings on gcc prior to 6.x

    Signed-off-by: Tom Rini

    Tom Rini
     

27 May, 2016

1 commit

  • If serial support is not compiled into U-Boot, which may be the case
    for some SPL builds, the following warning will be generated in disk.c:

    cmd/disk.c: In function 'common_diskboot':
    cmd/disk.c:16:6: warning: variable 'dev' set but not used [-Wunused-but-set-variable]
    int dev, part;
    ^
    The warning is a result of printf() calls being optimized away, and
    thus the whole dev variable becomes indeed unused. Mark the variable
    as __maybe_unused .

    Signed-off-by: Marek Vasut
    Cc: Simon Glass
    Cc: Tom Rini
    Reviewed-by: Simon Glass
    Reviewed-by: Tom Rini

    Marek Vasut
     

17 May, 2016

1 commit


15 Mar, 2016

6 commits

  • Tom Rini
     
  • There are already two FIT options in Kconfig but the CONFIG options are
    still in the header files. We need to do a proper move to fix this.

    Move these options to Kconfig and tidy up board configuration:

    CONFIG_FIT
    CONFIG_OF_BOARD_SETUP
    CONFIG_OF_SYSTEM_SETUP
    CONFIG_FIT_SIGNATURE
    CONFIG_FIT_BEST_MATCH
    CONFIG_FIT_VERBOSE
    CONFIG_OF_STDOUT_VIA_ALIAS
    CONFIG_RSA

    Unfortunately the first one is a little complicated. We need to make sure
    this option is not enabled in SPL by this change. Also this option is
    enabled automatically in the host builds by defining CONFIG_FIT in the
    image.h file. To solve this, add a new IMAGE_USE_FIT #define which can
    be used in files that are built on the host but must also build for U-Boot
    and SPL.

    Note: Masahiro's moveconfig.py script is amazing.

    Signed-off-by: Simon Glass
    [trini: Add microblaze change, various configs/ re-applies]
    Signed-off-by: Tom Rini

    Simon Glass
     
  • To ease conversion to driver model, add helper functions which deal with
    calling each block device method. With driver model we can reimplement these
    functions with the same arguments.

    Use inline functions to avoid increasing code size on some boards.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng
    Tested-by: Stephen Warren

    Simon Glass
     
  • This is a device number, and we want to use 'dev' to mean a driver model
    device. Rename the member.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng
    Tested-by: Stephen Warren

    Simon Glass
     
  • Rename this function to blk_get_device_part_str(). This is a better name
    because it makes it clear that the function returns a block device and
    parses a string.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng
    Tested-by: Stephen Warren

    Simon Glass
     
  • Use 'struct' instead of a typdef. Also since 'struct block_dev_desc' is long
    and causes 80-column violations, rename it to struct blk_desc.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng
    Tested-by: Stephen Warren

    Simon Glass
     

25 Jan, 2016

1 commit

  • Now that they are in their own directory, we can remove this prefix.
    This makes it easier to find a file since the prefix does not get in the
    way.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng
    Reviewed-by: Heiko Schocher
    Acked-by: Stefan Roese
    Acked-by: Przemyslaw Marczak

    Simon Glass