Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plat-hikey: make DRAM0_SIZE and DRAM0_SIZE_NSEC configurable #6805

Merged
merged 1 commit into from
Jun 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions core/arch/arm/plat-hikey/platform_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@
*/

#define DRAM0_BASE 0x00000000
#define DRAM0_SIZE 0x3F000000
/* DRAM0 exists below TZDRAM */
#define DRAM0_SIZE (CFG_TZDRAM_START - DRAM0_BASE)
#define DRAM0_SIZE_NSEC 0x3E000000
#define DRAM1_BASE CFG_DRAM1_BASE

Expand All @@ -130,7 +131,7 @@
#if (CFG_DRAM_SIZE_GB == 3)
#define DRAM1_SIZE_NSEC 0x80000000
#elif (CFG_DRAM_SIZE_GB == 4)
#define DRAM1_SIZE_NSEC 0xA0000000
#define DRAM1_SIZE_NSEC (0xE0000000 - DRAM1_BASE)
#define DRAM2_BASE 0x200000000
#define DRAM2_SIZE_NSEC 0x20000000
#elif (CFG_DRAM_SIZE_GB == 6)
Expand Down