12 Feb, 2019

1 commit


10 Dec, 2018

1 commit

  • In some cases it may be useful to be able to change the fdt we have been
    using and use another one instead. For example, the TI platforms uses an
    EEPROM to store board information and, based on the type of board,
    different dtbs are used by the SPL. When DM_I2C is used, a first dtb must
    be used before the I2C is initialized and only then the final dtb can be
    selected.
    To speed up the process and reduce memory usage, introduce a new function
    fdtdec_setup_best_match() that re-use the DTBs loaded in memory by
    fdtdec_setup() to select the best match.

    Signed-off-by: Jean-Jacques Hiblot
    Reviewed-by: Heiko Schocher

    Jean-Jacques Hiblot
     

09 Oct, 2018

2 commits


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
     

10 May, 2017

1 commit

  • In some boards like the Raspberry Pi the initial bootloader will pass
    a DT to the kernel. When using U-Boot as such kernel, the board code in
    U-Boot should be able to provide U-Boot with this, already assembled
    device tree blob.

    This patch introduces a new config option CONFIG_OF_BOARD to use instead
    of CONFIG_OF_EMBED or CONFIG_OF_SEPARATE which will initialize the DT
    from a board-specific funtion instead of bundling one with U-Boot or as
    a separated file. This allows boards like the Raspberry Pi to reuse the
    device tree passed from the bootcode.bin and start.elf firmware
    files, including the run-time selected device tree overlays.

    Signed-off-by: Alex Deymo
    Reviewed-by: Simon Glass

    Alex Deymo
     

21 Mar, 2017

1 commit


28 May, 2016

1 commit


23 Oct, 2015

1 commit


17 Apr, 2015

1 commit


19 Jun, 2014

1 commit


12 Jun, 2014

1 commit

  • In some cases, an externally-built device tree binary is required to be
    attached to U-Boot. An example is when using image signing, since in that
    case the .dtb file must include the public keys.

    Add a DEV_TREE_BIN option to the Makefile, and update the documentation.

    Usage is something like:

    make DEV_TREE_BIN=boot/am335x-boneblack-pubkey.dtb

    Signed-off-by: Simon Glass

    Simon Glass
     

06 Jun, 2014

1 commit

  • The Device Tree Compiler (DTC) used to have its master
    repository located on jdl.com. While it is still there,
    its official, new, shiny location is on kernel.org here:

    git://git.kernel.org/pub/scm/utils/dtc/dtc.git

    Update a few references to point there instead.

    Signed-off-by: Jon Loeliger
    Acked-by: Simon Glass

    Jon Loeliger
     

03 Aug, 2013

1 commit


24 Jul, 2013

1 commit


15 May, 2013

1 commit


01 May, 2013

1 commit

  • With sandbox it is tricky to add an FDT to the image at build time (or
    later) since we build an ELF file, not a plain binary, and the address
    space of the whole U-Boot is not accessible in the emulated memory map
    of sandbox.

    Sandbox can read files directly from the host, though, so add an option
    to read an FDT from a host file on start-up.

    Signed-off-by: Simon Glass

    Simon Glass
     

03 Apr, 2013

1 commit


27 Oct, 2011

2 commits

  • This adds support for a new environment variable called 'fdtcontroladdr'. If
    defined, the hex address is used as the address of the control fdt for U-Boot.

    Note: I have not changed CONFIG_PRAM section as I already have an
    outstanding patch on that.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This new option allows U-Boot to embed a binary device tree into its image
    to allow run-time control of peripherals. This device tree is for U-Boot's
    own use and is not necessarily the same one as is passed to the kernel.

    The device tree compiler output should be placed in the $(obj)
    rooted tree. Since $(OBJCOPY) insists on adding the path to the
    generated symbol names, to ensure consistency it should be
    invoked from the directory where the .dtb file is located and
    given the input file name without the path.

    This commit contains my entry for the ugliest Makefile / shell interaction
    competition.

    Signed-off-by: Simon Glass

    Simon Glass