blob: 40838244d14a637f77fead6feaf27d1e13e0b0ac [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Masahiro Yamada487b5fe2016-08-10 16:08:37 +09002/*
3 * Copyright (C) 2016 Socionext Inc.
4 * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamada487b5fe2016-08-10 16:08:37 +09005 */
6
7#ifndef __CACHE_UNIPHIER_H
8#define __CACHE_UNIPHIER_H
9
10#include <linux/types.h>
11
12void uniphier_cache_prefetch_range(u32 start, u32 end, u32 ways);
13void uniphier_cache_touch_range(u32 start, u32 end, u32 ways);
14void uniphier_cache_touch_zero_range(u32 start, u32 end, u32 ways);
Masahiro Yamada983b3d32016-08-10 16:08:47 +090015void uniphier_cache_inv_way(u32 ways);
Masahiro Yamadaf98afb62016-08-10 16:08:48 +090016void uniphier_cache_set_active_ways(int cpu, u32 active_ways);
Masahiro Yamadadf649012016-08-10 16:08:42 +090017void uniphier_cache_enable(void);
18void uniphier_cache_disable(void);
Masahiro Yamada487b5fe2016-08-10 16:08:37 +090019
20#endif /* __CACHE_UNIPHIER_H */