23 Nov, 2014

10 commits

  • This macro can be overridden in source files (before including common.h)
    and can be used to specify a prefix for debug and error messages. An
    example of how to use this is shown below:

    #define pr_fmt(fmt) "foo: " fmt

    #include

    ...
    debug("bar");

    The resulting message will read:

    foo: bar

    Acked-by: Simon Glass
    Signed-off-by: Thierry Reding
    Signed-off-by: Simon Glass

    Thierry Reding
     
  • When enumerating devices, honour the pci_skip_dev() function. This can
    be used by PCI controller drivers to restrict which devices will be
    probed.

    This is required by the NVIDIA Tegra PCIe controller driver, which will
    fail with a data abort exception if an access is attempted to a device
    number larger than 0 outside of bus 0. pci_skip_dev() is therefore
    implemented to prevent any such accesses.

    Signed-off-by: Thierry Reding
    Signed-off-by: Simon Glass

    Thierry Reding
     
  • When listing the devices on a PCI bus, the current code will blindly try
    to access all devices. Internally this causes pci_bus_to_hose() to be
    repeatedly called and output an error message every time. Prevent this
    by calling pci_bus_to_hose() once and abort early if no bus was found.

    Signed-off-by: Thierry Reding
    Signed-off-by: Simon Glass

    Thierry Reding
     
  • Provide a new modifier to vsprintf() to print phys_addr_t variables to
    avoid having to cast or #ifdef when printing them out. The %pa modifier
    is used for this purpose, so phys_addr_t variables need to be passed by
    reference, like so:

    phys_addr_t start = 0;

    printf("start: %pa\n", &start);

    Depending on the size of phys_addr_t this will print out the address
    with 8 or 16 hexadecimal digits following a 0x prefix.

    Signed-off-by: Thierry Reding
    Tested-by: Stephen Warren
    Signed-off-by: Simon Glass

    Thierry Reding
     
  • Some filesystems have a UUID stored in its superblock. To
    allow using root=UUID=... for the kernel command line we
    need a way to read-out the filesystem UUID.

    changes rfc -> v1:
    - make the environment variable an option parameter. If not
    given, the UUID is printed out. If given, it is stored in the env
    variable.
    - corrected typos
    - return error codes

    changes v1 -> v2:
    - fix return code of do_fs_uuid(..)
    - document do_fs_uuid(..)
    - implement fs_uuid_unsuported(..) be more consistent with the
    way other optional functionality works

    changes v2 -> v3:
    - change ext4fs_uuid(..) to make use of #if .. #else .. #endif
    construct to get rid of unreachable code

    Hit any key to stop autoboot: 0
    => fsuuid
    fsuuid - Look up a filesystem UUID

    Usage:
    fsuuid :
    - print filesystem UUID
    fsuuid :
    - set environment variable to filesystem UUID

    => fsuuid mmc 0:1
    d9f9fc05-45ae-4a36-a616-fccce0e4f887
    => fsuuid mmc 0:2
    eb3db83c-7b28-499f-95ce-9e0bb21cda81
    => fsuuid mmc 0:1 uuid1
    => fsuuid mmc 0:2 uuid2
    => printenv uuid1
    uuid1=d9f9fc05-45ae-4a36-a616-fccce0e4f887
    => printenv uuid2
    uuid2=eb3db83c-7b28-499f-95ce-9e0bb21cda81
    =>

    Signed-off-by: Christian Gmeiner
    Acked-by: Stephen Warren

    Christian Gmeiner
     
  • Except the first loop, init_sata() should return 0 instead of 1
    in the others.

    This patch fix the issue of the 2nd sata port not workable on pci-sata card.

    Signed-off-by: Pengbo Li

    li pengbo
     
  • bcm11130
    bcm11130_nand

    Signed-off-by: Steve Rae

    Steve Rae
     
  • bcm911360_entphn
    bcm911360_entphn-ns
    bcm911360k
    bcm958300k-ns
    bcm958305k

    - updates to support Cygnus and NSP board families better
    - add functions so CONFIG_ARMV7_NONSEC can be enabled on Cygnus boards

    Signed-off-by: Steve Rae

    Steve Rae
     
  • We had the problem on an AM33xx platform, that SPL detected an
    unsupported boot-device. But since this message is a debug message
    it took a bit of time to really know, where the hangup in SPL
    resulted from. So let's change this debug message to a printf
    and also print the detected boot-device that is not supported.
    This makes debugging of such cases much easier.

    Signed-off-by: Stefan Roese
    Cc: Wolfgang Denk
    Cc: Tom Rini
    Acked-by: Heiko Schocher

    Stefan Roese
     
  • U-Boot has never cared about the type when we get max/min of two
    values, but Linux Kernel does. This commit gets min, max, min3, max3
    macros synced with the kernel introducing type checks.

    Many of references of those macros must be fixed to suppress warnings.
    We have two options:
    - Use min, max, min3, max3 only when the arguments have the same type
    (or add casts to the arguments)
    - Use min_t/max_t instead with the appropriate type for the first
    argument

    Signed-off-by: Masahiro Yamada
    Acked-by: Pavel Machek
    Acked-by: Lukasz Majewski
    Tested-by: Lukasz Majewski
    [trini: Fixup arch/blackfin/lib/string.c]
    Signed-off-by: Tom Rini

    Masahiro Yamada
     

21 Nov, 2014

10 commits


20 Nov, 2014

3 commits


19 Nov, 2014

12 commits


17 Nov, 2014

5 commits

  • The code for this board supports following features:
    - Boot media support: NAND flash/SD card/SPI flash
    - Support LCD display (optional, disabled by default)
    - Support ethernet
    - Support USB mass storage

    Signed-off-by: Bo Shen
    Signed-off-by: Andreas Bießmann

    Bo Shen
     
  • The code for this board supports following features:
    - Boot media support: NAND flash/SD card/SPI flash
    - Support LCD display
    - Support ethernet
    - Support USB mass storage

    Signed-off-by: Bo Shen
    Signed-off-by: Andreas Bießmann

    Bo Shen
     
  • The User Register in GMAC IP is used to select interface type.
    When with GE feature, it is used to select interface between
    RGMII and GMII. If without GE feature, it is used to select
    interface between MII and RMII.

    Signed-off-by: Bo Shen
    Signed-off-by: Andreas Bießmann

    Bo Shen
     
  • As in SAMA5D4 SoC, the gf table in ROM code can not be seen.
    So, when we try to use PMECC, we need to build it when do
    initialization.
    Add a macro NO_GALOIS_TABLE_IN_ROM in soc header file. If it
    is defined we will build gf table runtime.

    The PMECC use the BCH algorithm, so based on the build_gf_tables()
    function in lib/bch.c, we can build the Galois Field lookup table.

    Signed-off-by: Josh Wu
    Signed-off-by: Bo Shen
    Signed-off-by: Andreas Bießmann

    Josh Wu
     
  • replaces the at91bootstrap code with SPL code.
    make the spl image with:
    ./tools/mkimage -T atmelimage -d spl/u-boot-spl.bin spl/boot.bin

    this writes the length of the spl image into the 6th
    execption vector. This is needed from the ROM bootloader.

    Signed-off-by: Heiko Schocher
    Reviewed-by: Bo Shen
    Reviewed-by: Andreas Bießmann
    Signed-off-by: Andreas Bießmann

    Heiko Schocher