diff options
author | Jun Liang Tan <junliang.tan@linux.starfivetech.com> | 2022-08-01 11:03:00 +0300 |
---|---|---|
committer | Jun Liang Tan <junliang.tan@linux.starfivetech.com> | 2022-10-27 11:42:31 +0300 |
commit | bee8253d8f04c56017860386d1b2132cf4f4b7c5 (patch) | |
tree | 812ff760c32c9818f7d18a9c9d6e8178668b82e8 /platform/generic/starfive/cache.h | |
parent | 361530eceac3fe7209adc47341afb68130b224f2 (diff) | |
download | opensbi-starfive-v1.1-dubhe.tar.xz |
platform: generic: starfive: Add platform specific Cache Maintenance OperationsREL_DUBHE_JAN2023starfive-v1.1-dubhe
Add SBI call for L2 cache flush and L2 cache invalidate for Dubhe
Signed-off-by: Jun Liang Tan <junliang.tan@linux.starfivetech.com>
Diffstat (limited to 'platform/generic/starfive/cache.h')
-rw-r--r-- | platform/generic/starfive/cache.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/platform/generic/starfive/cache.h b/platform/generic/starfive/cache.h new file mode 100644 index 0000000..a60f900 --- /dev/null +++ b/platform/generic/starfive/cache.h @@ -0,0 +1,18 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2022 StarFive Technology Co., Ltd. + * + * Author: Jun Liang Tan <junliang.tan@linux.starfivetech.com> + * + */ + +#ifndef _DUBHE_CACHE_H_ +#define _DUBHE_CACHE_H_ + +#include <sbi/sbi_types.h> + +void __sbi_dubhe_L2_flush_range(uint64_t start, uint64_t len); +void __sbi_dubhe_L2_inv_range(uint64_t start, uint64_t len); + +#endif /* _DUBHE_CACHE_H_ */ |