03 Dec, 2019

1 commit


12 Aug, 2019

1 commit


20 May, 2019

2 commits

  • The FIT image could contain the splash data in 3 different structure:
    - The splash data is embedded in FIT image (internal)
    In this case, the property 'data' presents in FIT image header. And
    internal information 'start' and 'end' represent the location and
    size of splash data inside of FIT image.
    - The splash data is external with absolute position in FIT image
    This case is made by 'mkimage -p [pos]'. The splash data is stored
    at the absolute position. Instead the property 'data', the properties
    'data-position' and 'data-size' are used to specify the location and
    size of the splash data.
    - the splash data is external with relative offset in FIT image
    This case is made by 'mkimage -E'. The splash data is placed after
    the FIT image header with 4 byte alignment. Instead the property
    'data', the properties 'data-offset' and 'data-size' are used to
    specify the location and size of the splash data.

    Currently, the splash only support to load external data with relative
    offset from FIT image. This commit make it possible to load the splash
    data embedded in FIT image or the external data with absolute position

    This inspiration comes from Simon Glass , see
    common/spl_fit.c

    Signed-off-by: Leo Ruan
    Signed-off-by: Mark Jonas
    Reviewed-by: Simon Glass
    Reviewed-by: Stefano Babic

    Leo Ruan
     
  • The splash image could be loaded from different sources (e.g. sf, mmc)
    with different formats (e.g. raw, file-system). These sources are
    structured by a board dependent object 'splash_location'. To decide
    where is the splash image loaded, following environment variables are
    used to select the splash source and file:
    - 'splashsource' is used to select the splash source by setting its
    value to specified name of splash location.
    - 'splashfile' specify the name of splash image file

    But, when loads the splash image from FIT, the name of splash image
    within FIT is specified by splash location name. Due to the splash
    location name is already used for the splash source, its name may
    conflicts with the name of splash image.

    To solve the conflict, the environment variable 'splashfile' is used
    to specify the splash image in FIT, and keeps the splash location
    name for the splash source.

    Signed-off-by: Leo Ruan
    Signed-off-by: Mark Jonas
    Reviewed-by: Simon Glass
    Reviewed-by: Stefano Babic
    Reviewed-by: Tomas Melin

    Leo Ruan
     

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
     

05 Sep, 2017

1 commit

  • Before reading entire FIT image, add sanity check by testing image
    header against FDT_MAGIC. This should help avoid problems in situations
    where FIT is not yet available from storage device, for example when
    performing initial programming of device.

    Cc: Anatolij Gustschin
    Acked-by: Tomas Melin

    Niko Mauno
     

02 Sep, 2017

1 commit


29 Aug, 2017

1 commit

  • Before reading entire FIT image, add sanity check by testing image
    header against FDT_MAGIC. This should help avoid problems in situations
    where FIT is not yet available from storage device, for example when
    performing initial programming of device.

    Cc: Anatolij Gustschin
    Acked-by: Tomas Melin

    Niko Mauno
     

19 Aug, 2017

1 commit


17 Aug, 2017

1 commit


16 Aug, 2017

1 commit

  • We are now using an env_ prefix for environment functions. Rename these
    two functions for consistency. Also add function comments in common.h.

    Quite a few places use getenv() in a condition context, provoking a
    warning from checkpatch. These are fixed up in this patch also.

    Suggested-by: Wolfgang Denk
    Signed-off-by: Simon Glass

    Simon Glass
     

12 Jul, 2017

2 commits


27 Feb, 2017

1 commit

  • Passing NULL to fs_read() for actread value results in hanging U-Boot
    at least on our ARM plattform (TI AM335x). Since fs_read() and
    following functions do not catch nullpointers, writing to 0x0 occurs.

    Passing a local dummy var instead of NULL solves this issue.

    Signed-off-by: Jonathan Golder
    Cc: Anatolij Gustschin

    Jonathan Golder
     

14 Jan, 2017

3 commits


26 Jul, 2016

1 commit

  • Current implementation of splash_init_usb() requires usb_stor_scan()
    which doesn't exist in case of DM_USB simply because real probing
    happens right in usb_init().

    So disable usage of usb_stor_scan() in case of DM_USB.

    Signed-off-by: Alexey Brodkin
    Cc: Nikita Kiryanov
    Cc: Simon Glass
    Cc: Jeroen Hofstee
    Cc: Anatolij Gustschin
    Cc: Robert Winkler
    Reviewed-by: Simon Glass

    Alexey Brodkin
     

14 Jun, 2016

1 commit


04 Jun, 2016

1 commit

  • nand_info[] is now an array of pointers, with the actual mtd_info
    instance embedded in struct nand_chip.

    This is in preparation for syncing the NAND code with Linux 4.6,
    which makes the same change to struct nand_chip. It's in a separate
    commit due to the large amount of changes required to accommodate the
    change to nand_info[].

    Signed-off-by: Scott Wood

    Scott Wood
     

16 Nov, 2015

4 commits


30 Jan, 2015

1 commit

  • Move board/compulab/common/splash.c code to
    common/splash_source.c to make it available for everybody. This move
    renames cl_splash_screen_prepare() to splash_source_load(), and
    the compilation of this code is conditional on CONFIG_SPLASH_SOURCE.

    splash_source features:
    * Provide a standardized way for declaring board specific splash screen
    locations
    * Provide existing routines for auto loading the splash image from the
    locations as declared by the board
    * Introduce the "splashsource" environment variable, which makes it
    possible to select the splash image source.

    cm-t35 and cm-fx6 are updated to use the modified version.

    Signed-off-by: Nikita Kiryanov
    Cc: Stefano Babic
    Cc: Tom Rini
    Cc: Igor Grinberg
    Cc: Anatolij Gustschin
    Reviewed-by: Tom Rini
    Acked-by: Igor Grinberg

    Nikita Kiryanov