diff options
author | Roger Quadros <rogerq@kernel.org> | 2022-10-20 16:30:46 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-10-26 15:21:11 -0400 |
commit | 2c120375e949807ce8e3b077d6537e2d8d69a87c (patch) | |
tree | ddc0bf5aa3151a16dd7b2d1cb45af9a318b59eca /drivers/memory/memory-sandbox.c | |
parent | 27e6ebc5ea71c824234e862e55485de841ae29ac (diff) |
dm: memory: Introduce new uclass
Introduce UCLASS_MEMORY for future Memory Controller
device drivers.
Signed-off-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/memory/memory-sandbox.c')
-rw-r--r-- | drivers/memory/memory-sandbox.c | 18 |
1 files changed, 18 insertions, 0 deletions
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, <www.ti.com> + */ + +#include <dm.h> + +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, +}; |