15 Oct, 2019

2 commits

  • At present the 'Index' column of 'dm tree' assumes there is
    two digits, this patch increase it to 3 digits.

    It also aligns output of 'dm uclass', assuming the same 3 digits index.

    The boards with CONFIG_PINCTRL_FULL activated have one pinconfig
    by pin configuration, so they can have more than 100 devices
    pinconfig (for example with stm32mp157c-ev1 board we have
    106 pinconfig node).

    Signed-off-by: Patrick Delaunay
    Reviewed-by: Simon Glass

    Patrick Delaunay
     
  • This commit add a test in the vboot test to check that
    when a required key is asked, only FIT signed with this
    key is used/accepted by u-boot.

    Signed-off-by: Philippe Reynes

    Philippe Reynes
     

14 Oct, 2019

1 commit

  • Display Serial Interface (DSI) host can usefully be modelled
    as their own uclass.
    DSI defines a serial bus and a communication protocol
    between the host and the device (panel, bridge).

    Signed-off-by: Yannick Fertré

    Yannick Fertré
     

11 Oct, 2019

3 commits


08 Oct, 2019

6 commits

  • At present PCI address transaction is not supported so drivers must
    manually read the correct BAR after reading the device tree info. The
    ns16550 has a suitable implementation, so move this code into the core
    DM support.

    Note that there is no live-tree equivalent at present.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng
    Tested-by: Bin Meng
    [bmeng: correct the unclear comments in test.dts]
    Signed-off-by: Bin Meng

    Simon Glass
     
  • Rename this ID to SANDBOX_PCI_SWAP_CASE_EMUL_ID since it is more
    descriptive and allows us to add new PCI emulators without any conflict or
    confusion.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng

    Simon Glass
     
  • This should perhaps be a period.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng
    [bmeng: add the ending period and reword the commit message]
    Signed-off-by: Bin Meng

    Simon Glass
     
  • This function returns -ENODEV when there is no device. This is
    inconsistent with other functions, such as uclass_find_next_device(),
    which returns 0.

    Update it and tidy up the incorrect '-1' values in the comments.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng
    Tested-by: Bin Meng

    Simon Glass
     
  • At present tests that are marked as only for livetree fail when executed
    on sandbox_flattree. They cannot actually be executed, but we should not
    resport them as 'not found', since this causes errors. Instead, they
    should be silently skipped.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng

    Simon Glass
     
  • At present when multiple 'ut dm' commands are executed, all but the first
    is run with a flat tree, even if live tree is enabled. This is because the
    live tree node pointer is set to NULL and never restored.

    This does not affect normal test running, which just runs all the test in
    one go, but can be confusing when several individual tests are run during
    the same U-Boot run.

    Correct this by restoring the pointer.

    Fixes: c166c47ba3 (dm: test: Add support for running tests with livetree)
    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng
    Tested-by: Bin Meng

    Simon Glass
     

21 Sep, 2019

1 commit


03 Sep, 2019

1 commit


22 Aug, 2019

2 commits

  • Since we added clk enable_count and prograte clk child enabling
    operation to clk parent, so add a new function sandbox_clk_enable_count
    to get enable_count for test usage.

    And add test code to get the enable_count after we enable/disable
    the device clk.

    Signed-off-by: Peng Fan

    Peng Fan
     
  • Based on discussion with Stephen Warren there was recommendation to list
    both memory and random command dependencies just in case that dependency is
    not properly handled by Kconfig.

    Fixes: a09c1f7e1c1b ("test/py: Fix MMC/SD block write test dependency")
    Signed-off-by: Michal Simek
    Acked-by: Stephen Warren

    Michal Simek
     

13 Aug, 2019

3 commits


12 Aug, 2019

