4735f845bee741af362cee61b8670cdf85e82431
[openwrt/staging/lynxis.git] / target / linux / mediatek / patches-4.14 / 0123-soc-mediatek-place-Kconfig-for-all-SoC-drivers-under.patch
1 From 21501b17e017cb10f1a64a73e62e3e2e91a52efa Mon Sep 17 00:00:00 2001
2 From: Sean Wang <sean.wang@mediatek.com>
3 Date: Thu, 5 Oct 2017 11:17:49 +0800
4 Subject: [PATCH 123/224] soc: mediatek: place Kconfig for all SoC drivers
5 under menu
6
7 Add cleanup for placing all Kconfig for all MediaTek SoC drivers under
8 the independent menu as other SoCs vendor usually did. Since the menu
9 would be shown depending on "ARCH_MEDIATEK || COMPILE_TEST" selected and
10 MTK_PMIC_WRAP is still safe compiling with the case of "COMPILE_TEST"
11 only, the superfluous dependency for those items under the menu also is
12 also being removed for the sake of simplicity.
13
14 Signed-off-by: Sean Wang <sean.wang@mediatek.com>
15 Reviewed-by: Jean Delvare <jdelvare@suse.de>
16 Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
17 ---
18 drivers/soc/mediatek/Kconfig | 8 +++++---
19 1 file changed, 5 insertions(+), 3 deletions(-)
20
21 diff --git a/drivers/soc/mediatek/Kconfig b/drivers/soc/mediatek/Kconfig
22 index 609bb3424c14..a7d0667338f2 100644
23 --- a/drivers/soc/mediatek/Kconfig
24 +++ b/drivers/soc/mediatek/Kconfig
25 @@ -1,9 +1,11 @@
26 #
27 # MediaTek SoC drivers
28 #
29 +menu "MediaTek SoC drivers"
30 + depends on ARCH_MEDIATEK || COMPILE_TEST
31 +
32 config MTK_INFRACFG
33 bool "MediaTek INFRACFG Support"
34 - depends on ARCH_MEDIATEK || COMPILE_TEST
35 select REGMAP
36 help
37 Say yes here to add support for the MediaTek INFRACFG controller. The
38 @@ -12,7 +14,6 @@ config MTK_INFRACFG
39
40 config MTK_PMIC_WRAP
41 tristate "MediaTek PMIC Wrapper Support"
42 - depends on ARCH_MEDIATEK
43 depends on RESET_CONTROLLER
44 select REGMAP
45 help
46 @@ -22,7 +23,6 @@ config MTK_PMIC_WRAP
47
48 config MTK_SCPSYS
49 bool "MediaTek SCPSYS Support"
50 - depends on ARCH_MEDIATEK || COMPILE_TEST
51 default ARCH_MEDIATEK
52 select REGMAP
53 select MTK_INFRACFG
54 @@ -30,3 +30,5 @@ config MTK_SCPSYS
55 help
56 Say yes here to add support for the MediaTek SCPSYS power domain
57 driver.
58 +
59 +endmenu
60 --
61 2.11.0
62