]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
sysreset: psci: Fix SPL dependency
authorMichal Simek <michal.simek@amd.com>
Thu, 17 Jul 2025 08:41:32 +0000 (10:41 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 23 Jul 2025 23:37:11 +0000 (17:37 -0600)
SYSRESET_PSCI should select SPL_ARM_PSCI_FW only when SPL_SYSRESET is
enabled/required. This change saves 1.6kB on Xilinx ZynqMP Kria platform.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
drivers/sysreset/Kconfig

index aa83073c96a737bc78a4d0d6d5ca54503229e188..67edf004205cb4ce20ddc791d2b91d0b499fd6ce 100644 (file)
@@ -176,7 +176,7 @@ config SYSRESET_PALMAS
 config SYSRESET_PSCI
        bool "Enable support for PSCI System Reset"
        depends on ARM_PSCI_FW
-       select SPL_ARM_PSCI_FW if SPL
+       select SPL_ARM_PSCI_FW if SPL_SYSRESET
        help
          Enable PSCI SYSTEM_RESET function call.  To use this, PSCI firmware
          must be running on your system.