28 Jan, 2020

1 commit

  • This can be used for device tree size reduction similar as
    CONFIG_OF_SPL_REMOVE_PROPS option. Some boards must pass the
    built-in DTB unchanged to the kernel, thus we may not cut it
    down unconditionally. Therefore enable the property removal
    list option only if CONFIG_OF_DTB_PROPS_REMOVE is selected.

    Signed-off-by: Anatolij Gustschin

    Anatolij Gustschin
     

16 Jan, 2020

1 commit


08 Jan, 2020

1 commit


31 Oct, 2019

2 commits


12 Apr, 2019

1 commit


10 Apr, 2019

1 commit


10 Feb, 2019

1 commit


17 Aug, 2018

1 commit


30 Jul, 2018

1 commit

  • Remove additional trailing whitespaces in prompt reported by kconfiglib:

    warning: DM_PMIC_SANDBOX (defined at drivers/power/pmic/Kconfig:133) has
    leading or trailing whitespace in its prompt
    warning: (defined at dts/Kconfig:204) has leading or trailing
    whitespace in its prompt

    Signed-off-by: Michal Simek
    Reviewed-by: Felix Brack

    Michal Simek
     

11 Jul, 2018

1 commit

  • Add support for loading U-Boot on the Broadcom 7445 SoC. This port
    assumes Broadcom's BOLT bootloader is acting as the second stage
    bootloader, and U-Boot is acting as the third stage bootloader, loaded
    as an ELF program by BOLT.

    Signed-off-by: Thomas Fitzsimmons
    Cc: Stefan Roese
    Cc: Tom Rini
    Cc: Florian Fainelli

    Thomas Fitzsimmons
     

17 Nov, 2017

1 commit

  • Currently, pylibfdt is always compiled if swig is installed on your
    machine. It is really annoying because most of targets (excepts
    x86, sunxi, rockchip) do not use dtoc or binman.

    "checkbinman" and "checkdtoc" are wrong. It is odd that the final
    build stage checks if we have built necessary tools. If your platform
    depends on dtoc/binman, you must be able to build pylibfdt. If swig
    is not installed, it should fail immediately.

    I added PYLIBFDT, DTOC, BINMAN entries to Kconfig. They should be
    property select:ed by platforms that need them. Kbuild will descend
    into scripts/dtc/pylibfdt/ only when CONFIG_PYLIBFDT is enabled.

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Simon Glass

    Masahiro Yamada
     

06 Oct, 2017

