diff options
author | Simon Glass <sjg@chromium.org> | 2021-08-07 07:24:11 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-09-25 09:46:15 -0600 |
commit | 3e57ad907caa55bab8ba52ef87ddbc5130aede2c (patch) | |
tree | e06d04c0dbb964ec388ca885aa4544da2398963d /drivers/misc/irq_sandbox_test.c | |
parent | f521be6083db98e8e17b5b05626bfa6a0d5acf9b (diff) |
irq: Tidy up of-platdata irq support
This function is available but not exported. More generally it does not
really work as intended.
Reimplement it and add a sandbox test too.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/misc/irq_sandbox_test.c')
-rw-r--r-- | drivers/misc/irq_sandbox_test.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/misc/irq_sandbox_test.c b/drivers/misc/irq_sandbox_test.c new file mode 100644 index 0000000000..95c45c24ed --- /dev/null +++ b/drivers/misc/irq_sandbox_test.c @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Sandbox driver for testing interrupts with of-platdata + * + * Copyright 2021 Google LLC + */ + +#include <common.h> +#include <dm.h> +#include <irq.h> +#include <asm/irq.h> + +static const struct udevice_id sandbox_irq_test_ids[] = { + { .compatible = "sandbox,irq-test" }, + { } +}; + +U_BOOT_DRIVER(sandbox_irq_test) = { + .name = "sandbox_irq_test", + .id = UCLASS_MISC, + .of_match = sandbox_irq_test_ids, +}; |