]> git.baikalelectronics.ru Git - arm-tf.git/commit
refactor(allwinner): patch the DTB after setting up PSCI
authorSamuel Holland <samuel@sholland.org>
Sun, 23 Jan 2022 04:06:57 +0000 (22:06 -0600)
committerJoanna Farley <joanna.farley@arm.com>
Tue, 26 Apr 2022 15:52:11 +0000 (17:52 +0200)
commit3ccccc658093f0cd619ceb43f6bbfc238ed22881
treef5e593b655dcc97ac54a28cd66c9008be14852ab
parent6fa8e72e7bde73012d1e9b1f227d323864e739cf
refactor(allwinner): patch the DTB after setting up PSCI

Idle states are advertised to the rich OS by declaring them in the DTB.
Since the availability of idle states depends on which PSCI
implementation was chosen, the DTB must be updated after PSCI setup.

Move this operation to bl31_plat_runtime_setup, the platform hook
which happens at the right time. Defining this hook overrides the weak
definition from plat/common, so copy over the code from there, too.

Change-Id: I42a83edb9cb28e1803d17dc2d73dbc879d885222
Signed-off-by: Samuel Holland <samuel@sholland.org>
plat/allwinner/common/sunxi_bl31_setup.c