-
Notifications
You must be signed in to change notification settings - Fork 1.1k
core: imx: 8m phytec boards: increase CFG_DDR_SIZE #7526
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -408,14 +408,16 @@ CFG_NSEC_DDR_1_SIZE ?= 0x40000000UL | |
| endif | ||
|
|
||
| ifneq (,$(filter $(PLATFORM_FLAVOR),mx8mm_phyboard_polis)) | ||
| CFG_DDR_SIZE ?= 0x40000000 | ||
| CFG_DDR_SIZE ?= UL(0x100000000) | ||
| CFG_TZDRAM_START = 0x7e000000 | ||
| CFG_UART_BASE ?= UART3_BASE | ||
| $(call force,CFG_CORE_LARGE_PHYS_ADDR,y) | ||
| $(call force,CFG_CORE_ARM64_PA_BITS,36) | ||
| endif | ||
|
|
||
| ifneq (,$(filter $(PLATFORM_FLAVOR),mx8mm_phygate_tauri_l)) | ||
| CFG_DDR_SIZE ?= 0x80000000 | ||
| CFG_DDR_SIZE ?= UL(0x100000000) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you test with these changes on all 8m phytec platforms ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tested that all boards boot and xtest runs successfully. Is there a specific test you recommend me to run or what I should check? I'll take a closer look at how tzc-380 works. |
||
| CFG_TZDRAM_START = 0xbe000000 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @ymoog From commit message, shared memory address will be in first 1GB memory, but this address is not in first 1GB of memory, please check. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @sahilnxp, thanks for calling that out. The phygate tauri does not exist as a 1GiB memory variant. I'll rework the commit message. |
||
| CFG_UART_BASE ?= UART3_BASE | ||
| $(call force,CFG_CORE_LARGE_PHYS_ADDR,y) | ||
| $(call force,CFG_CORE_ARM64_PA_BITS,36) | ||
|
|
@@ -434,14 +436,16 @@ $(call force,CFG_CORE_ARM64_PA_BITS,36) | |
| endif | ||
|
|
||
| ifneq (,$(filter $(PLATFORM_FLAVOR),mx8mp_libra_fpsc)) | ||
| CFG_DDR_SIZE ?= 0x40000000 | ||
| CFG_DDR_SIZE ?= UL(0x100000000) | ||
| CFG_TZDRAM_START = 0x7e000000 | ||
| CFG_UART_BASE ?= UART4_BASE | ||
| $(call force,CFG_CORE_LARGE_PHYS_ADDR,y) | ||
| $(call force,CFG_CORE_ARM64_PA_BITS,36) | ||
| endif | ||
|
|
||
| ifneq (,$(filter $(PLATFORM_FLAVOR),mx8mp_phyboard_pollux)) | ||
| CFG_DDR_SIZE ?= 0x40000000 | ||
| CFG_DDR_SIZE ?= UL(0x100000000) | ||
| CFG_TZDRAM_START = 0x7e000000 | ||
| CFG_UART_BASE ?= UART1_BASE | ||
| $(call force,CFG_CORE_LARGE_PHYS_ADDR,y) | ||
| $(call force,CFG_CORE_ARM64_PA_BITS,36) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From 8MM and 8MP reference manual, DDR addresses are aligned as shown below:
For the boards having more than, 3GB of memory, I think you need to define CFG_NSEC_DDR_1_BASE and CFG_NSEC_DDR_1_SIZE also.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot about that, thanks.
Does the imx8mp evk have this problem as well, then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes imx8mp evk has same memory map like this one.