summaryrefslogtreecommitdiff
path: root/platform/generic/include
diff options
context:
space:
mode:
authorBen Zong-You Xie <[email protected]>2024-07-23 15:57:26 +0800
committerAnup Patel <[email protected]>2024-08-23 14:05:39 +0530
commit4a72abb5f490c01a5a4dd24930ccae9c42d15c74 (patch)
tree29706c3d109c94738a02c48b85c283a3a0121733 /platform/generic/include
parent17100394f9d7f035df75f1656e9ac36dd396acc4 (diff)
platform: generic: andes: add Andes SBI call to probe Andes PMA feature
Add a new Andes SBI call to check whether PPMA is supported by hardware or not. Signed-off-by: Ben Zong-You Xie <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'platform/generic/include')
-rw-r--r--platform/generic/include/andes/andes_pma.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/platform/generic/include/andes/andes_pma.h b/platform/generic/include/andes/andes_pma.h
index 5ea12475..147dca1e 100644
--- a/platform/generic/include/andes/andes_pma.h
+++ b/platform/generic/include/andes/andes_pma.h
@@ -47,4 +47,16 @@ struct andes_pma_region {
int andes_pma_setup_regions(const struct andes_pma_region *pma_regions,
unsigned int pma_regions_count);
+/**
+ * Programmable PMA(PPMA) is a feature for Andes. PPMA allows dynamic adjustment
+ * of memory attributes in the runtime. It contains a configurable amount of PMA
+ * entries implemented as CSRs to control the attributes of memory locations.
+ *
+ * Check if hardware supports PPMA
+ *
+ * @return true if PPMA is supported
+ * @return false if PPMA is not supported
+ */
+bool andes_sbi_probe_pma(void);
+
#endif /* _ANDES_PMA_H_ */