1. 13 4月, 2021 4 次提交
  2. 10 4月, 2021 1 次提交
  3. 27 3月, 2021 1 次提交
    • S
      sf: Support querying write-protect · b3b60f59
      Simon Glass 提交于
      This feature was dropped from U-Boot some time ago:
      
         f12f96cf (sf: Drop spl_flash_get_sw_write_prot")
      
      However, we do need a way to see if a flash device is write-protected,
      since if it is, it may not be possible to write to do (i.e. failing to
      write is expected).
      
      I am not sure of the correct layer to implement this, so this patch is a
      stab at it. If spi-flash makes sense then I will add to the 'sf' also.
      
      Re the points mentioned in the removal commit:
      
          1) This kind of requirement can be achieved using existing
             flash operations and flash locking API calls instead of
             making a separate flash API.
      
      Which uclass is this?
      
          2) Technically there is no real hardware user for this API to
             use in the source tree.
      
      I do want coral (at least) to support this.
      
          3) Having a flash operations API for simple register read bits
             also make difficult to extend the flash operations.
      
      This new patch only mentions write-protect being on or off, rather than
      the actual mechanism.
      
          4) Instead of touching generic code, it is possible to have
             this functionality inside spinor operations in the form of
             flash hooks or fixups for associated flash chips.
      
      That sounds to me like what drivers are for. But we still need some sort
      of API for it to be accessible.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      b3b60f59
  4. 26 3月, 2021 6 次提交
  5. 22 3月, 2021 1 次提交
    • S
      dtoc: Assign a sequence number to each node · 074197aa
      Simon Glass 提交于
      Now that we have the alias information we can assign a sequence number
      to each device in the uclass. Store this in the node associated with each
      device.
      
      This requires renaming the sandbox test drivers to have the right name.
      Note that test coverage is broken with this patch, but fixed in the next
      one.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      074197aa
  6. 14 3月, 2021 1 次提交
    • S
      test: acpi: Fix warnings on 32-bit build · 634f5ad3
      Simon Glass 提交于
      Some format strings use the wrong type. Fix them.
      
      Example warnings:
      
      In file included from test/dm/acpi.c:22:
      test/dm/acpi.c: In function ‘dm_test_acpi_cmd_list’:
      test/dm/acpi.c:362:21: warning: format ‘%lx’ expects argument of type
        ‘long unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat=]
        ut_assert_nextline("RSDP %08lx %06lx (v02 U-BOOT)", addr,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
             sizeof(struct acpi_rsdp));
             ~~~~~~~~~~~~~~~~~~~~~~~~
      include/test/ut.h:282:33: note: in definition of macro ‘ut_assert_nextline’
        if (ut_check_console_line(uts, fmt, ##args)) {   \
                                       ^~~
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      634f5ad3
  7. 12 3月, 2021 22 次提交
  8. 04 3月, 2021 4 次提交