Tegra: define MAX_XLAT_TABLES and MAX_MMAP_REGIONS per-platform
authorVarun Wadekar <vwadekar@nvidia.com>
Wed, 9 Sep 2015 05:59:24 +0000 (11:29 +0530)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 22 Feb 2017 02:55:58 +0000 (18:55 -0800)
This patch moves these address translation helper macros to individual
Tegra SoC makefiles to provide more control.

Change-Id: Ieab53c457c73747bd0deb250459befb5b7b9363f
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
plat/nvidia/tegra/include/platform_def.h
plat/nvidia/tegra/soc/t132/platform_t132.mk
plat/nvidia/tegra/soc/t210/platform_t210.mk

index cd06d93f53c00928d79653ad2db2627b9ce916c1..92c4c554baaf74f8d64141cb8b920aea7d7305ad 100644 (file)
@@ -84,8 +84,6 @@
  * Platform specific page table and MMU setup constants
  ******************************************************************************/
 #define ADDR_SPACE_SIZE                        (1ull << 32)
-#define MAX_XLAT_TABLES                        3
-#define MAX_MMAP_REGIONS               8
 
 /*******************************************************************************
  * Some data must be aligned on the biggest cache line size in the platform.
index 2364a22fa0c53427ffbe0d18bf01cbdc5f023ddd..d747d40850082479715dff9d1329bb42a71ed504 100644 (file)
@@ -40,6 +40,12 @@ $(eval $(call add_define,PLATFORM_CLUSTER_COUNT))
 PLATFORM_MAX_CPUS_PER_CLUSTER  := 2
 $(eval $(call add_define,PLATFORM_MAX_CPUS_PER_CLUSTER))
 
+MAX_XLAT_TABLES                        := 3
+$(eval $(call add_define,MAX_XLAT_TABLES))
+
+MAX_MMAP_REGIONS               := 8
+$(eval $(call add_define,MAX_MMAP_REGIONS))
+
 BL31_SOURCES           +=      lib/cpus/aarch64/denver.S               \
                                ${COMMON_DIR}/drivers/flowctrl/flowctrl.c       \
                                ${SOC_DIR}/plat_psci_handlers.c         \
index bb6424d44307743b2fefed1fbb6205e978ed84a7..36746e11b84e55024e267129ac509c1276396ef9 100644 (file)
@@ -52,6 +52,12 @@ $(eval $(call add_define,PLATFORM_CLUSTER_COUNT))
 PLATFORM_MAX_CPUS_PER_CLUSTER          := 4
 $(eval $(call add_define,PLATFORM_MAX_CPUS_PER_CLUSTER))
 
+MAX_XLAT_TABLES                                := 3
+$(eval $(call add_define,MAX_XLAT_TABLES))
+
+MAX_MMAP_REGIONS                       := 8
+$(eval $(call add_define,MAX_MMAP_REGIONS))
+
 BL31_SOURCES           +=      lib/cpus/aarch64/cortex_a53.S           \
                                lib/cpus/aarch64/cortex_a57.S           \
                                ${COMMON_DIR}/drivers/flowctrl/flowctrl.c       \