1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2019 Intel Corporation <www.intel.com>
11 DECLARE_GLOBAL_DATA_PTR;
13 static int sandbox_get_info(struct udevice *dev, struct cache_info *info)
15 info->base = 0x11223344;
20 static int sandbox_enable(struct udevice *dev)
25 static int snadbox_disable(struct udevice *dev)
31 static const struct cache_ops sandbox_cache_ops = {
32 .get_info = sandbox_get_info,
33 .enable = sandbox_enable,
34 .disable = snadbox_disable,
37 static const struct udevice_id sandbox_cache_ids[] = {
38 { .compatible = "sandbox,cache" },
42 U_BOOT_DRIVER(cache_sandbox) = {
43 .name = "cache_sandbox",
45 .of_match = sandbox_cache_ids,
46 .ops = &sandbox_cache_ops,