Dinh Nguyen | 84b124d | 2019-04-23 16:55:03 -0500 | [diff] [blame^] | 1 | // 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 | |
| 10 | int 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 | |
| 20 | UCLASS_DRIVER(cache) = { |
| 21 | .id = UCLASS_CACHE, |
| 22 | .name = "cache", |
| 23 | .post_bind = dm_scan_fdt_dev, |
| 24 | }; |