summaryrefslogtreecommitdiff
path: root/plat
diff options
context:
space:
mode:
authorSoren Brinkmann <soren.brinkmann@xilinx.com>2016-04-22 10:02:46 -0700
committerSoren Brinkmann <soren.brinkmann@xilinx.com>2016-05-24 10:18:06 -0700
commit142ec0433ff3c3fc5e8ba5af71b94cc2d44c1ad6 (patch)
tree8adf1a214aba3142d1ce6011c800a8eae8a21393 /plat
parentb96f77c65ba5ce91091044b43704562e622a353b (diff)
zynqmp: Reduce mapped memory area
The GIC area is specified larger than it needs to be and can be reduced. Which allows reducing the structures required for the translation tables as well. This results in a reduction of memory footprint of ca. 4k. Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com> Acked-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'plat')
-rw-r--r--plat/xilinx/zynqmp/include/platform_def.h8
-rw-r--r--plat/xilinx/zynqmp/zynqmp_def.h2
2 files changed, 7 insertions, 3 deletions
diff --git a/plat/xilinx/zynqmp/include/platform_def.h b/plat/xilinx/zynqmp/include/platform_def.h
index c5ffac22..76a52de8 100644
--- a/plat/xilinx/zynqmp/include/platform_def.h
+++ b/plat/xilinx/zynqmp/include/platform_def.h
@@ -100,8 +100,12 @@
* Platform specific page table and MMU setup constants
******************************************************************************/
#define ADDR_SPACE_SIZE (1ull << 32)
-#define MAX_XLAT_TABLES 5
-#define MAX_MMAP_REGIONS 7
+#define MAX_MMAP_REGIONS 6
+#if IMAGE_BL32
+# define MAX_XLAT_TABLES 5
+#else
+# define MAX_XLAT_TABLES 4
+#endif
#define CACHE_WRITEBACK_SHIFT 6
#define CACHE_WRITEBACK_GRANULE (1 << CACHE_WRITEBACK_SHIFT)
diff --git a/plat/xilinx/zynqmp/zynqmp_def.h b/plat/xilinx/zynqmp/zynqmp_def.h
index 13498b5c..4ff1f468 100644
--- a/plat/xilinx/zynqmp/zynqmp_def.h
+++ b/plat/xilinx/zynqmp/zynqmp_def.h
@@ -47,7 +47,7 @@
#define DEVICE0_BASE 0xFF000000
#define DEVICE0_SIZE 0x00E00000
#define DEVICE1_BASE 0xF9000000
-#define DEVICE1_SIZE 0x01000000
+#define DEVICE1_SIZE 0x00800000
/* For cpu reset APU space here too 0xFE5F1000 CRF_APB*/
#define CRF_APB_BASE 0xFD1A0000