4 commits

  • Avoid using a typedef here which is unnecessary. Add an 'env_' prefix to
    both the enum and its members to make it clear that these are related to
    the environment.

    Add an ENV prefix to these two flags so that it is clear what they relate
    to. Also move them to env.h since they are part of the public API. Use an
    enum rather than a #define to tie them together.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • U-Boot is not supposed to use typedef for structs anymore. Also this name
    is the same as the ENTRY() macro used in assembler files, and 'entry'
    itself is widely used in U-Boot (>8k matches).

    Drop the typedef and rename the struct to env_entry to reduce confusion.

    Signed-off-by: Simon Glass
    Acked-by: Joe Hershberger

    Simon Glass
     
  • Move env_set() over to the new header file.

    Acked-by: Joe Hershberger
    Signed-off-by: Simon Glass

    Simon Glass
     
  • As part of the effort to remove things from common.h, create a new header
    for the gzip functions. Move the function declarations to it and add
    missing documentation.

    Signed-off-by: Simon Glass
    Reviewed-by: Simon Goldschmidt

    Simon Glass
     

09 Aug, 2019

1 commit


08 Aug, 2019

2 commits

  • Signed-off-by: Sam Protsenko

    Sam Protsenko
     
  • The Linux ramdisk should always be decompressed by the kernel itself,
    not by U-Boot. Therefore, the 'compression' node in the FIT image should
    always be set to "none" for ramdisk images, since the only point of
    using that node is if you want U-Boot to do the decompression itself.

    Yet some systems populate the node to the compression algorithm used by
    the kernel instead. This used to be ignored, but now that we support
    decompression of all image types it becomes a problem. Since ramdisks
    should never be decompressed by U-Boot anyway, this patch adds a special
    exception for them to avoid these issues. Still, setting the
    'compression' node like that is wrong in the first place, so we still
    want to print out a warning so that third-party distributions doing this
    can notice and fix it.

    Signed-off-by: Julius Werner
    Reviewed-by: Heiko Schocher
    Tested-by: Heiko Schocher
    Reviewed-by: Simon Goldschmidt

    Julius Werner
     

03 Aug, 2019

1 commit


31 Jul, 2019

2 commits


29 Jul, 2019

2 commits

  • This patch adds support for compressing non-kernel image nodes in a FIT
    image (kernel nodes could already be compressed previously). This can
    reduce the size of FIT images and therefore improve boot times
    (especially when an image bundles many different kernel FDTs). The
    images will automatically be decompressed on load.

    This patch does not support extracting compatible strings from
    compressed FDTs, so it's not very helpful in conjunction with
    CONFIG_FIT_BEST_MATCH yet, but it can already be used in environments
    that select the configuration to load explicitly.

    Signed-off-by: Julius Werner
    Reviewed-by: Simon Glass
    Reviewed-by: Simon Goldschmidt

    Julius Werner
     
  • Upcoming patches want to add decompression to use cases that are no
    longer directly related to booting. It makes sense to retain a single
    decompression routine, but it should no longer be in bootm.c (which is
    not compiled for all configurations). This patch moves
    bootm_decomp_image() to image.c and renames it to image_decomp() in
    preparation of those upcoming patches.

    Signed-off-by: Julius Werner
    Reviewed-by: Simon Goldschmidt
    [trini: Fix warning around handle_decomp_error being unused]
    Signed-off-by: Tom Rini

    Julius Werner
     

27 Jul, 2019

1 commit


25 Jul, 2019

5 commits


24 Jul, 2019

2 commits


22 Jul, 2019

1 commit

  • The current implementation supports only binary file load.
    Add helpers to support ELF32 format (sanity check, and load).
    Note that since an ELF32 image is built for the remote processor, the
    load function uses the device_to_virt ops to translate the addresses.
    Implement a basic translation for sandbox_testproc.

    Add related tests. Test result:
    => ut dm remoteproc_elf
    Test: dm_test_remoteproc_elf: remoteproc.c
    Test: dm_test_remoteproc_elf: remoteproc.c (flat tree)
    Failures: 0

    Signed-off-by: Loic Pallardy
    Signed-off-by: Fabien Dessenne
    Reviewed-by: Lokesh Vutla

    Fabien Dessenne