armv8: include psci_update_dt() unconditionally
authorMichael Walle <michael@walle.cc>
Mon, 28 Feb 2022 12:48:37 +0000 (13:48 +0100)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 26 Apr 2022 11:43:57 +0000 (17:13 +0530)
commiteb217200efab6c400f96fb039474dcc840bb8404
tree3c784e8f5ccf168b3e5e1a10a1f9d0f29cc87e24
parent881284b36a3785328ac611bab4aedd9a2a8563e6
armv8: include psci_update_dt() unconditionally

psci_update_dt() is also required if CONFIG_ARMV8_PSCI is set, that is,
if u-boot is the PSCI provider.
Guard the check which is intended to call into the PSCI implementation
in the secure firmware, by the proper macro SEC_FIRMWARE_ARMV8_PSCI.

Mark the function as weak because - unfortunately - there is already
a stub of the same function in arch/arm/mach-rmobile/psci-r8a779a0.c
which does not the same as the common one.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/arm/cpu/armv8/cpu-dt.c