Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Masahiro Yamada | 95a1fec | 2016-08-10 16:08:37 +0900 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2016 Socionext Inc. |
| 4 | * Author: Masahiro Yamada <yamada.masahiro@socionext.com> |
Masahiro Yamada | 95a1fec | 2016-08-10 16:08:37 +0900 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __CACHE_UNIPHIER_H |
| 8 | #define __CACHE_UNIPHIER_H |
| 9 | |
| 10 | #include <linux/types.h> |
| 11 | |
| 12 | void uniphier_cache_prefetch_range(u32 start, u32 end, u32 ways); |
| 13 | void uniphier_cache_touch_range(u32 start, u32 end, u32 ways); |
| 14 | void uniphier_cache_touch_zero_range(u32 start, u32 end, u32 ways); |
Masahiro Yamada | 5941638 | 2016-08-10 16:08:47 +0900 | [diff] [blame] | 15 | void uniphier_cache_inv_way(u32 ways); |
Masahiro Yamada | ee9bc77 | 2016-08-10 16:08:48 +0900 | [diff] [blame] | 16 | void uniphier_cache_set_active_ways(int cpu, u32 active_ways); |
Masahiro Yamada | 6f579db | 2016-08-10 16:08:42 +0900 | [diff] [blame] | 17 | void uniphier_cache_enable(void); |
| 18 | void uniphier_cache_disable(void); |
Masahiro Yamada | 95a1fec | 2016-08-10 16:08:37 +0900 | [diff] [blame] | 19 | |
| 20 | #endif /* __CACHE_UNIPHIER_H */ |