Add support for memory regions in SP config
Parse memory region list from SP configuration and add them to config
store.
Signed-off-by: Imre Kis <imre.kis@arm.com>
Change-Id: I496cfd17f822ae1f6b90a0cf95d58d564c9306b5
diff --git a/platform/interface/memory_region.h b/platform/interface/memory_region.h
new file mode 100644
index 0000000..59f28c6
--- /dev/null
+++ b/platform/interface/memory_region.h
@@ -0,0 +1,31 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+/*
+ * Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
+ */
+
+#ifndef MEMORY_REGION_H_
+#define MEMORY_REGION_H_
+
+#include <stddef.h>
+#include <stdint.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * Defines a structure for describing a contiguous memory region
+ * This may be based on buildtime or runtime configuration information e.g.
+ * from device tree.
+ */
+struct memory_region {
+ char region_name[16]; /**< Name of the region e.g. 'mm_comm_buffer' */
+ uintptr_t base_addr; /**< Base address of the region */
+ size_t region_size; /**< Size of memory region in bytes */
+};
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* MEMORY_REGION_H_ */