summaryrefslogtreecommitdiff
path: root/drivers/reboot-mode/Makefile
diff options
context:
space:
mode:
authorNandor Han <[email protected]>2021-06-10 16:56:43 +0300
committerTom Rini <[email protected]>2021-07-23 10:16:39 -0400
commit2541ce2c1af87f74a9feb35a1cbfc20ff8d04e4b (patch)
tree916abd832f987163a13630c9442fc3857f9aeb8f /drivers/reboot-mode/Makefile
parentf534d93cbf34f1d1762b04eb5680e84bef5e1fe1 (diff)
reboot-mode: add support for reboot mode control
A new driver uclass is created to handle the reboot mode control. The new uclass driver is updating an environment variable with the configured reboot mode. The mode is extracted from a map provided at initialization time. The map contains a list of modes and associated ids. Signed-off-by: Nandor Han <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'drivers/reboot-mode/Makefile')
-rw-r--r--drivers/reboot-mode/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/reboot-mode/Makefile b/drivers/reboot-mode/Makefile
new file mode 100644
index 00000000000..2ab0fddac9e
--- /dev/null
+++ b/drivers/reboot-mode/Makefile
@@ -0,0 +1,7 @@
+#
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Copyright (c), Vaisala Oyj
+#
+
+obj-$(CONFIG_DM_REBOOT_MODE) += reboot-mode-uclass.o