blob: 97ce0249a4a8b6878cc2ef79a533440ada0ba621 [file] [log] [blame]
Dinh Nguyen84b124d2019-04-23 16:55:03 -05001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2019 Intel Corporation <www.intel.com>
4 */
5
6#include <common.h>
7#include <cache.h>
8#include <dm.h>
9
10int cache_get_info(struct udevice *dev, struct cache_info *info)
11{
12 struct cache_ops *ops = cache_get_ops(dev);
13
14 if (!ops->get_info)
15 return -ENOSYS;
16
17 return ops->get_info(dev, info);
18}
19
20UCLASS_DRIVER(cache) = {
21 .id = UCLASS_CACHE,
22 .name = "cache",
23 .post_bind = dm_scan_fdt_dev,
24};