2 commits

  • u-boot can be embedded within a FIT image with multiple DTBs. It then
    selects at run-time which one is best suited for the platform.
    Use the same principle here for the SPL: put the DTBs in a FIT image,
    compress it (LZO, GZIP, or no compression) and append it at the end of the
    SPL.

    Signed-off-by: Jean-Jacques Hiblot
    [trini: Move default y of SPL_MULTI_DTB_FIT_DYN_ALLOC to it being the
    default choice if SYS_MALLOC_F, drop spl.h include from lib/fdtdec.c
    it's unused.]
    Signed-off-by Tom Rini

    Jean-Jacques Hiblot
     
  • CONFIG_FIT_EMBED might be confused with CONFIG_OF_EMBED, rename it
    MULTI_DTB_FIT as it is able to get a DTB from a FIT image containing
    multiple DTBs. Also move the option to the Kconfig dedicated to the DTS
    options and create a README for this feature.

    Signed-off-by: Jean-Jacques Hiblot
    Reviewed-by: Tom Rini
    Reviewed-by: Simon Glass

    Jean-Jacques Hiblot
     

24 Sep, 2017

2 commits


13 Aug, 2017

1 commit

  • For the RK3368, we want to use OF_PLATDATA in TPL, but full OF_CONTROL
    in SPL: this requires the introduction of a new family of
    configuration options to decouple SPL_OF_CONTROL and SPL_OF_PLATDATA
    from TPL.

    Consequently, Makefile.spl needs to be adjusted to test for these
    configuration items through the $(SPL_TPL_) macro instead of
    hard-coding the SPL variant.

    Signed-off-by: Philipp Tomsich
    Reviewed-by: Simon Glass
    Reviewed-by: Tom Rini

    Philipp Tomsich
     

11 Jul, 2017

1 commit


01 Jun, 2017

1 commit


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
     

05 Apr, 2017

1 commit


23 Mar, 2017

1 commit

  • Certain boards come in different variations by way of utilizing daughter
    boards, for example. These boards might contain additional chips, which
    are added to the main board's busses, e.g. I2C.

    The device tree support for such boards would either, quite naturally,
    employ the overlay mechanism to add such chips to the tree, or would use
    one large default device tree, and delete the devices that are actually
    not present.

    Regardless of approach, even on the U-Boot level, a modification of the
    device tree is a prerequisite to have such modular families of boards
    supported properly.

    Therefore, we add an option to make the U-Boot device tree (the actual
    copy later used by the driver model) writeable, and add a callback
    method that allows boards to modify the device tree at an early stage,
    at which, hopefully, also the application of device tree overlays will
    be possible.

    Signed-off-by: Mario Six
    Reviewed-by: Simon Glass
    Signed-off-by: Stefan Roese

    mario.six@gdsys.cc
     

15 Jul, 2016

1 commit


23 May, 2016

1 commit

  • OF_LIST can't remain empty that's why setup it up to default DTB.

    If it is empty u-boot.img is created without FDT partition:
    For example:
    ./tools/mkimage -f auto -A arm -T firmware -C none -O u-boot -a
    0x8000000 -e 0 -n "U-Boot 2016.05-rc3 ..." -E -b -d u-boot-nodtb.bin u-boot.img
    Can't set 'timestamp' property for '' node (FDT_ERR_NOSPACE)
    FIT description: Firmware image with one or more FDT blobs
    Created: Wed May 4 15:02:52 2016
    Image 0 (firmware@1)
    Description: U-Boot 2016.05-rc3-00080-gff2e12ae22a8-dirty for zynqmp
    board
    Created: Wed May 4 15:02:52 2016
    Type: Firmware
    Compression: uncompressed
    Data Size: unavailable
    Architecture: ARM
    Load Address: 0x08000000
    Default Configuration: 'conf@1'
    Configuration 0 (conf@1)
    Description: unavailable
    Kernel: unavailable

    And then image like this doesn't contain description and link to FDT and
    can't boot.

    Signed-off-by: Michal Simek
    Reviewed-by: Tom Rini

    Michal Simek
     

15 Mar, 2016

2 commits


25 Feb, 2016

1 commit

  • These two properties are necessary for SPL to get clocks from DT.

    Note:
    For now, only clock look-up by index is supported (clk_get_by_index()
    function), so "clock-names" is never parsed in U-Boot. However, we
    may want to support something like clk_get_by_name() in the future,
    so let's keep "clock-names" as well as "clocks".

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

03 Oct, 2015

1 commit


17 Sep, 2015

1 commit


31 Aug, 2015

1 commit


19 Aug, 2015

1 commit

  • As we discussed a couple of times, negative CONFIG options make our
    life difficult; CONFIG_SYS_NO_FLASH, CONFIG_SYS_DCACHE_OFF, ...
    and here is another one.

    Now, there are three boards enabling OF_CONTROL on SPL:
    - socfpga_arria5_defconfig
    - socfpga_cyclone5_defconfig
    - socfpga_socrates_defconfig

    This commit adds CONFIG_SPL_OF_CONTROL for them and deletes
    CONFIG_SPL_DISABLE_OF_CONTROL from the other boards to invert
    the logic.

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Tom Rini
    Reviewed-by: Simon Glass

    Masahiro Yamada
     

22 Jul, 2015

1 commit

  • The SPL device tree size must be minimised to save memory. Only include
    properties that are needed by SPL - this is determined by the presence
    of the "u-boot,dm-pre-reloc" property. Also remove a predefined list of
    unused properties from the nodes that remain.

    Signed-off-by: Simon Glass

    Simon Glass
     

23 Apr, 2015

1 commit


25 Feb, 2015

1 commit


28 Oct, 2014

1 commit


25 Sep, 2014

2 commits

  • This option specifies the default Device Tree used for the run-time
    configuration of U-Boot.

    Signed-off-by: Masahiro Yamada
    Cc: Simon Glass
    Cc: Stephen Warren
    Cc: Minkyu Kang
    Cc: Michal Simek

    Masahiro Yamada
     
  • This commit moves:
    CONFIG_OF_CONTROL
    CONFIG_OF_SEPARATE
    CONFIG_OF_EMBED
    CONFIG_OF_HOSTFILE

    Because these options are currently not supported for SPL,
    the "Device Tree Control" menu does not appear in the SPL
    configuration.

    Note:
    zynq-common.h should be adjusted so as not to change the
    default value of CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME.

    Signed-off-by: Masahiro Yamada
    Acked-by: Simon Glass
    Cc: Stephen Warren
    Cc: Minkyu Kang
    Acked-by: Michal Simek

    Masahiro Yamada