28 Jul, 2016

3 commits


20 Jun, 2016

2 commits

  • The following changes are made to the clock API:
    * The concept of "clocks" and "peripheral clocks" are unified; each clock
    provider now implements a single set of clocks. This provides a simpler
    conceptual interface to clients, and better aligns with device tree
    clock bindings.
    * Clocks are now identified with a single "struct clk", rather than
    requiring clients to store the clock provider device and clock identity
    values separately. For simple clock consumers, this isolates clients
    from internal details of the clock API.
    * clk.h is split so it only contains the client/consumer API, whereas
    clk-uclass.h contains the provider API. This aligns with the recently
    added reset and mailbox APIs.
    * clk_ops .of_xlate(), .request(), and .free() are added so providers
    can customize these operations if needed. This also aligns with the
    recently added reset and mailbox APIs.
    * clk_disable() is added.
    * All users of the current clock APIs are updated.
    * Sandbox clock tests are updated to exercise clock lookup via DT, and
    clock enable/disable.
    * rkclk_get_clk() is removed and replaced with standard APIs.

    Buildman shows no clock-related errors for any board for which buildman
    can download a toolchain.

    test/py passes for sandbox (which invokes the dm clk test amongst
    others).

    Signed-off-by: Stephen Warren
    Acked-by: Simon Glass

    Stephen Warren
     
  • This adds a sandbox reset implementation (provider), a test client
    device, instantiates them both from Sandbox's DT, and adds a DM test
    that excercises everything.

    Signed-off-by: Stephen Warren
    Acked-by: Simon Glass

    Stephen Warren
     

04 Jun, 2016

1 commit


27 May, 2016

2 commits

  • This adds a sandbox mailbox implementation (provider), a test client
    device, instantiates them both from Sandbox's DT, and adds a DM test
    that excercises everything.

    Signed-off-by: Stephen Warren
    Acked-by: Simon Glass # v1

    Stephen Warren
     
  • The current reset API implements a method to reset the entire system.
    In the near future, I'd like to introduce code that implements the device
    tree reset bindings; i.e. the equivalent of the Linux kernel's reset API.
    This controls resets to individual HW blocks or external chips with reset
    signals. It doesn't make sense to merge the two APIs into one since they
    have different semantic purposes. Resolve the naming conflict by renaming
    the existing reset API to sysreset instead, so the new reset API can be
    called just reset.

    Signed-off-by: Stephen Warren
    Acked-by: Simon Glass

    Stephen Warren
     

17 May, 2016

3 commits


15 Apr, 2016

1 commit

  • LLVM 3.5 noted:
    test/dm/core.c:41:35: warning: unused variable 'test_pdata_pre_reloc' [-Wunused-const-variable]
    static const struct dm_test_pdata test_pdata_pre_reloc = {

    And the correct fix here is that the driver_info_pre_reloc test should
    use the test_pdata_pre_reloc not test_pdata_manual variable

    Cc: Simon Glass
    Signed-off-by: Tom Rini
    Reviewed-by: Simon Glass

    Tom Rini
     

02 Apr, 2016

1 commit


18 Mar, 2016

1 commit


15 Mar, 2016

4 commits

  • The USB subsystem has a few counters that need to be reset since they are
    stored in static variables rather than driver-model data. An example is
    usb_max_devs. Ultimately we should move this data into the USB uclass.

    For now, make sure that USB is reset after each test, so that the counters
    go back to zero.

    Note: this is not a perfect solution: It a USB test fails it will exit
    immediately and leave USB un-reset. The impact here is that it may cause
    subsequence test failures in the same run.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • To ease conversion to driver model, add helper functions which deal with
    calling each block device method. With driver model we can reimplement these
    functions with the same arguments.

    Use inline functions to avoid increasing code size on some boards.

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

    Simon Glass
     
  • The current name is too generic. The function returns a block device based
    on a provided string. Rename it to aid searching and make its purpose
    clearer. Also add a few comments.

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

    Simon Glass
     
  • Use 'struct' instead of a typdef. Also since 'struct block_dev_desc' is long
    and causes 80-column violations, rename it to struct blk_desc.

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

    Simon Glass
     

26 Feb, 2016

1 commit


16 Feb, 2016

1 commit

  • Invoke each "ut"-based unit test as a separate pytest.

    Now that the DM unit test runs under test/py, remove the manual shell
    script that invokes it.

    Signed-off-by: Stephen Warren
    Acked-by: Simon Glass
    Tested-by: Simon Glass # v2, on sandbox

    Stephen Warren
     

06 Feb, 2016

1 commit


30 Jan, 2016

4 commits


29 Jan, 2016

1 commit

  • The ut command prints a test failure count each time it is executed.
    This is stored in a global variable which is never reset. Consequently,
    the printed failure count accumulates across runs. Fix this by clearing
    the counter each time "ut" is invoked.

    Signed-off-by: Stephen Warren
    Acked-by: Simon Glass

    Stephen Warren
     

24 Jan, 2016

1 commit


21 Jan, 2016

3 commits


14 Jan, 2016

1 commit

  • This will allow the implementation to make use of data in the block_dev
    structure beyond the base device number. This will be useful so that eMMC
    block devices can encompass the HW partition ID rather than treating this
    out-of-band. Equally, the existence of the priv field is crying out for
    this patch to exist.

    Signed-off-by: Stephen Warren
    Reviewed-by: Tom Rini

    Stephen Warren
     

13 Jan, 2016

1 commit


12 Jan, 2016

1 commit


08 Jan, 2016

1 commit

  • This subsystem has been broken since commit:

    4efad20a sf: Update status reg check in spi_flash_cmd_wait_ready

    There has so far been no response from the maintainer, and a release is
    imminent. For now, let's just disable the tests.

    Signed-off-by: Simon Glass

    Simon Glass
     

07 Dec, 2015

2 commits


20 Nov, 2015

4 commits