27 Apr, 2018

2 commits


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