mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-17 15:38:51 +09:00
![Masahiro Yamada](/assets/img/avatar_default.png)
This outer cache allows to control active ways independently for each CPU, so this function will be useful to set up active ways for a specific CPU. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
22 lines
628 B
C
22 lines
628 B
C
/*
|
|
* Copyright (C) 2016 Socionext Inc.
|
|
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef __CACHE_UNIPHIER_H
|
|
#define __CACHE_UNIPHIER_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
void uniphier_cache_prefetch_range(u32 start, u32 end, u32 ways);
|
|
void uniphier_cache_touch_range(u32 start, u32 end, u32 ways);
|
|
void uniphier_cache_touch_zero_range(u32 start, u32 end, u32 ways);
|
|
void uniphier_cache_inv_way(u32 ways);
|
|
void uniphier_cache_set_active_ways(int cpu, u32 active_ways);
|
|
void uniphier_cache_enable(void);
|
|
void uniphier_cache_disable(void);
|
|
|
|
#endif /* __CACHE_UNIPHIER_H */
|