1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2019 Intel Corporation <www.intel.com>
6 #define LOG_CATEGORY UCLASS_CACHE
12 int cache_get_info(struct udevice *dev, struct cache_info *info)
14 struct cache_ops *ops = cache_get_ops(dev);
19 return ops->get_info(dev, info);
22 int cache_enable(struct udevice *dev)
24 struct cache_ops *ops = cache_get_ops(dev);
29 return ops->enable(dev);
32 int cache_disable(struct udevice *dev)
34 struct cache_ops *ops = cache_get_ops(dev);
39 return ops->disable(dev);
42 UCLASS_DRIVER(cache) = {
45 .post_bind = dm_scan_fdt_dev,