blob: 2eaf17ed2791d93cd2446ef4d5ea9dfbf9015704 [file] [log] [blame]
Jean-Christop PLAGNIOL-VILLARD6d803ba2010-11-17 10:04:33 +01001
2config CLKDEV_LOOKUP
3 bool
4 select HAVE_CLK
Kyungmin Parkaa3831c2011-07-18 16:34:54 +09005
Shawn Guo5c77f562011-12-20 14:46:38 +08006config HAVE_CLK_PREPARE
7 bool
8
Kyungmin Parkaa3831c2011-07-18 16:34:54 +09009config HAVE_MACH_CLKDEV
10 bool
Mike Turquetteb24764902012-03-15 23:11:19 -070011
12menuconfig COMMON_CLK
13 bool "Common Clock Framework"
14 select HAVE_CLK_PREPARE
15 ---help---
16 The common clock framework is a single definition of struct
17 clk, useful across many platforms, as well as an
18 implementation of the clock API in include/linux/clk.h.
19 Architectures utilizing the common struct clk should select
20 this automatically, but it may be necessary to manually select
21 this option for loadable modules requiring the common clock
22 framework.
23
24 If in doubt, say "N".
25
26if COMMON_CLK
27
28config COMMON_CLK_DISABLE_UNUSED
29 bool "Disabled unused clocks at boot"
30 depends on COMMON_CLK
31 ---help---
32 Traverses the entire clock tree and disables any clocks that are
33 enabled in hardware but have not been enabled by any device drivers.
34 This saves power and keeps the software model of the clock in line
35 with reality.
36
37 If in doubt, say "N".
38
39config COMMON_CLK_DEBUG
40 bool "DebugFS representation of clock tree"
41 depends on COMMON_CLK
42 select DEBUG_FS
43 ---help---
44 Creates a directory hierchy in debugfs for visualizing the clk
45 tree structure. Each directory contains read-only members
46 that export information specific to that clk node: clk_rate,
47 clk_flags, clk_prepare_count, clk_enable_count &
48 clk_notifier_count.
49
50endif