Skip to content
Snippets Groups Projects
  1. Oct 09, 2022
  2. Oct 08, 2022
  3. Oct 07, 2022
  4. Oct 06, 2022
  5. Oct 03, 2022
    • Tom Rini's avatar
      Merge branch 'next' · 2d459135
      Tom Rini authored
      2d459135
    • Tom Rini's avatar
      Prepare v2022.10 · 4debc57a
      Tom Rini authored
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      4debc57a
    • Fabio Estevam's avatar
      imx8mn-ddr4-evk-u-boot: Fix broken boot · 0bd7811c
      Fabio Estevam authored and Tom Rini's avatar Tom Rini committed
      
      When the imx8mn.dtsi file was pulled in from Linux, the UARTs
      were moved into an spba sub-node which wasn't being included
      in the SPL device tree.  This meant the references to the UART
      weren't being handled properly and when booting the system would
      constantly reboot.  Fix this by adding the spba node to the spl
      device tree to restore normal booting.
      
      Based on the patch from Adam Ford for the imx8mn-beacon-kit-u-boot
      board.
      
      Fixes: 4e5114da ("imx8mn: synchronise device tree with linux")
      Signed-off-by: default avatarFabio Estevam <festevam@denx.de>
      0bd7811c
    • Fabio Estevam's avatar
      imx8mn-venice-u-boot: Fix broken boot · a2bf0373
      Fabio Estevam authored and Tom Rini's avatar Tom Rini committed
      
      When the imx8mn.dtsi file was pulled in from Linux, the UARTs
      were moved into an spba sub-node which wasn't being included
      in the SPL device tree.  This meant the references to the UART
      weren't being handled properly and when booting the system would
      constantly reboot.  Fix this by adding the spba node to the spl
      device tree to restore normal booting.
      
      Based on the patch from Adam Ford for the imx8mn-beacon-kit-u-boot
      board.
      
      Fixes: 4e5114da ("imx8mn: synchronise device tree with linux")
      Signed-off-by: default avatarFabio Estevam <festevam@denx.de>
      a2bf0373
  6. Sep 30, 2022
    • Tom Rini's avatar
      Merge branch '2022-09-29-dm-core-support-multiple-device-trees-in-ofnode' into next · 6ee6e159
      Tom Rini authored
      To quote the author:
      At present the ofnode interface is somewhat limited, in that it cannot
      access the device tree provided by the OS, only the one used by U-Boot
      itself (assuming these are separate). This prevents using ofnode functions
      to handle device tree fixups, i.e. ft_board_setup() and the like.
      
      The ofnode interface was introduced to allow a consistent API to access
      the device tree, whether a flat tree or a live tree (OF_LIVE) is in use.
      
      With the flat tree, adding nodes and properties at the start of the tree
      (as often happens when writing to the /chosen node) requires copying a
      lot of data for each operation. With live tree, such operations are
      quite a bit faster, since there is no memory copying required. This has to
      be weighed against the required memory allocation with OF_LIVE, as well
      as the cost of unflattening and flattening the device tree which U-Boot
      is running.
      
      This series enables support for access to multiple device trees with the
      ofnode interface. This is already available to some extent with OF_LIVE,
      but some of the ofnode functions need changes to allow the tree to be
      specified.
      
      The mechanism works by using the top 1-4 bits of the device tree offset.
      The sign bit is not affected, since negative values must be supported.
      
      With this implemented, it becomes possible to use the ofnode interface
      to do device tree fixups. The only current user is the EVT_FT_FIXUP
      event.
      
      This has two main benefits:
      
      - ofnode can now be used everywhere, in preference to the libfdt calls
      - live tree can eventually be used everywhere, with potential speed
        improvements when larger number of fixups are used
      
      This series is only a step along the way. Firstly, while it is possible
      to access the 'fix-up' tree using OF_LIVE, most of the fixup functions use
      flat tree directly, rather than the ofnode interface. These need to be
      updated. Also the tree must be flattened again before it is passed to the
      OS. This is not currently implemented.
      
      With OFNODE_MULTI_TREE disabled this has almost no effect on code size:
      around 4 bytes if EVENT is enabled, 0 if not. With the feature enabled,
      the increase is around 700 bytes, e.g. on venice2:
      
      $ buildman -b ofn2a venice2 -sS --step 0
      Summary of 2 commits for 1 boards (1 thread, 64 jobs per thread)
      01: image: Drop some other #ifdefs in image-board.c
             arm:  w+   venice2
      48: wip
             arm: (for 1/1 boards) all +668.0 text +668.0
      
      This size increase is not too bad, considering the extra functionality,
      but is too large to enable everywhere. So for now this features needs to
      be opt-in only, based on EVENT.
      6ee6e159
    • Tom Rini's avatar
      Merge tag 'efi-2022-10-rc6' of https://source.denx.de/u-boot/custodians/u-boot-efi · d3ccdc0f
      Tom Rini authored
      Pull request for efi-2022-10-rc6
      
      Documentation:
      
      * doc: improve description of autostart
      
      UEFI:
      
      * prefix test functions with efi_st_ in the LoadImage unit test
      * avoid a warning message in efi_initrd_deregister()
      d3ccdc0f
    • Simon Glass's avatar
      dm: core: Support copying properties with ofnode · db1ef1e1
      Simon Glass authored and Tom Rini's avatar Tom Rini committed
      
      Add a function to copy properties from one node to another.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      db1ef1e1
    • Simon Glass's avatar
      dm: core: Allow copying ofnode property data when writing · 0b58eaa8
      Simon Glass authored and Tom Rini's avatar Tom Rini committed
      
      At present ofnode_write_prop() is inconsistent between livetree and
      flattree, in that livetree requires the caller to ensure the property
      value is stable (e.g. in rodata or allocated) but flattree does not, since
      it makes a copy.
      
      This makes the API call a bit painful to use, since the caller must do
      different things depending on OF_LIVE.
      
      Add a new 'copy' argument which tells the function to make a copy if
      needed. Add some tests to cover this behaviour.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      0b58eaa8
    • Simon Glass's avatar
      vbe: Allow test to run with live/flat tree · 0d63213c
      Simon Glass authored and Tom Rini's avatar Tom Rini committed
      
      This test can operate in all conditions now. Update the test and comments.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      0d63213c
Loading