1. 31 Mar, 2021 9 commits
  2. 30 Mar, 2021 1 commit
  3. 29 Mar, 2021 4 commits
  4. 28 Mar, 2021 3 commits
  5. 27 Mar, 2021 23 commits
    • Tom Rini's avatar
      Merge branch '2021-03-27-master-imports' · 31637e0b
      Tom Rini authored
      - Rework the deprecation warnings to be consistently phrased.
      - Add in a warning for DM_I2C, for a year from next release.
      - Fix Azure builds of Windows host tools.
      31637e0b
    • Tom Rini's avatar
      Azure: Use "pacman -Sy" to install the toolchain · 94d66d8b
      Tom Rini authored
      
      
      We now see an error such as:
      warning: database file for 'ucrt64' does not exist (use '-Sy' to download)
      error: failed to prepare transaction (could not find database)
      
      So use -Sy as suggested.
      Signed-off-by: Tom Rini's avatarTom Rini <trini@konsulko.com>
      Reviewed-by: Bin Meng's avatarBin Meng <bmeng.cn@gmail.com>
      94d66d8b
    • Simon Glass's avatar
      dm: i2c: Add a migration method for I2C · 65c8cdc7
      Simon Glass authored
      
      
      This probably should have been done a while back since it is a core
      system. Add a migration deadline of later this year, to catch the
      stragglers.
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      65c8cdc7
    • Simon Glass's avatar
      Makefile: Drop the old SPI flash migration message · 782dac5b
      Simon Glass authored
      
      
      This message does not seem to make sense. It may be out of date. Drop it.
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      782dac5b
    • Simon Glass's avatar
      Makefile: Use common code for DM_ETH deprecation warning · 8cd1874f
      Simon Glass authored
      
      
      Update the CONFIG_DM_ETH check to use the 'deprecated' function.
      
      Tested with snow
      
      Old message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_DM_ETH (Driver Model
      for Ethernet drivers). Please update the board to use
      CONFIG_DM_ETH before the v2020.07 release. Failure to
      update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      
      New message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_DM_ETH (Driver Model
      for Ethernet drivers). Please update the board to use
      CONFIG_DM_ETH before the v2020.07 release. Failure to
      update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      8cd1874f
    • Simon Glass's avatar
      Makefile: Use common code for WDT deprecation warning · 78b4a564
      Simon Glass authored
      
      
      Update the CONFIG_WDT check to use the 'deprecated' function.
      
      Tested with kmcent2
      
      Old message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_WDT (DM watchdog support).
      Please update the board to use CONFIG_WDT before the
      v2019.10 release.
      Failure to update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      
      New message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_WDT (Driver Model
      for DM watchdog). Please update the board to use
      CONFIG_WDT before the v2019.10 release. Failure to
      update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      78b4a564
    • Simon Glass's avatar
      Makefile: Use common code for SPI_FLASH deprecation warning · ec384f9f
      Simon Glass authored
      
      
      Update the CONFIG_DM_SPI_FLASH check to use the 'deprecated' function.
      
      Tested with vinco
      
      Old message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_DM_SPI_FLASH. Please update
      the board to use CONFIG_SPI_FLASH before the v2019.07 release.
      Failure to update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      
      New message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_DM_SPI_FLASH (Driver Model
      for SPI flash). Please update the board to use
      CONFIG_DM_SPI_FLASH before the v2019.07 release. Failure to
      update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      ec384f9f
    • Simon Glass's avatar
      Makefile: Use common code for DM_VIDEO deprecation warning · d13aee07
      Simon Glass authored
      
      
      Update the CONFIG_DM_VIDEO check to use the 'deprecated' function.
      
      Tested with pxm2
      
      Old message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_DM_VIDEO Please update
      the board to use CONFIG_DM_VIDEO before the v2019.07 release.
      Failure to update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      
      New message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_DM_VIDEO (Driver Model
      for video). Please update the board to use
      CONFIG_DM_VIDEO before the v2019.07 release. Failure to
      update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ==================================================
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      d13aee07
    • Simon Glass's avatar
      Makefile: Use common code for PCI deprecation warning · 39e526a8
      Simon Glass authored
      
      
      Update the CONFIG_DM_PCI check to use the 'deprecated' function.
      
      Tested with MPC8349ITX
      
      Old message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_DM_PCI Please update
      the board to use CONFIG_DM_PCI before the v2019.07 release.
      Failure to update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      
      New message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_DM_PCI (Driver Model
      for PCI). Please update the board to use
      CONFIG_DM_PCI before the v2019.07 release. Failure to
      update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      39e526a8
    • Simon Glass's avatar
      Makefile: Use common code for LIBATA deprecation warning · 099288bf
      Simon Glass authored
      
      
      Update the CONFIG_LIBATA check to use the 'deprecated' function.
      
      Tested with MPC8349ITX
      
      Old message:
      
      ===================== WARNING ======================
      This board does use CONFIG_LIBATA but has CONFIG_AHCI not
      enabled. Please update the storage controller driver to use
      CONFIG_AHCI before the v2019.07 release.
      Failure to update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      
      New message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_AHCI (Driver Model
      for AHCI). Please update the board to use
      CONFIG_AHCI before the v2019.07 release. Failure to
      update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      099288bf
    • Simon Glass's avatar
      Makefile: Use common code for MVSATA_IDE deprecation warning · a8834352
      Simon Glass authored
      
      
      Update the CONFIG_MVSATA_IDE check to use the 'deprecated' function.
      
      Tested with nas220
      
      Old message:
      
      ===================== WARNING ======================
      This board does use CONFIG_MVSATA_IDE which is not
      ported to driver-model (DM) yet. Please update the storage
      controller driver to use CONFIG_AHCI before the v2019.07
      release.
      Failure to update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      
      New message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_AHCI (Driver Model
      for AHCI instead of CONFIG_MVSATA_IDE). Please update the board to use
      CONFIG_AHCI before the v2019.07 release. Failure to
      update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      a8834352
    • Simon Glass's avatar
      Makefile: Use common code for USB deprecation warning · 9e035b8e
      Simon Glass authored
      
      
      Update the USB check to use the 'deprecated' function.
      
      Tested with xpress
      
      Old message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_DM_USB. Please update
      the board to use CONFIG_DM_USB before the v2019.07 release.
      Failure to update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      
      New message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_DM_USB (Driver Model
      for  USB). Please update the board to use
      CONFIG_DM_USB before the v2019.07 release. Failure to
      update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      9e035b8e
    • Simon Glass's avatar
      Makefile: Use common code for MMC deprecation warning · 77dc55ea
      Simon Glass authored
      
      
      Update the MMC check to use the 'deprecated' function.
      
      Tested with zc5202
      
      Old message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_DM_MMC. Please update
      the board to use CONFIG_DM_MMC before the v2019.04 release.
      Failure to update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      
      New message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_DM_MMC (Driver Model
      for MMC). Please update the board to use
      CONFIG_DM_MMC before the v2019.04 release. Failure to
      update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      77dc55ea
    • Simon Glass's avatar
      Makefile: Add common code to report deprecation · 13732528
      Simon Glass authored
      
      
      Add a function which can be called to report a migration problem. This
      will make it easier to add new migration checks, since the logic and
      strings are not spread out over 8 lines of code.
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      13732528
    • Simon Glass's avatar
      Makefile: Move non-DM migration messages to the top · 06467e46
      Simon Glass authored
      
      
      At present the driver model migration messages are mixed with the others.
      Collect them together before starting to refactor them.
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      06467e46
    • Heinrich Schuchardt's avatar
      sandbox: define __dyn_sym_start, dyn_sym_end · e5021221
      Heinrich Schuchardt authored
      
      
      On RISC-V the symbols __dyn_sym_start, dyn_sym_end are referenced in
      efi_runtime_relocate().
      Signed-off-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      e5021221
    • T Karthik Reddy's avatar
      spi: spi-uclass: Add support to manually relocate spi memory ops · 346df7d4
      T Karthik Reddy authored
      
      
      Add spi memory operations to relocate manually when
      CONFIG_NEEDS_MANUAL_RELOC is enabled.
      Signed-off-by: default avatarT Karthik Reddy <t.karthik.reddy@xilinx.com>
      Acked-by: default avatarAshok Reddy Soma <ashok.reddy.soma@xilinx.com>
      Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
      Reviewed-by: default avatarPratyush Yadav <p.yadav@ti.com>
      346df7d4
    • Simon Glass's avatar
      dtoc: Add new check that offsets are correct · 5d1bec30
      Simon Glass authored
      
      
      Add a few more internal checks to make sure offsets are correct, before
      updating the dtb.
      
      To make this easier, update the functions which add a property to return
      that property,.
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      5d1bec30
    • Simon Glass's avatar
      dtoc: Support adding subnodes alongside existing ones · f6176651
      Simon Glass authored
      
      
      So far we have only needed to add subnodes to empty notds, so have not
      had to deal with ordering. However this feature is needed for binman's
      expanded nodes, since there may be another node in the same section.
      
      While libfdt adds new properties after existing properties, it adds new
      subnodes before existing subnodes. This means that we must reorder the
      nodes in the cached version, so that the ordering remains consistent.
      
      Update the sync implementation to sync existing subnodes first, then
      add new ones, then tidy up the ordering in the cached version. Update the
      test to cover this behaviour.
      
      Also improve the comment about property syncing while we are here.
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      f6176651
    • Simon Glass's avatar
      dtoc: Add a subnode test for multiple nodes · 76677dd2
      Simon Glass authored
      
      
      Add a new test that adds a subnode alongside an existing one, as well as
      adding properties to a subnode. This will expand to adding multiple
      subnodes in future patches. Put a node after the one we are adding to so
      we can check that things sync correctly.
      
      The testAddNode() test should be in the TestNode class since it is a node
      test, so move it.
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      76677dd2
    • Simon Glass's avatar
      dtoc: Tweak ordering of fdt-offsets refreshing · 71719e15
      Simon Glass authored
      
      
      Once the tree has been synced, thus potentially moving things around in the
      fdt, we set _cached_offsets to False so that a refresh will happen next
      time a property is accessed.
      
      This 'lazy' refresh doesn't really save much time, since refresh is a very
      fast operation, just a single walk of the tree. Also, having the refresh
      happen in the bowels of property access it makes it harder to figure out
      what is going on.
      
      Simplify the code by always doing a refresh before and after a sync. Set
      _cached_offsets to True immediately after this, in the Refresh() function,
      since this makes more sense than doing it in the caller.
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      71719e15
    • Simon Glass's avatar
      dtoc: Tidy up property-offset handling · 37ba9844
      Simon Glass authored
      
      
      If a property does not yet have an offset, then that means it exists in
      the cache'd fdt but has not yet been synced back to the flat tree. Use
      the dirty flag for this so we don't need to check the offset too. Improve
      the comments for Prop and Node to make it clear what an offset of None
      means.
      
      Also clear the dirty flag after the property is synced.
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      37ba9844
    • Simon Glass's avatar
      dtoc: Improve internal error for Refresh() · acd98611
      Simon Glass authored
      
      
      Add the node name too so it is easy to see which node failed.
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      acd98611