n1sdp: add code for DDR ECC enablement and BL33 copy to DDR
authorManoj Kumar <[email protected]>
Fri, 21 Jun 2019 16:07:13 +0000 (17:07 +0100)
committerManoj Kumar <[email protected]>
Wed, 26 Jun 2019 13:07:51 +0000 (14:07 +0100)
commitde8bc83ee9401acdab20fd8ae1f9cb9bf7ef7829
tree3e370e9e15019876c55e35f7e5f2e1b615e74aa6
parentb73d296d747663ecd31caf30ddcebf4a99f39abf
n1sdp: add code for DDR ECC enablement and BL33 copy to DDR

N1SDP platform supports RDIMMs with ECC capability. To use the ECC
capability, the entire DDR memory space has to be zeroed out before
enabling the ECC bits in DMC620. Zeroing out several gigabytes of
memory from SCP is quite time consuming so functions are added that
zeros out the DDR memory from application processor which is
much faster compared to SCP. BL33 binary cannot be copied to DDR memory
before enabling ECC so this is also done by TF-A from IOFPGA-DDR3
memory to main DDR4 memory after ECC is enabled.

Original PLAT_PHY_ADDR_SPACE_SIZE was limited to 36-bits with which
the entire DDR space cannot be accessed as DRAM2 starts in base
0x8080000000. So these macros are redefined for all ARM platforms.

Change-Id: If09524fb65b421b7a368b1b9fc52c49f2ddb7846
Signed-off-by: Manoj Kumar <[email protected]>
13 files changed:
include/plat/arm/common/arm_def.h
plat/arm/board/fvp/include/platform_def.h
plat/arm/board/fvp_ve/include/platform_def.h
plat/arm/board/juno/include/platform_def.h
plat/arm/board/n1sdp/include/platform_def.h
plat/arm/board/n1sdp/n1sdp_bl31_setup.c
plat/arm/board/n1sdp/n1sdp_def.h [new file with mode: 0644]
plat/arm/board/n1sdp/n1sdp_plat.c
plat/arm/board/n1sdp/platform.mk
plat/arm/board/rde1edge/include/platform_def.h
plat/arm/board/rdn1edge/include/platform_def.h
plat/arm/board/sgi575/include/platform_def.h
plat/arm/board/sgm775/include/platform_def.h