Skip to content
Snippets Groups Projects
Commit 286a88cf authored by Fabio Estevam's avatar Fabio Estevam Committed by Stefano Babic
Browse files

mxs: Explain why some mx23 DDR registers are not configured


Put an explanation in the source code as to why some DDR registers do not
need to be configured.

Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
parent 0b323439
No related branches found
No related tags found
No related merge requests found
...@@ -127,6 +127,15 @@ static void initialize_dram_values(void) ...@@ -127,6 +127,15 @@ static void initialize_dram_values(void)
mxs_adjust_memory_params(dram_vals); mxs_adjust_memory_params(dram_vals);
/*
* HW_DRAM_CTL27, HW_DRAM_CTL28 and HW_DRAM_CTL35 are not initialized as
* per FSL bootlets code.
*
* mx23 Reference Manual marks HW_DRAM_CTL27 and HW_DRAM_CTL28 as
* "reserved".
* HW_DRAM_CTL8 is setup as the last element.
* So skip the initialization of these HW_DRAM_CTL registers.
*/
for (i = 0; i < ARRAY_SIZE(dram_vals); i++) { for (i = 0; i < ARRAY_SIZE(dram_vals); i++) {
if (i == 8 || i == 27 || i == 28 || i == 35) if (i == 8 || i == 27 || i == 28 || i == 35)
continue; continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment