mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00
Merge "arm_fpga: Add support to populate the CPU nodes in the DTB" into integration
This commit is contained in:
commit
29b76f2e9f
2 changed files with 21 additions and 0 deletions
|
@ -5,7 +5,9 @@
|
|||
*/
|
||||
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <common/fdt_fixup.h>
|
||||
#include <common/fdt_wrappers.h>
|
||||
#include <drivers/delay_timer.h>
|
||||
#include <drivers/generic_delay_timer.h>
|
||||
|
@ -193,6 +195,24 @@ static void fpga_prepare_dtb(void)
|
|||
}
|
||||
}
|
||||
|
||||
if (err < 0) {
|
||||
ERROR("Error %d extending Device Tree\n", err);
|
||||
panic();
|
||||
}
|
||||
|
||||
err = fdt_add_cpus_node(fdt, FPGA_MAX_PE_PER_CPU,
|
||||
FPGA_MAX_CPUS_PER_CLUSTER,
|
||||
FPGA_MAX_CLUSTER_COUNT);
|
||||
|
||||
if (err == -EEXIST) {
|
||||
WARN("Not overwriting already existing /cpus node in DTB\n");
|
||||
} else {
|
||||
if (err < 0) {
|
||||
ERROR("Error %d creating the /cpus DT node\n", err);
|
||||
panic();
|
||||
}
|
||||
}
|
||||
|
||||
err = fdt_pack(fdt);
|
||||
if (err < 0) {
|
||||
ERROR("Failed to pack Device Tree at %p: error %d\n", fdt, err);
|
||||
|
|
|
@ -86,6 +86,7 @@ PLAT_INCLUDES := -Iplat/arm/board/arm_fpga/include
|
|||
PLAT_BL_COMMON_SOURCES := plat/arm/board/arm_fpga/${ARCH}/fpga_helpers.S
|
||||
|
||||
BL31_SOURCES += common/fdt_wrappers.c \
|
||||
common/fdt_fixup.c \
|
||||
drivers/delay_timer/delay_timer.c \
|
||||
drivers/delay_timer/generic_delay_timer.c \
|
||||
drivers/arm/pl011/${ARCH}/pl011_console.S \
|
||||
|
|
Loading…
Add table
Reference in a new issue