Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
29b76f2e
"plugins/vscode:/vscode.git/clone" did not exist on "7f8ee9aabe5f551a83babd4083ab6490cd324bda"
Commit
29b76f2e
authored
Sep 02, 2020
by
André Przywara
Committed by
TrustedFirmware Code Review
Sep 02, 2020
Browse files
Merge "arm_fpga: Add support to populate the CPU nodes in the DTB" into integration
parents
d5794b0e
20ff991e
Changes
2
Hide whitespace changes
Inline
Side-by-side
plat/arm/board/arm_fpga/fpga_bl31_setup.c
View file @
29b76f2e
...
...
@@ -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
);
...
...
plat/arm/board/arm_fpga/platform.mk
View file @
29b76f2e
...
...
@@ -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
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment