Add warm-reboot option support for reset button
Pressing reset button currently issues a reboot transion. However, some
platforms might expect to have force warm reboot instead. This commit
adds new reset-button-do-warm-reboot option to configure the expected
action for reset button on those platforms.
Tested:
- By default, on release of reset button, the Host is powered cycle.
- Enable reset-button-do-warm-reboot meson option. On release of reset
button, the Host is reset while Host power does not change.
Change-Id: I5d5f754f8b848fa0faef97354ef0dab7c47645f4
Signed-off-by: HuyLe <hule@amperecomputing.com>
diff --git a/meson_options.txt b/meson_options.txt
index 8fa5e59..c41ed4b 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -26,3 +26,10 @@
value: 'default',
description : 'Used to select a custom power button behavior profile.'
)
+
+option(
+ 'reset-button-do-warm-reboot',
+ type : 'feature',
+ value : 'disabled',
+ description : 'Enable warm reboot on the reset button'
+)