]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
ARM: OMAP: CLKFW: Initial debugfs support for omap clock framework
authorHiroshi DOYU <Hiroshi.DOYU@nokia.com>
Thu, 17 Apr 2008 10:51:34 +0000 (13:51 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 21 Apr 2008 18:39:29 +0000 (11:39 -0700)
commit2b20e4029dc903bf755ff7c21d9801b44bb41811
tree577a723e04760820ab11aa70c9ba4e252228268c
parentbcd5098cfdc487c1701e40b3b8f74f63dfc1b307
ARM: OMAP: CLKFW: Initial debugfs support for omap clock framework

debugfs can provide the infrastructure to trace the dependencies of
clock tree hierarchy quite visibly. This patch enables to keep track
of clock tree hierarchy and expose their attributes under each clock
directry as below:

omap:~# tree -d -L 2 /debug/clock/omap_32k_fck/
/debug/clock/omap_32k_fck/
|-- gpt10_fck
|-- gpt11_fck
|-- gpt1_fck
|-- per_32k_alwon_fck
|   |-- gpio2_fck
|   |-- gpio3_fck
|   |-- gpio4_fck
|   |-- gpio5_fck
|   |-- gpio6_fck
|   `-- wdt3_fck
|-- ts_fck
`-- wkup_32k_fck
    |-- gpio1_fck
    `-- wdt2_fck

14 directories
omap:~# tree  /debug/clock/omap_32k_fck/gpt10_fck/
/debug/clock/omap_32k_fck/gpt10_fck/
|-- flags
|-- rate
`-- usecount

0 directories, 3 files

Although, compared with David Brownell's small patch, this may look
bit overkilling, I expect that this debugfs can deal with other PRCM
complexities at the same time. For example, powerdomain dependencies
can be expressed by using symbolic links of these clocks if
powerdomain supports dubgfs as well.

Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/clock.c
include/asm-arm/arch-omap/clock.h