From 1323d08bdfdd76cf368de7b40ed876e336cdcb9a Mon Sep 17 00:00:00 2001 From: Alexander Dahl Date: Fri, 30 Sep 2022 14:04:30 +0200 Subject: dm: fpga: Introduce new uclass For future DM based FPGA drivers and for now to have a meaningful logging class for old FPGA drivers. Suggested-by: Michal Simek Suggested-by: Simon Glass Signed-off-by: Alexander Dahl Reviewed-by: Simon Glass Link: https://lore.kernel.org/r/20220930120430.42307-2-post@lespocky.de Signed-off-by: Michal Simek --- drivers/fpga/sandbox.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 drivers/fpga/sandbox.c (limited to 'drivers/fpga/sandbox.c') diff --git a/drivers/fpga/sandbox.c b/drivers/fpga/sandbox.c new file mode 100644 index 00000000000..f17a8221795 --- /dev/null +++ b/drivers/fpga/sandbox.c @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2022 Alexander Dahl + */ + +#include + +static const struct udevice_id sandbox_fpga_match[] = { + { .compatible = "sandbox,fpga" }, + { /* sentinel */ } +}; + +U_BOOT_DRIVER(sandbox_fpga) = { + .name = "sandbox_fpga", + .id = UCLASS_FPGA, + .of_match = sandbox_fpga_match, +}; -- cgit v1.2.3