blob: c74c3f67b8da01fad62328ca31f8c9b8bb09c794 [file] [log] [blame]
Jamie Lentin96ff0f52012-11-17 09:51:04 +01001menuconfig POWER_RESET
2 bool "Board level reset or power off"
3 help
4 Provides a number of drivers which either reset a complete board
5 or shut it down, by manipulating the main power supply on the board.
6
7 Say Y here to enable board reset and power off
8
Maxime Ripard6ca4f4602014-07-01 16:58:40 +02009if POWER_RESET
10
Laxman Dewangan56fb8de2013-12-20 18:54:00 +053011config POWER_RESET_AS3722
12 bool "ams AS3722 power-off driver"
Maxime Ripard6ca4f4602014-07-01 16:58:40 +020013 depends on MFD_AS3722
Laxman Dewangan56fb8de2013-12-20 18:54:00 +053014 help
15 This driver supports turning off board via a ams AS3722 power-off.
16
Maxime Ripardae499f02014-07-03 14:07:18 +020017config POWER_RESET_AT91_POWEROFF
Alexandre Belloni6dd1ad12015-08-11 11:12:49 +020018 tristate "Atmel AT91 poweroff driver"
Nicolas Ferre94d450e2014-09-01 10:26:04 +020019 depends on ARCH_AT91
Maxime Ripardae499f02014-07-03 14:07:18 +020020 default SOC_AT91SAM9 || SOC_SAMA5
21 help
22 This driver supports poweroff for Atmel AT91SAM9 and SAMA5
23 SoCs
24
Maxime Ripardecfe64d2014-07-02 17:46:58 +020025config POWER_RESET_AT91_RESET
Alexandre Belloni6e641802015-08-11 11:12:47 +020026 tristate "Atmel AT91 reset driver"
Nicolas Ferre94d450e2014-09-01 10:26:04 +020027 depends on ARCH_AT91
Maxime Ripardecfe64d2014-07-02 17:46:58 +020028 default SOC_AT91SAM9 || SOC_SAMA5
29 help
30 This driver supports restart for Atmel AT91SAM9 and SAMA5
31 SoCs
32
Nicolas Ferref80cb482016-03-16 14:19:50 +010033config POWER_RESET_AT91_SAMA5D2_SHDWC
34 tristate "Atmel AT91 SAMA5D2-Compatible shutdown controller driver"
35 depends on ARCH_AT91 || COMPILE_TEST
36 default SOC_SAMA5
37 help
38 This driver supports the alternate shutdown controller for some Atmel
39 SAMA5 SoCs. It is present for example on SAMA5D2 SoC.
40
Anders Berg4a315e32014-05-23 11:08:38 +020041config POWER_RESET_AXXIA
42 bool "LSI Axxia reset driver"
Maxime Ripard6ca4f4602014-07-01 16:58:40 +020043 depends on ARCH_AXXIA
Anders Berg4a315e32014-05-23 11:08:38 +020044 help
45 This driver supports restart for Axxia SoC.
46
47 Say Y if you have an Axxia family SoC.
48
Chris Brand783cb942016-05-11 14:36:17 -070049config POWER_RESET_BRCMKONA
50 bool "Broadcom Kona reset driver"
51 depends on ARM || COMPILE_TEST
52 default ARCH_BCM_MOBILE
53 help
54 This driver provides restart support for Broadcom Kona chips.
55
56 Say Y here if you have a Broadcom Kona-based board and you wish
57 to have restart support.
58
Marc Carino030494e2014-07-22 16:48:03 -070059config POWER_RESET_BRCMSTB
Kevin Cernekee4f5fd642014-11-25 16:49:46 -080060 bool "Broadcom STB reset driver"
61 depends on ARM || MIPS || COMPILE_TEST
Florian Fainelli0a731252015-04-30 12:55:02 -070062 depends on MFD_SYSCON
Marc Carino030494e2014-07-22 16:48:03 -070063 default ARCH_BRCMSTB
64 help
Kevin Cernekee4f5fd642014-11-25 16:49:46 -080065 This driver provides restart support for Broadcom STB boards.
Marc Carino030494e2014-07-22 16:48:03 -070066
Kevin Cernekee4f5fd642014-11-25 16:49:46 -080067 Say Y here if you have a Broadcom STB board and you wish
Marc Carino030494e2014-07-22 16:48:03 -070068 to have restart support.
69
Jamie Lentin96ff0f52012-11-17 09:51:04 +010070config POWER_RESET_GPIO
71 bool "GPIO power-off driver"
Maxime Ripard6ca4f4602014-07-01 16:58:40 +020072 depends on OF_GPIO
Jamie Lentin96ff0f52012-11-17 09:51:04 +010073 help
74 This driver supports turning off your board via a GPIO line.
75 If your board needs a GPIO high/low to power down, say Y and
76 create a binding in your devicetree.
Andrew Lunne8fc7212012-12-28 13:25:09 +010077
David Riley371bb202014-08-27 12:23:51 -070078config POWER_RESET_GPIO_RESTART
79 bool "GPIO restart driver"
Linus Torvalds50fa8612014-10-15 06:56:23 +020080 depends on OF_GPIO
David Riley371bb202014-08-27 12:23:51 -070081 help
82 This driver supports restarting your board via a GPIO line.
83 If your board needs a GPIO high/low to restart, say Y and
84 create a binding in your devicetree.
85
Haojian Zhuang4a9b3732014-05-13 17:11:28 +080086config POWER_RESET_HISI
87 bool "Hisilicon power-off driver"
Linus Torvalds50fa8612014-10-15 06:56:23 +020088 depends on ARCH_HISI
Haojian Zhuang4a9b3732014-05-13 17:11:28 +080089 help
90 Reboot support for Hisilicon boards.
91
Robin Gong3db47dc2014-11-12 16:20:38 +080092config POWER_RESET_IMX
93 bool "IMX6 power-off driver"
94 depends on POWER_RESET && SOC_IMX6
95 help
96 This driver support power off external PMIC by PMIC_ON_REQ on i.mx6
97 boards.If you want to use other pin to control external power,please
98 say N here or disable in dts to make sure pm_power_off never be
99 overwrote wrongly by this driver.
100
Abhimanyu Kapur78be3172013-07-30 17:05:28 -0700101config POWER_RESET_MSM
102 bool "Qualcomm MSM power-off driver"
Maxime Ripard6ca4f4602014-07-01 16:58:40 +0200103 depends on ARCH_QCOM
Abhimanyu Kapur78be3172013-07-30 17:05:28 -0700104 help
105 Power off and restart support for Qualcomm boards.
106
René Moll66471562014-08-08 13:12:17 +0000107config POWER_RESET_LTC2952
108 bool "LTC2952 PowerPath power-off driver"
Linus Torvalds50fa8612014-10-15 06:56:23 +0200109 depends on OF_GPIO
René Moll66471562014-08-08 13:12:17 +0000110 help
111 This driver supports an external powerdown trigger and board power
112 down via the LTC2952. Bindings are made in the device tree.
113
Andrew Lunne8fc7212012-12-28 13:25:09 +0100114config POWER_RESET_QNAP
115 bool "QNAP power-off driver"
Maxime Ripard6ca4f4602014-07-01 16:58:40 +0200116 depends on OF_GPIO && PLAT_ORION
Andrew Lunne8fc7212012-12-28 13:25:09 +0100117 help
118 This driver supports turning off QNAP NAS devices by sending
119 commands to the microcontroller which controls the main power.
120
121 Say Y if you have a QNAP NAS.
Andrew Lunnffd8f9a2012-12-28 13:25:11 +0100122
123config POWER_RESET_RESTART
124 bool "Restart power-off driver"
Andrew Lunnffd8f9a2012-12-28 13:25:11 +0100125 help
126 Some boards don't actually have the ability to power off.
127 Instead they restart, and u-boot holds the SoC until the
128 user presses a key. u-boot then boots into Linux.
Catalin Marinas2655f512013-01-15 11:24:14 +0000129
Lee Jonesf0745f32014-07-22 15:52:28 +0100130config POWER_RESET_ST
Guenter Roeck7fa650bc2015-01-25 12:30:44 -0800131 bool "ST restart driver"
Linus Torvalds50fa8612014-10-15 06:56:23 +0200132 depends on ARCH_STI
Lee Jonesf0745f32014-07-22 15:52:28 +0100133 help
Guenter Roeck7fa650bc2015-01-25 12:30:44 -0800134 Reset support for STMicroelectronics boards.
Lee Jonesf0745f32014-07-22 15:52:28 +0100135
Linus Walleij0e545f52014-05-22 10:20:38 +0200136config POWER_RESET_VERSATILE
137 bool "ARM Versatile family reboot driver"
138 depends on ARM
139 depends on MFD_SYSCON
140 depends on OF
141 help
142 Power off and restart support for ARM Versatile family of
143 reference boards.
144
Catalin Marinas2655f512013-01-15 11:24:14 +0000145config POWER_RESET_VEXPRESS
Pawel Mollb52eafc2013-06-10 16:12:01 +0100146 bool "ARM Versatile Express power-off and reset driver"
147 depends on ARM || ARM64
Maxime Ripard6ca4f4602014-07-01 16:58:40 +0200148 depends on VEXPRESS_CONFIG
Catalin Marinas2655f512013-01-15 11:24:14 +0000149 help
150 Power off and reset support for the ARM Ltd. Versatile
151 Express boards.
Loc Ho67778e0e2013-07-02 14:38:58 -0600152
153config POWER_RESET_XGENE
154 bool "APM SoC X-Gene reset driver"
155 depends on ARM64
Loc Ho67778e0e2013-07-02 14:38:58 -0600156 help
157 Reboot support for the APM SoC X-Gene Eval boards.
Ivan Khoronzhuka3e01e82014-05-23 16:32:39 -0400158
159config POWER_RESET_KEYSTONE
160 bool "Keystone reset driver"
Krzysztof Kozlowskie771e0a2016-03-30 09:49:48 +0900161 depends on ARCH_KEYSTONE || COMPILE_TEST
162 depends on HAS_IOMEM
Ivan Khoronzhuka3e01e82014-05-23 16:32:39 -0400163 select MFD_SYSCON
164 help
165 Reboot support for the KEYSTONE SoCs.
166
Feng Kan09fb07b2014-09-30 16:25:03 -0700167config POWER_RESET_SYSCON
168 bool "Generic SYSCON regmap reset driver"
Linus Torvalds50fa8612014-10-15 06:56:23 +0200169 depends on OF
Richard Weinberger4f4bfe62016-01-25 23:24:00 +0100170 depends on HAS_IOMEM
Feng Kanafaebbd2014-10-02 11:24:15 -0700171 select MFD_SYSCON
Feng Kan09fb07b2014-09-30 16:25:03 -0700172 help
173 Reboot support for generic SYSCON mapped register reset.
Linus Torvalds50fa8612014-10-15 06:56:23 +0200174
Moritz Fischer8a577602015-03-11 17:37:18 -0700175config POWER_RESET_SYSCON_POWEROFF
176 bool "Generic SYSCON regmap poweroff driver"
177 depends on OF
Richard Weinberger4f4bfe62016-01-25 23:24:00 +0100178 depends on HAS_IOMEM
Moritz Fischer8a577602015-03-11 17:37:18 -0700179 select MFD_SYSCON
180 help
181 Poweroff support for generic SYSCON mapped register poweroff.
182
Geert Uytterhoevenfa0f8d62014-12-04 16:33:21 +0100183config POWER_RESET_RMOBILE
184 tristate "Renesas R-Mobile reset driver"
185 depends on ARCH_RMOBILE || COMPILE_TEST
Richard Weinberger039ab502015-03-16 22:27:08 +0100186 depends on HAS_IOMEM
Geert Uytterhoevenfa0f8d62014-12-04 16:33:21 +0100187 help
188 Reboot support for Renesas R-Mobile and SH-Mobile SoCs.
189
Jun Niedd9f1482015-07-15 11:25:58 +0800190config POWER_RESET_ZX
191 tristate "ZTE SoCs reset driver"
192 depends on ARCH_ZX || COMPILE_TEST
193 depends on HAS_IOMEM
194 help
195 Reboot support for ZTE SoCs.
196
Andy Yan4fcd5042016-07-06 21:27:26 +0800197config REBOOT_MODE
198 tristate
199
200config SYSCON_REBOOT_MODE
201 tristate "Generic SYSCON regmap reboot mode driver"
202 depends on OF
Andy Yan7a4947c2016-08-12 18:01:50 +0800203 depends on MFD_SYSCON
Andy Yan4fcd5042016-07-06 21:27:26 +0800204 select REBOOT_MODE
Andy Yan4fcd5042016-07-06 21:27:26 +0800205 help
206 Say y here will enable reboot mode driver. This will
207 get reboot mode arguments and store it in SYSCON mapped
208 register, then the bootloader can read it to take different
209 action according to the mode.
210
Maxime Ripard6ca4f4602014-07-01 16:58:40 +0200211endif
Linus Torvalds50fa8612014-10-15 06:56:23 +0200212