1. 27 4月, 2020 4 次提交
  2. 18 4月, 2020 1 次提交
  3. 05 11月, 2019 1 次提交
  4. 29 7月, 2019 1 次提交
  5. 11 7月, 2019 1 次提交
  6. 08 10月, 2018 2 次提交
    • S
      binman: Run tests concurrently · 11ae93ee
      Simon Glass 提交于
      At present the tests run one after the other using a single CPU. This is
      not very efficient. Bring in the concurrencytest module and run the tests
      concurrently, using one process for each CPU by default. A -P option
      allows this to be overridden, which is necessary for code-coverage to
      function correctly.
      
      This requires fixing a few tests which are currently not fully
      independent.
      
      At some point we might consider doing this across all pytests in U-Boot.
      There is a pytest version that supports specifying the number of processes
      to use, but it did not work for me.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      11ae93ee
    • S
      binman: Add a default path to libfdt.py · ed59e005
      Simon Glass 提交于
      This module is often available in the sandbox_spl build created by
      'make check'. Use this as a default path so that just typing 'binman -t'
      (without setting PYTHONPATH) will generally run the tests.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      ed59e005
  7. 09 7月, 2018 3 次提交
  8. 07 5月, 2018 1 次提交
    • T
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini 提交于
      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: NTom Rini <trini@konsulko.com>
      83d290c5
  9. 29 1月, 2018 1 次提交
  10. 12 7月, 2017 8 次提交
  11. 03 6月, 2017 1 次提交
  12. 11 5月, 2017 2 次提交
  13. 29 3月, 2017 1 次提交
  14. 22 3月, 2017 1 次提交
  15. 17 3月, 2017 1 次提交
  16. 08 2月, 2017 1 次提交
  17. 09 10月, 2016 2 次提交
  18. 19 9月, 2016 3 次提交
  19. 15 7月, 2016 3 次提交
    • S
      dm: core: Expand platdata for of-platdata devices · 9fa28190
      Simon Glass 提交于
      Devices which use of-platdata have their own platdata. However, in many
      cases the driver will have its own auto-alloced platdata, for use with the
      device tree. The ofdata_to_platdata() method converts the device tree
      settings to platdata.
      
      With of-platdata we would not normally allocate the platdata since it is
      provided by the U_BOOT_DEVICE() declaration. However this is inconvenient
      since the of-platdata struct is closely tied to the device tree properties.
      It is unlikely to exactly match the platdata needed by the driver.
      
      In fact a useful approach is to declare platdata in the driver like this:
      
      struct r3288_mmc_platdata {
      	struct dtd_rockchip_rk3288_dw_mshc of_platdata;
      	/* the 'normal' fields go here */
      };
      
      In this case we have dt_platadata available, but the normal fields are not
      present, since ofdata_to_platdata() is never called. In fact driver model
      doesn't allocate any space for the 'normal' fields, since it sees that there
      is already platform data attached to the device.
      
      To make this easier, adjust driver model to allocate the full size of the
      struct (i.e. platdata_auto_alloc_size from the driver) and copy in the
      of-platdata. This means that when the driver's bind() method is called,
      the of-platdata will be present, followed by zero bytes for the empty
      'normal field' portion.
      
      A new DM_FLAG_OF_PLATDATA flag is available that indicates that the platdata
      came from of-platdata. When the allocation/copy happens, the
      DM_FLAG_ALLOC_PDATA flag will be set as well. The dtoc tool is updated to
      output the platdata_size field, since U-Boot has no other way of knowing
      the size of the of-platdata struct.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      9fa28190
    • S
      dtoc: Ignore the u-boot, dm-pre-reloc property · efefe122
      Simon Glass 提交于
      This property is not useful for of-platdata, so omit it.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      efefe122
    • S
      dm: Add a tool to generate C code from a device tree · 69f2ed77
      Simon Glass 提交于
      This tool can produce C struct definitions and C platform data tables.
      This is used to support the of-platdata feature.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      69f2ed77