Skip to content

Commit

Permalink
core: arm: get DDR range from embedded DTB
Browse files Browse the repository at this point in the history
Find main memory (DDR) physical range(s) from the secure embedded DTB
if not found from the external DDR.

Signed-off-by: Etienne Carriere <[email protected]>
  • Loading branch information
etienne-lms committed Jan 16, 2024
1 parent 8e9d8ac commit e74395c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion core/arch/arm/kernel/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,18 @@ static void discover_nsec_memory(void)
return;
}

DMSG("No non-secure memory found in FDT");
DMSG("No non-secure memory found in external DT");
}

fdt = get_embedded_dt();
if (fdt) {
mem = get_nsec_memory(fdt, &nelems);
if (mem) {
core_mmu_set_discovered_nsec_ddr(mem, nelems);
return;
}

DMSG("No non-secure memory found in embedded DT");
}

mem_begin = phys_ddr_overall_begin;
Expand Down

0 comments on commit e74395c

Please sign in to comment.