aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2014-07-01 10:58:40 -0400
committerMaxime Ripard <maxime.ripard@free-electrons.com>2014-07-15 07:40:32 -0400
commit6ca4f46005dd7934308588d8e4d73637bbaef7ad (patch)
tree1122921fe19d01103aad5b62cfd5efdc5153884a /drivers/power
parentb736bcb3d8fe6182d12feb0412106802d80b4527 (diff)
power: reset: Add if statement instead of multiple depends on
All the config option so far are depending on the POWER_RESET symbol Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/reset/Kconfig17
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig
index bdcf5173e377..19d546c5edfa 100644
--- a/drivers/power/reset/Kconfig
+++ b/drivers/power/reset/Kconfig
@@ -6,15 +6,17 @@ menuconfig POWER_RESET
6 6
7 Say Y here to enable board reset and power off 7 Say Y here to enable board reset and power off
8 8
9if POWER_RESET
10
9config POWER_RESET_AS3722 11config POWER_RESET_AS3722
10 bool "ams AS3722 power-off driver" 12 bool "ams AS3722 power-off driver"
11 depends on MFD_AS3722 && POWER_RESET 13 depends on MFD_AS3722
12 help 14 help
13 This driver supports turning off board via a ams AS3722 power-off. 15 This driver supports turning off board via a ams AS3722 power-off.
14 16
15config POWER_RESET_AXXIA 17config POWER_RESET_AXXIA
16 bool "LSI Axxia reset driver" 18 bool "LSI Axxia reset driver"
17 depends on POWER_RESET && ARCH_AXXIA 19 depends on ARCH_AXXIA
18 help 20 help
19 This driver supports restart for Axxia SoC. 21 This driver supports restart for Axxia SoC.
20 22
@@ -22,7 +24,7 @@ config POWER_RESET_AXXIA
22 24
23config POWER_RESET_GPIO 25config POWER_RESET_GPIO
24 bool "GPIO power-off driver" 26 bool "GPIO power-off driver"
25 depends on OF_GPIO && POWER_RESET 27 depends on OF_GPIO
26 help 28 help
27 This driver supports turning off your board via a GPIO line. 29 This driver supports turning off your board via a GPIO line.
28 If your board needs a GPIO high/low to power down, say Y and 30 If your board needs a GPIO high/low to power down, say Y and
@@ -30,13 +32,13 @@ config POWER_RESET_GPIO
30 32
31config POWER_RESET_MSM 33config POWER_RESET_MSM
32 bool "Qualcomm MSM power-off driver" 34 bool "Qualcomm MSM power-off driver"
33 depends on POWER_RESET && ARCH_QCOM 35 depends on ARCH_QCOM
34 help 36 help
35 Power off and restart support for Qualcomm boards. 37 Power off and restart support for Qualcomm boards.
36 38
37config POWER_RESET_QNAP 39config POWER_RESET_QNAP
38 bool "QNAP power-off driver" 40 bool "QNAP power-off driver"
39 depends on OF_GPIO && POWER_RESET && PLAT_ORION 41 depends on OF_GPIO && PLAT_ORION
40 help 42 help
41 This driver supports turning off QNAP NAS devices by sending 43 This driver supports turning off QNAP NAS devices by sending
42 commands to the microcontroller which controls the main power. 44 commands to the microcontroller which controls the main power.
@@ -54,14 +56,13 @@ config POWER_RESET_RESTART
54config POWER_RESET_SUN6I 56config POWER_RESET_SUN6I
55 bool "Allwinner A31 SoC reset driver" 57 bool "Allwinner A31 SoC reset driver"
56 depends on ARCH_SUNXI 58 depends on ARCH_SUNXI
57 depends on POWER_RESET
58 help 59 help
59 Reboot support for the Allwinner A31 SoCs. 60 Reboot support for the Allwinner A31 SoCs.
60 61
61config POWER_RESET_VEXPRESS 62config POWER_RESET_VEXPRESS
62 bool "ARM Versatile Express power-off and reset driver" 63 bool "ARM Versatile Express power-off and reset driver"
63 depends on ARM || ARM64 64 depends on ARM || ARM64
64 depends on POWER_RESET && VEXPRESS_CONFIG 65 depends on VEXPRESS_CONFIG
65 help 66 help
66 Power off and reset support for the ARM Ltd. Versatile 67 Power off and reset support for the ARM Ltd. Versatile
67 Express boards. 68 Express boards.
@@ -69,7 +70,6 @@ config POWER_RESET_VEXPRESS
69config POWER_RESET_XGENE 70config POWER_RESET_XGENE
70 bool "APM SoC X-Gene reset driver" 71 bool "APM SoC X-Gene reset driver"
71 depends on ARM64 72 depends on ARM64
72 depends on POWER_RESET
73 help 73 help
74 Reboot support for the APM SoC X-Gene Eval boards. 74 Reboot support for the APM SoC X-Gene Eval boards.
75 75
@@ -80,3 +80,4 @@ config POWER_RESET_KEYSTONE
80 help 80 help
81 Reboot support for the KEYSTONE SoCs. 81 Reboot support for the KEYSTONE SoCs.
82 82
83endif