From 2c120375e949807ce8e3b077d6537e2d8d69a87c Mon Sep 17 00:00:00 2001 From: Roger Quadros Date: Thu, 20 Oct 2022 16:30:46 +0300 Subject: dm: memory: Introduce new uclass Introduce UCLASS_MEMORY for future Memory Controller device drivers. Signed-off-by: Roger Quadros Reviewed-by: Simon Glass --- drivers/memory/memory-sandbox.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 drivers/memory/memory-sandbox.c (limited to 'drivers/memory/memory-sandbox.c') diff --git a/drivers/memory/memory-sandbox.c b/drivers/memory/memory-sandbox.c new file mode 100644 index 0000000000..f2ede50863 --- /dev/null +++ b/drivers/memory/memory-sandbox.c @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2022 + * Texas Instruments Incorporated, + */ + +#include + +static const struct udevice_id sandbox_memory_match[] = { + { .compatible = "sandbox,memory" }, + { /* sentinel */ } +}; + +U_BOOT_DRIVER(sandbox_memory) = { + .name = "sandbox_memory", + .id = UCLASS_MEMORY, + .of_match = sandbox_memory_match, +}; -- cgit v1.2.3