Nandor Han | ca6d5ad | 2021-06-10 16:56:43 +0300 | [diff] [blame] | 1 | # |
| 2 | # SPDX-License-Identifier: GPL-2.0+ |
| 3 | # |
| 4 | # Copyright (c), Vaisala Oyj |
| 5 | # |
| 6 | |
| 7 | menu "Reboot Mode Support" |
| 8 | |
| 9 | config DM_REBOOT_MODE |
| 10 | bool "Enable reboot mode using Driver Model" |
| 11 | depends on DM |
Nandor Han | ca6d5ad | 2021-06-10 16:56:43 +0300 | [diff] [blame] | 12 | help |
| 13 | Enable support for reboot mode control. This will allow users to |
| 14 | adjust the boot process based on reboot mode parameter |
| 15 | passed to U-Boot. |
| 16 | |
Nandor Han | 6521e5d | 2021-06-10 16:56:44 +0300 | [diff] [blame] | 17 | config DM_REBOOT_MODE_GPIO |
| 18 | bool "Use GPIOs as reboot mode backend" |
| 19 | depends on DM_REBOOT_MODE |
Nandor Han | 6521e5d | 2021-06-10 16:56:44 +0300 | [diff] [blame] | 20 | help |
| 21 | Use GPIOs to control the reboot mode. This will allow users to boot |
| 22 | a device in a specific mode by using a GPIO that can be controlled |
| 23 | outside U-Boot. |
| 24 | |
Nandor Han | 7e4067a | 2021-06-10 16:56:45 +0300 | [diff] [blame] | 25 | config DM_REBOOT_MODE_RTC |
| 26 | bool "Use RTC as reboot mode backend" |
Heinrich Schuchardt | f8c7010 | 2024-04-09 20:44:22 +0200 | [diff] [blame] | 27 | depends on DM_RTC |
Nandor Han | 7e4067a | 2021-06-10 16:56:45 +0300 | [diff] [blame] | 28 | depends on DM_REBOOT_MODE |
Nandor Han | 7e4067a | 2021-06-10 16:56:45 +0300 | [diff] [blame] | 29 | help |
| 30 | Use RTC non volatile memory to control the reboot mode. This will allow users to boot |
| 31 | a device in a specific mode by using a register(s) that can be controlled |
| 32 | outside U-Boot (e.g. Kernel). |
| 33 | |
Sean Anderson | 723d090 | 2022-12-02 11:03:53 -0500 | [diff] [blame] | 34 | config REBOOT_MODE_NVMEM |
| 35 | bool "Use NVMEM reboot mode" |
| 36 | depends on DM_REBOOT_MODE && NVMEM |
| 37 | help |
| 38 | Use any kind of non-volatile memory (EEPROM, RTC, etc) to control the |
| 39 | reboot mode. |
| 40 | |
Nandor Han | ca6d5ad | 2021-06-10 16:56:43 +0300 | [diff] [blame] | 41 | endmenu |