]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
plat: marvell: armada: reduce memory size reserved for FIP image
authorMarcin Wojtas <mw@semihalf.com>
Fri, 19 Jun 2020 15:51:08 +0000 (17:51 +0200)
committerMarcin Wojtas <mw@semihalf.com>
Fri, 19 Jun 2020 16:03:29 +0000 (18:03 +0200)
It is not needed to reserve 64MB for FIP. Limit this to 4MB
for both supported Armada SoC families.

Change-Id: I58a8ce4408a646fe1afd3c1ea1ed54007c8d205d
Signed-off-by: Konstantin Porotchkin <kostap@marvell.com>
[Extract from bigger commit]
Signed-off-by: Marcin Wojtas <mw@semihalf.com>
plat/marvell/armada/a3k/common/include/platform_def.h
plat/marvell/armada/a8k/common/include/platform_def.h

index ed1b3f7c8504d95953803ab7715281a8fcb401ff..7f8f79a45e917d1fda18c0ece9df05e425f2678d 100644 (file)
@@ -81,8 +81,8 @@
 #define PLAT_MARVELL_CLUSTER_CORE_COUNT                U(2)
 /* DRAM[2MB..66MB] is used  as Trusted ROM */
 #define PLAT_MARVELL_TRUSTED_ROM_BASE          PLAT_MARVELL_ATF_LOAD_ADDR
-/* 64 MB TODO: reduce this to minimum needed according to fip image size*/
-#define PLAT_MARVELL_TRUSTED_ROM_SIZE          0x04000000
+/* 4 MB for FIP image */
+#define PLAT_MARVELL_TRUSTED_ROM_SIZE          0x00400000
 /* Reserve 16M for SCP (Secure PayLoad) Trusted DRAM */
 #define PLAT_MARVELL_TRUSTED_RAM_BASE          0x04400000
 #define PLAT_MARVELL_TRUSTED_RAM_SIZE          0x01000000      /* 16 MB */
index d0df06271769af97ba4154347817151feb8e2c91..b26e3ea1ed17d776709341e3902b94e1a3ff3399 100644 (file)
@@ -94,8 +94,8 @@
 
 /* Part of DRAM that is used as Trusted ROM */
 #define PLAT_MARVELL_TRUSTED_ROM_BASE          PLAT_MARVELL_ATF_LOAD_ADDR
-/* 64 MB TODO: reduce this to minimum needed according to fip image size */
-#define PLAT_MARVELL_TRUSTED_ROM_SIZE          0x04000000
+/* 4 MB for FIP image */
+#define PLAT_MARVELL_TRUSTED_ROM_SIZE          0x00400000
 /* Reserve 16M for SCP (Secure PayLoad) Trusted RAM */
 #define PLAT_MARVELL_TRUSTED_RAM_BASE          0x04400000
 #define PLAT_MARVELL_TRUSTED_RAM_SIZE          0x01000000      /* 16 MB DRAM */