blob: 40838244d14a637f77fead6feaf27d1e13e0b0ac [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Masahiro Yamada95a1fec2016-08-10 16:08:37 +09002/*
3 * Copyright (C) 2016 Socionext Inc.
4 * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamada95a1fec2016-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 Yamada59416382016-08-10 16:08:47 +090015void uniphier_cache_inv_way(u32 ways);
Masahiro Yamadaee9bc772016-08-10 16:08:48 +090016void uniphier_cache_set_active_ways(int cpu, u32 active_ways);
Masahiro Yamada6f579db2016-08-10 16:08:42 +090017void uniphier_cache_enable(void);
18void uniphier_cache_disable(void);
Masahiro Yamada95a1fec2016-08-10 16:08:37 +090019
20#endif /* __CACHE_UNIPHIER_H */