The UniPhier outer cache (L2 cache on ARMv7 SoCs) can be used as SRAM by locking ways. These functions will be used to transfer the trampoline code for SMP into the locked SRAM. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
18 lines
457 B
C
18 lines
457 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);
|
|
|
|
#endif /* __CACHE_UNIPHIER_H */
|