26 Feb, 2020

1 commit


11 Feb, 2020

2 commits


10 Feb, 2020

1 commit


07 Feb, 2020

2 commits

  • At present driver model supports the IRQ uclass but there is no way to
    request a particular interrupt for a driver.

    Add a mechanism, similar to clock and reset, to read the interrupts
    required by a device from the device tree and to request those interrupts.

    U-Boot itself does not have interrupt-driven handlers, so just provide a
    means to read and clear an interrupt. This can be useful to handle
    peripherals which must use an interrupt to determine when data is
    available, for example.

    Bring over the basic binding file as well, from Linux v5.4. Note that the
    older binding is not supported in U-Boot; the newer 'special form' must be
    used.

    Add a simple test of the new functionality.

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

    Simon Glass
     
  • There can be different types of interrupt controllers in a system and some
    drivers may need to distinguish between these. In general this can be
    handled using the device tree by adding the interrupt information to
    device nodes.

    However on x86 devices we have interrupt controllers which are not tied
    to any particular device and not really used in U-Boot. These still need
    to be inited, so a convenient method is to give each controller a type
    and allow a particular controller type to be probed.

    Add support for this in sandbox along with a test.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng
    [bmeng: remove the new bland line at EOF of test/dm/irq.c]
    Signed-off-by: Bin Meng

    Simon Glass
     

06 Feb, 2020

4 commits


18 Jan, 2020

2 commits


09 Jan, 2020

1 commit


08 Jan, 2020

1 commit


18 Dec, 2019

1 commit


17 Dec, 2019

4 commits


15 Dec, 2019

4 commits

  • Add a simple sandbox test for this uclass.

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

    Simon Glass
     
  • Update this uclass to support the needs of the Apollo Lake ITSS. It
    supports four operations.

    Move the uclass into a separate directory so that sandbox can use it too.
    Add a new Kconfig to control it and enable this on x86.

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

    Simon Glass
     
  • Add a sandbox driver and PCI-device emulator for p2sb. Also add a test
    which uses a simple 'adder' driver to test the p2sb functionality.

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

    Simon Glass
     
  • The Primary-to-Sideband bus (P2SB) is used to access various peripherals
    through memory-mapped I/O in a large chunk of PCI space. The space is
    segmented into different channels and peripherals are accessed by
    device-specific means within those channels. Devices should be added in
    the device tree as subnodes of the p2sb.

    This adds a uclass and enables it for sandbox.

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

    Simon Glass
     

11 Dec, 2019

1 commit

  • Chromium EC commands can be up to 16-bits, so using a uint8_t here can
    cause truncation. Update to use a uint instead.

    It looks like this should likely have been done as a part of
    9fea76f5d30264dc08ac591a7a89427b8441555b, but this function was skipped
    for some reason.

    Signed-off-by: Michael Auchter
    Cc: Simon Glass
    Reviewed-by: Simon Glass

    Michael Auchter
     

03 Dec, 2019

5 commits


17 Nov, 2019

1 commit


12 Nov, 2019

1 commit


08 Nov, 2019

2 commits


05 Nov, 2019

1 commit

  • clk and pinctrl will be get(probed) during each device probe,
    we don't need to probe them in scu driver. Only need to bind the sub-nodes
    (clk and iomuxc) of MU node with their drivers.

    So drop the code to probe the clk/pinctrl, and this patch will make it
    easy to add more subnodes.

    Signed-off-by: Peng Fan

    Peng Fan
     

04 Nov, 2019

1 commit


24 Oct, 2019

1 commit


09 Oct, 2019

1 commit


08 Oct, 2019

3 commits