mirror of
https://xff.cz/git/u-boot/
synced 2025-09-30 06:51:28 +02:00
The System Cache (outer cache) is used not only as L2 cache, but also as locked SRAM. The functions for turning on/off it is necessary whether the L2 cache is enabled or not. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
20 lines
526 B
C
20 lines
526 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_enable(void);
|
|
void uniphier_cache_disable(void);
|
|
|
|
#endif /* __CACHE_UNIPHIER_H */
|