]> git.ipfire.org Git - thirdparty/u-boot.git/commit
dm: irq: Add support for interrupt controller types
authorSimon Glass <sjg@chromium.org>
Thu, 6 Feb 2020 16:54:57 +0000 (09:54 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 7 Feb 2020 14:44:59 +0000 (22:44 +0800)
commitba876079714db52887cab9f068ea1136de4cc107
tree70cf6a9a0ec4967e081728f6b29974116a1ff3ba
parente130294045c16018c0ef8a0c20497a503d65505a
dm: irq: Add support for interrupt controller types

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@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: remove the new bland line at EOF of test/dm/irq.c]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
arch/sandbox/include/asm/test.h
drivers/misc/irq-uclass.c
drivers/misc/irq_sandbox.c
include/irq.h
test/dm/irq.c