diff mbox series

[1/3] cmd/Kconfig: CONFIG_CMD_CLK should depend on CONFIG_CLK

Message ID 20240909234530.27570-2-heinrich.schuchardt@canonical.com
State New
Delegated to: Sean Anderson
Headers show
Series cmd: clk: simplify clk command | expand

Commit Message

Heinrich Schuchardt Sept. 9, 2024, 11:45 p.m. UTC
The clk command cannot provide useful output without a clock driver.
So let it depend on CONFIG_CLK.

Since commit 258c1002383e ("cmd: clk: Use dump function from clk_ops")
the remark about deprecation is obsolete. Remove it.

Since commit 7ab418fbe612 ("clk: add support for setting clk rate from
cmdline") the clk command can be used to set clock frequencies. Mention
it.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
 cmd/Kconfig | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/cmd/Kconfig b/cmd/Kconfig
index 43f78a5aeb1..f1ab7c2cb92 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1084,13 +1084,10 @@  config CMD_BIND
 	  gadget driver from the command line.
 
 config CMD_CLK
-	bool "clk - Show clock frequencies"
+	bool "clk - Show and set clock frequencies"
+	depends on CLK
 	help
-	  (deprecated)
-	  Shows clock frequences by calling a sock_clk_dump() hook function.
-	  This is depreated in favour of using the CLK uclass and accessing
-	  clock values from associated drivers. However currently no command
-	  exists for this.
+	  Show and set clock frequencies managed by CLK uclass drivers.
 
 config CMD_DEMO
 	bool "demo - Demonstration commands for driver model"