diff options
Diffstat (limited to 'drivers/cache')
-rw-r--r-- | drivers/cache/cache-uclass.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/cache/cache-uclass.c b/drivers/cache/cache-uclass.c index 0c13dbdb75..399db84fb7 100644 --- a/drivers/cache/cache-uclass.c +++ b/drivers/cache/cache-uclass.c @@ -39,6 +39,17 @@ int cache_disable(struct udevice *dev) return ops->disable(dev); } + +int flush_range(struct udevice *dev, unsigned long start, unsigned long end) +{ + struct cache_ops *ops = cache_get_ops(dev); + + if (!ops->flush_range) + return -ENOSYS; + + return ops->flush_range(dev, start, end); +} + UCLASS_DRIVER(cache) = { .id = UCLASS_CACHE, .name = "cache", |