Skip to content
Snippets Groups Projects
  1. Feb 20, 2020
  2. Feb 07, 2020
    • Simon Glass's avatar
      dm: irq: Add support for requesting interrupts · 02554355
      Simon Glass authored
      
      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: default avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
      02554355
    • Simon Glass's avatar
      dm: irq: Add support for interrupt controller types · ba876079
      Simon Glass authored
      
      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: default avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
      [bmeng: remove the new bland line at EOF of test/dm/irq.c]
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      ba876079
  3. Feb 06, 2020
  4. Jan 24, 2020
  5. Jan 17, 2020
  6. Jan 07, 2020
  7. Dec 17, 2019
  8. Dec 15, 2019
  9. Dec 10, 2019
  10. Dec 02, 2019
  11. Nov 14, 2019
  12. Nov 12, 2019
  13. Oct 27, 2019
  14. Oct 22, 2019
Loading