blob: 493d66c1897d3a9e528f23c801b8b74400b088ba [file] [log] [blame]
Masahiro Yamada487b5fe2016-08-10 16:08:37 +09001/*
2 * Copyright (C) 2016 Socionext Inc.
3 * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0+
6 */
7
8#ifndef __CACHE_UNIPHIER_H
9#define __CACHE_UNIPHIER_H
10
11#include <linux/types.h>
12
13void uniphier_cache_prefetch_range(u32 start, u32 end, u32 ways);
14void uniphier_cache_touch_range(u32 start, u32 end, u32 ways);
15void uniphier_cache_touch_zero_range(u32 start, u32 end, u32 ways);
Masahiro Yamada983b3d32016-08-10 16:08:47 +090016void uniphier_cache_inv_way(u32 ways);
Masahiro Yamadaf98afb62016-08-10 16:08:48 +090017void uniphier_cache_set_active_ways(int cpu, u32 active_ways);
Masahiro Yamadadf649012016-08-10 16:08:42 +090018void uniphier_cache_enable(void);
19void uniphier_cache_disable(void);
Masahiro Yamada487b5fe2016-08-10 16:08:37 +090020
21#endif /* __CACHE_UNIPHIER_H */