diff options
author | shanlong.li <shanlong.li@starfivetech.com> | 2023-06-01 12:10:30 +0300 |
---|---|---|
committer | shanlong.li <shanlong.li@starfivetech.com> | 2023-06-02 10:47:50 +0300 |
commit | d5d4e077567b16c35466b1b67722d077e46acf9d (patch) | |
tree | 406000839927c3bb83f56b40e2e41b034c386cbf /include | |
parent | 3b87a90698c951a15c50a2fdd619dd14ae73480a (diff) | |
download | linux-d5d4e077567b16c35466b1b67722d077e46acf9d.tar.xz |
driver:cache: add l2 cache driver
add l2 cache driver
Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/soc/sifive/sifive_l2_cache.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/soc/sifive/sifive_l2_cache.h b/include/soc/sifive/sifive_l2_cache.h new file mode 100644 index 000000000000..04dcac10b5cd --- /dev/null +++ b/include/soc/sifive/sifive_l2_cache.h @@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * SiFive L2 Cache Controller header file + * + */ + +#ifndef __SOC_SIFIVE_L2_CACHE_H +#define __SOC_SIFIVE_L2_CACHE_H + +extern int register_sifive_l2_error_notifier(struct notifier_block *nb); +extern int unregister_sifive_l2_error_notifier(struct notifier_block *nb); + +#define SIFIVE_L2_ERR_TYPE_CE 0 +#define SIFIVE_L2_ERR_TYPE_UE 1 + +#ifdef CONFIG_SIFIVE_L2_FLUSH +void sifive_l2_flush64_range(unsigned long start, unsigned long len); +#endif + +#endif /* __SOC_SIFIVE_L2_CACHE_H */ |