summaryrefslogtreecommitdiff
path: root/drivers/clk/hisilicon/Kconfig
diff options
context:
space:
mode:
authorLeo Yan <leo.yan@linaro.org>2015-09-02 10:57:47 +0800
committerStephen Boyd <sboyd@codeaurora.org>2015-09-03 10:44:55 -0700
commit9f42a89da6b4dc015631e01ba990d3db2cae2a1b (patch)
tree6a98c767d80323c6eeea5c7c7ec7e4ca98c20b79 /drivers/clk/hisilicon/Kconfig
parentac0e137ab0da80e8fc0db2027598e2f7f82a5a02 (diff)
clk: Hi6220: separately build stub clock driver
The previous code, kernel builds Hi6220's common clock driver and stub clock driver together. Stub clock driver has introduced the dependency with CONFIG_MAILBOX, so kernel will not build Hi6220's common clock driver due ARM64's defconfig have not enabled CONFIG_MAILBOX by default. So separately build stub clock driver and common clock driver for Hi6220; and only let stub clock driver has the dependency with CONFIG_MAILBOX. Signed-off-by: Leo Yan <leo.yan@linaro.org> Tested-by: Kevin Hilman <khilman@linaro.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/hisilicon/Kconfig')
-rw-r--r--drivers/clk/hisilicon/Kconfig8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/clk/hisilicon/Kconfig b/drivers/clk/hisilicon/Kconfig
index 2c16807341dc..e43485448612 100644
--- a/drivers/clk/hisilicon/Kconfig
+++ b/drivers/clk/hisilicon/Kconfig
@@ -1,6 +1,12 @@
config COMMON_CLK_HI6220
bool "Hi6220 Clock Driver"
- depends on (ARCH_HISI || COMPILE_TEST) && MAILBOX
+ depends on ARCH_HISI || COMPILE_TEST
default ARCH_HISI
help
Build the Hisilicon Hi6220 clock driver based on the common clock framework.
+
+config STUB_CLK_HI6220
+ bool "Hi6220 Stub Clock Driver"
+ depends on COMMON_CLK_HI6220 && MAILBOX
+ help
+ Build the Hisilicon Hi6220 stub clock driver.