23 Apr, 2020

2 commits

  • implement i.MX Messaging Unit driver within the DM Mailbox uclass

    Signed-off-by: Teo Hall
    Signed-off-by: Ye Li
    (cherry picked from commit 9caafe21ddf12c9ab994fe9e65dc7afe5e7bab3d)
    (cherry picked from commit a360802ec1d1b52ea7d0c91e285ba355d0293140)
    (cherry picked from commit 606a91990b69a03a646ec4ba428f5f05e426824c)

    Teo Hall
     
  • Add a timeout to allow non-blocking use in the
    same way as mbox_recv

    Signed-off-by: Teo Hall
    (cherry picked from commit c2296701fa91dc8d4144c84c19ffe40dba3df88c)
    (cherry picked from commit afcfb7e5105ef01ec46a6c896b20e210a07ee094)
    (cherry picked from commit cc86ad157e1c8405a78c392926bf4f96afaae9c1)

    Teo Hall
     

06 Feb, 2020

2 commits

  • 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
     
  • This function name conflicts with our desire to #define free() to
    something else on sandbox. Since it deals with resources, rename it to
    rfree().

    Signed-off-by: Simon Glass

    Simon Glass
     

03 Dec, 2019

1 commit


08 Oct, 2019

3 commits


12 Jul, 2019

1 commit


28 Oct, 2018

1 commit


11 Sep, 2018

2 commits


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
     

28 Apr, 2018

1 commit


01 Jun, 2017

2 commits

  • Update the mailbox uclass to support livetree. Fix the xlate() method
    in all callers.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • 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
     

08 Feb, 2017

1 commit

  • At present devices use a simple integer offset to record the device tree
    node associated with the device. In preparation for supporting a live
    device tree, which uses a node pointer instead, refactor existing code to
    access this field through an inline function.

    Signed-off-by: Simon Glass

    Simon Glass
     

14 Oct, 2016

1 commit

  • These have now landed upstream. The naming is different and in one case the
    function signature has changed. Update the code to match.

    This applies the following upstream commits by
    Thierry Reding :

    604e61e fdt: Add functions to retrieve strings
    8702bd1 fdt: Add a function to get the index of a string
    2218387 fdt: Add a function to count strings

    Signed-off-by: Simon Glass

    Simon Glass
     

05 Aug, 2016

1 commit

  • The DT binding for the Tegra186 HSP module apparently wasn't quite final
    when I posted initial U-Boot support for it. Add the final DT binding doc
    and adapt all code and DT files to match it.

    Signed-off-by: Stephen Warren
    Reviewed-by: Simon Glass
    Signed-off-by: Tom Warren

    Stephen Warren
     

20 Jun, 2016

2 commits

  • Tegra186's HSP module implements doorbells, mailboxes, semaphores, and
    shared interrupts. This patch provides a driver for HSP, and hooks it
    into the mailbox API. Currently, only doorbells are supported.

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

    Stephen Warren
     
  • Rename mailbox*.h to match the naming convention requested during review
    of the new reset subsystem.

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

    Stephen Warren
     

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
     
  • A mailbox is a hardware mechanism for transferring small message and/or
    notifications between the CPU on which U-Boot runs and some other device
    such as an auxilliary CPU running firmware or a hardware module.

    This patch defines a standard API that connects mailbox clients to mailbox
    providers (drivers). Initially, DT is the only supported method for
    connecting the two.

    The DT binding specification (mailbox.txt) was taken from Linux kernel
    v4.5's Documentation/devicetree/bindings/mailbox/mailbox.txt.

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

    Stephen Warren