[U-Boot] [PATCH v3 9/9] cmd: move CONFIG_CMD_CLK to Kconfig

Philipp Tomsich philipp.tomsich at theobroma-systems.com
Wed Mar 1 21:20:08 UTC 2017


The CMD_CLK configuration allows the clk-command today (having only
the 'clk dump' action for printing the clock configuration using a
per-SoC weak function).

It is currently only selected by ZYNC and PIC32. To make it easier
to use this command for other platforms and to select it via defconfig,
we are moving it into Kconfig.

Given that this is a debug/maintainer command, the default was chosen
as 'n' and thus should cause no warning messages to board that still
enable it in their respective header files.

Signed-off-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
---
 cmd/Kconfig | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/cmd/Kconfig b/cmd/Kconfig
index ef53156..119a600 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -144,6 +144,16 @@ config CMD_CONSOLE
 	help
 	  Print console devices and information.
 
+config CMD_CLK
+        bool "clk"
+	default n
+	help
+	  Print information about clocks.
+
+	  This normally shows a list of clocks and their current
+	  configuration.  The implementation and details of the output
+	  are manufacturer specific.
+
 config CMD_CPU
 	bool "cpu"
 	help
-- 
1.9.1



More information about the U-Boot mailing list