sysreset: diverge GPIO reset and poweroff configs per-phase

GPIO reset and power-off functionality depends on device tree data, which
is often absent in SPL or TPL. To address this, incorporate PHASE_ into the
config option and add Kconfig option or each phase.

Adjust SYSRESET_GPIO and POWEROFF_GPIO uses to address possible
regressions.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
diff --git a/drivers/sysreset/Kconfig b/drivers/sysreset/Kconfig
index 475540f..4972905 100644
--- a/drivers/sysreset/Kconfig
+++ b/drivers/sysreset/Kconfig
@@ -71,6 +71,27 @@
 	  Support for system poweroff using a GPIO pin. This can be used
 	  for systems having a single GPIO to trigger a system poweroff.
 
+config SPL_POWEROFF_GPIO
+	bool "Enable support for GPIO poweroff driver in SPL"
+	depends on DM_GPIO && SPL
+	help
+	  Support for system poweroff using a GPIO pin in SPL. This can be used
+	  for systems having a single GPIO to trigger a system poweroff.
+
+config TPL_POWEROFF_GPIO
+	bool "Enable support for GPIO poweroff driver in TPL"
+	depends on DM_GPIO && TPL
+	help
+	  Support for system poweroff using a GPIO pin in TPL. This can be used
+	  for systems having a single GPIO to trigger a system poweroff.
+
+config VPL_POWEROFF_GPIO
+	bool "Enable support for GPIO poweroff driver in VPL"
+	depends on DM_GPIO && VPL
+	help
+	  Support for system poweroff using a GPIO pin in VPL. This can be used
+	  for systems having a single GPIO to trigger a system poweroff.
+
 config SYSRESET_GPIO
 	bool "Enable support for GPIO reset driver"
 	depends on DM_GPIO
@@ -79,6 +100,30 @@
 	  example on Microblaze where reset logic can be controlled via GPIO
 	  pin which triggers cpu reset.
 
+config SPL_SYSRESET_GPIO
+	bool "Enable support for GPIO reset driver in SPL"
+	depends on DM_GPIO && SPL
+	help
+	  Reset support via GPIO pin connected reset logic in SPL. This is used
+	  for example on Microblaze where reset logic can be controlled via
+	  GPIO pin which triggers cpu reset.
+
+config TPL_SYSRESET_GPIO
+	bool "Enable support for GPIO reset driver in TPL"
+	depends on DM_GPIO && TPL
+	help
+	  Reset support via GPIO pin connected reset logic in TPL. This is used
+	  for example on Microblaze where reset logic can be controlled via
+	  GPIO pin which triggers cpu reset.
+
+config VPL_SYSRESET_GPIO
+	bool "Enable support for GPIO reset driver in VPL"
+	depends on DM_GPIO && VPL
+	help
+	  Reset support via GPIO pin connected reset logic in VPL. This is used
+	  for example on Microblaze where reset logic can be controlled via
+	  GPIO pin which triggers cpu reset.
+
 config SYSRESET_MAX77663
 	bool "Enable support for MAX77663 PMIC System Reset"
 	depends on DM_PMIC_MAX77663