]> git.baikalelectronics.ru Git - arm-tf.git/commit
arm_fpga: Remove SPE PMU DT node if SPE is not available
authorAndre Przywara <andre.przywara@arm.com>
Mon, 3 Aug 2020 11:55:28 +0000 (12:55 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Tue, 29 Sep 2020 12:28:25 +0000 (13:28 +0100)
commit40a0de1972bc9a12470b10bc08b7174e4990b30c
tree7f1e0abbc69c5dd0c120d1dd157038e3be811ac0
parent283e5595afa28a5930ac5f0dcdf7c18804221070
arm_fpga: Remove SPE PMU DT node if SPE is not available

The Statistical Profiling Extension (SPE) is an architectural feature we
can safely detect at runtime. However it still relies on one piece of
platform-specific information: the interrupt line it is connected
to. This requires SPE to be described in a devicetree node.

Since SPE support varies with the CPU cores found on an FPGA image, we
should detect the presence of SPE at runtime, and remove a potentially
existing SPE PMU node from the DT.

This allows to always have the SPE node in a generic devicetree file,
without risking exposing it on a CPU without this feature.

Change-Id: I73d83ea8509b03fe7bba20b9cce8d1335035fa31
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
plat/arm/board/arm_fpga/fpga_bl31_setup.c