summaryrefslogtreecommitdiff
path: root/drivers/misc/irq_sandbox.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-02-06 19:54:57 +0300
committerBin Meng <bmeng.cn@gmail.com>2020-02-07 17:44:59 +0300
commitba876079714db52887cab9f068ea1136de4cc107 (patch)
tree70cf6a9a0ec4967e081728f6b29974116a1ff3ba /drivers/misc/irq_sandbox.c
parente130294045c16018c0ef8a0c20497a503d65505a (diff)
downloadu-boot-ba876079714db52887cab9f068ea1136de4cc107.tar.xz
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>
Diffstat (limited to 'drivers/misc/irq_sandbox.c')
-rw-r--r--drivers/misc/irq_sandbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/irq_sandbox.c b/drivers/misc/irq_sandbox.c
index 6dda1a4c44..011022ac62 100644
--- a/drivers/misc/irq_sandbox.c
+++ b/drivers/misc/irq_sandbox.c
@@ -43,7 +43,7 @@ static const struct irq_ops sandbox_irq_ops = {
};
static const struct udevice_id sandbox_irq_ids[] = {
- { .compatible = "sandbox,irq"},
+ { .compatible = "sandbox,irq", SANDBOX_IRQT_BASE },
{ }
};