lib/fit_payload: Add coreboot tables support for FDT.
Copy code of depthcharge boot/coreboot.c and adapt it. Tested on Cavium CN8100 EVB SFF, /sys/firmware/log is readable and prints the log. Change-Id: Ib714a021a24f51407558f484cd97aa58ecd43977 Signed-off-by: Philipp Deppenwiese <zaolin@das-labor.org> Reviewed-on: https://review.coreboot.org/28104 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
committed by
Patrick Rudolph
parent
fa1a07bf50
commit
84258db5d5
@@ -299,10 +299,15 @@ void cbmem_add_bootmem(void)
|
||||
void *baseptr = NULL;
|
||||
size_t size = 0;
|
||||
|
||||
imd_region_used(cbmem_get_imd(), &baseptr, &size);
|
||||
cbmem_get_region(&baseptr, &size);
|
||||
bootmem_add_range((uintptr_t)baseptr, size, BM_MEM_TABLE);
|
||||
}
|
||||
|
||||
void cbmem_get_region(void **baseptr, size_t *size)
|
||||
{
|
||||
imd_region_used(cbmem_get_imd(), baseptr, size);
|
||||
}
|
||||
|
||||
#if ENV_RAMSTAGE || (IS_ENABLED(CONFIG_EARLY_CBMEM_LIST) \
|
||||
&& (ENV_POSTCAR || ENV_ROMSTAGE))
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user