forked from Mirrors/opensbi
platform: Add AE350 cache control SBIs
This patch contains the following AE350 specific SBIs: - get mcache_ctl status - get mmisc_ctl status - set mcache_ctl status - set mmisc_ctl status - I-cache operation - D-cache operation - enable/disable L1-I-cache prefetch - enable/disable L1-D-cache prefetch - enable/disable non-blocking load store - enable/disable write-around Signed-off-by: Nylon Chen <nylon7@andestech.com> Reviewed-by: Anup Patel <Anup.Patel@wdc.com> Reviewed-by: Atish Patra <Atish.Patra@wdc.com>
This commit is contained in:
17
platform/andes/ae350/cache.h
Normal file
17
platform/andes/ae350/cache.h
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*
|
||||
* Copyright (c) 2020 Andes Technology Corporation
|
||||
*
|
||||
* Authors:
|
||||
* Nylon Chen <nylon7@andestech.com>
|
||||
*/
|
||||
|
||||
uintptr_t mcall_set_mcache_ctl(unsigned long input);
|
||||
uintptr_t mcall_set_mmisc_ctl(unsigned long input);
|
||||
uintptr_t mcall_icache_op(unsigned int enable);
|
||||
uintptr_t mcall_dcache_op(unsigned int enable);
|
||||
uintptr_t mcall_l1_cache_i_prefetch_op(unsigned long enable);
|
||||
uintptr_t mcall_l1_cache_d_prefetch_op(unsigned long enable);
|
||||
uintptr_t mcall_non_blocking_load_store(unsigned long enable);
|
||||
uintptr_t mcall_write_around(unsigned long enable);
|
Reference in New Issue
Block a user