[PATCH v2 09/17] dm: irq: Add support for interrupt controller types
Bin Meng
bmeng.cn at gmail.com
Tue Feb 4 09:27:30 CET 2020
On Tue, Feb 4, 2020 at 8:20 AM Simon Glass <sjg at chromium.org> wrote:
>
> 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 <sjg at chromium.org>
> ---
>
> Changes in v2:
> - Move 'success' comment into this patch
> - Update to use the new DM helper function
>
> arch/sandbox/include/asm/test.h | 4 ++++
> drivers/misc/irq-uclass.c | 15 ++++++++++++++-
> drivers/misc/irq_sandbox.c | 2 +-
> include/irq.h | 23 +++++++++++++++++++++++
> test/dm/irq.c | 14 ++++++++++++++
> 5 files changed, 56 insertions(+), 2 deletions(-)
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
More information about the U-Boot
mailing list