06 Feb, 2020

1 commit

  • At present dm/device.h includes the linux-compatible features. This
    requires including linux/compat.h which in turn includes a lot of headers.
    One of these is malloc.h which we thus end up including in every file in
    U-Boot. Apart from the inefficiency of this, it is problematic for sandbox
    which needs to use the system malloc() in some files.

    Move the compatibility features into a separate header file.

    Signed-off-by: Simon Glass

    Simon Glass
     

10 Jul, 2019

1 commit


29 Dec, 2018

1 commit

  • The Denali NAND controller IP needs three clocks:

    - clk: controller core clock

    - clk_x: bus interface clock

    - ecc_clk: clock at which ECC circuitry is run

    Currently, only the first one (50MHz) is provided. The rest of the
    two clock ports must be connected to the 200MHz clock line. Add this.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

07 May, 2018

1 commit

  • 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: Tom Rini

    Tom Rini
     

23 Apr, 2018

1 commit


18 Apr, 2018

1 commit


15 Oct, 2017

3 commits


30 Aug, 2017

1 commit


20 Aug, 2017

2 commits


25 Jun, 2017

1 commit


01 Jun, 2017

2 commits

  • These support the flat device tree. We want to use the dev_read_..()
    prefix for functions that support both flat tree and live tree. So rename
    the existing functions to avoid confusion.

    In the end we will have:

    1. dev_read_addr...() - works on devices, supports flat/live tree
    2. devfdt_get_addr...() - current functions, flat tree only
    3. of_get_address() etc. - new functions, live tree only

    All drivers will be written to use 1. That function will in turn call
    either 2 or 3 depending on whether the flat or live tree is in use.

    Note this involves changing some dead code - the imx_lpi2c.c file.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This header includes things that are needed to make driver build. Adjust
    existing users to include that always, even if other dm/ includes are
    present

    Signed-off-by: Simon Glass

    Simon Glass
     

29 Jan, 2017

1 commit


18 Oct, 2016

1 commit


23 Sep, 2016

3 commits


23 Jul, 2016

1 commit


20 Jun, 2016

1 commit

  • 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
     

25 May, 2016

1 commit


24 Apr, 2016

1 commit


31 Mar, 2016

1 commit


14 Feb, 2016

1 commit