summaryrefslogtreecommitdiff
path: root/plat/ti/k3/include
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2016-10-14 01:13:45 +0000
committerAndrew F. Davis <afd@ti.com>2018-06-19 11:51:05 -0500
commite67bfcf34443663e8d1041ebeb4c7398cf36bd84 (patch)
treed9e6f7b3a7614fcb4681b27709b13e03621210a6 /plat/ti/k3/include
parent878bd5cebfea23abccbea1904080e573e2adcaaf (diff)
ti: k3: common: Enable MMU using xlat_tables_v2 library
This library will be used to properly set up mappings from different bootloaders at different exception levels. It ensures that memory mapped devices such as UARTs are still accessible and memory regions have the correct access permissions. Signed-off-by: Benjamin Fair <b-fair@ti.com> Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Andrew F. Davis <afd@ti.com>
Diffstat (limited to 'plat/ti/k3/include')
-rw-r--r--plat/ti/k3/include/platform_def.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/plat/ti/k3/include/platform_def.h b/plat/ti/k3/include/platform_def.h
index bac8af19..10389528 100644
--- a/plat/ti/k3/include/platform_def.h
+++ b/plat/ti/k3/include/platform_def.h
@@ -88,6 +88,33 @@
#define BL31_PROGBITS_LIMIT BL31_LIMIT
/*
+ * Defines the maximum number of translation tables that are allocated by the
+ * translation table library code. To minimize the amount of runtime memory
+ * used, choose the smallest value needed to map the required virtual addresses
+ * for each BL stage.
+ */
+#define MAX_XLAT_TABLES 8
+
+/*
+ * Defines the maximum number of regions that are allocated by the translation
+ * table library code. A region consists of physical base address, virtual base
+ * address, size and attributes (Device/Memory, RO/RW, Secure/Non-Secure), as
+ * defined in the `mmap_region_t` structure. The platform defines the regions
+ * that should be mapped. Then, the translation table library will create the
+ * corresponding tables and descriptors at runtime. To minimize the amount of
+ * runtime memory used, choose the smallest value needed to register the
+ * required regions for each BL stage.
+ */
+#define MAX_MMAP_REGIONS 8
+
+/*
+ * Defines the total size of the address space in bytes. For example, for a 32
+ * bit address space, this value should be `(1ull << 32)`.
+ */
+#define PLAT_PHY_ADDR_SPACE_SIZE (1ull << 32)
+#define PLAT_VIRT_ADDR_SPACE_SIZE (1ull << 32)
+
+/*
* Some data must be aligned on the biggest cache line size in the platform.
* This is known only to the platform as it might have a combination of
* integrated and external caches.