plat-mediatek: set CFG_DRAM_SIZE according to CFG_CORE_ARM64_PA_BITS

OP-TEE Core uses CFG_DRAM_SIZE to map whole DRAM regsion so it can
resolve the physical addresses to the shared memory regions allocated by
Linux kernel.

Since the shared meomery is allocate and managed by Linux kernel, it is
unlikely to allocat a memory region outside the physical memory address.
It should be safe to configure CFG_DRAM_SIZE to a larger size than the
physical DRAM size. Even non-secure world could send an invalid physical
address, the CPU should raise an exception and fail when OP-TEE Core
accesses to that address.

Set CFG_DRAM_SIZE according to CFG_CORE_ARM64_PA_BITS regardless of the
physical DRAM size on different SKU.

Change-Id: I0b5b06cf498e9828b910cc0d934e1e839caa850e
1 file changed
tree: 6b795f6266b75bff3afebb255ddbf500c74f6b68
  1. .github/
  2. core/
  3. keys/
  4. ldelf/
  5. lib/
  6. mk/
  7. scripts/
  8. ta/
  9. .checkpatch.conf
  10. .gitattributes
  11. .gitignore
  12. CHANGELOG.md
  13. DIR_METADATA
  14. LICENSE
  15. MAINTAINERS
  16. Makefile
  17. OWNERS
  18. README.md
  19. typedefs.checkpatch
README.md

OP-TEE Trusted OS

This git contains source code for the secure side implementation of OP-TEE project.

All official OP-TEE documentation has moved to http://optee.readthedocs.io.

// OP-TEE core maintainers