diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2014-01-09 09:33:49 +0100 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2014-01-09 09:33:49 +0100 |
commit | 4af247f6c360f222f583a7a773be6a204493caa1 (patch) | |
tree | 8d69792c760f6c134fef854e24c7759126da22e1 /arch | |
parent | f9e4905e8ce8459bc4eb56ea8885170e36b849fb (diff) |
colibri_vf: enable/fix clock and power management debug
Enable clock debugging which depends on the power management one and
actually register each clock for easy sysfs debug access:
root@colibri-vf:~# cat /sys/kernel/debug/clock/osc_clk/
pll4_audio_main_clk/rate
1179648000
root@colibri-vf:~# cat /sys/kernel/debug/clock/osc_clk/
pll4_audio_main_clk/pll4_audio_div_clk/rate
147456000
root@colibri-vf:~# cat /sys/kernel/debug/clock/osc_clk/
pll4_audio_main_clk/pll4_audio_div_clk/sai0_clk/rate
147456000
root@colibri-vf:~# cat /sys/kernel/debug/clock/osc_clk/
pll4_audio_main_clk/pll4_audio_div_clk/sai2_clk/rate
24576000
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/configs/colibri_vf_defconfig | 2 | ||||
-rw-r--r-- | arch/arm/mach-mvf/clock.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/configs/colibri_vf_defconfig b/arch/arm/configs/colibri_vf_defconfig index ad37766ac60b..c3a7ecc60d13 100644 --- a/arch/arm/configs/colibri_vf_defconfig +++ b/arch/arm/configs/colibri_vf_defconfig @@ -37,6 +37,7 @@ CONFIG_MACH_COLIBRI_VF50=y CONFIG_MACH_COLIBRI_VF61=y CONFIG_MXC_PWM=y CONFIG_MXC_USE_PIT=y +CONFIG_CLK_DEBUG=y CONFIG_DMA_ZONE_SIZE=16 CONFIG_NO_HZ=y CONFIG_HIGH_RES_TIMERS=y @@ -50,6 +51,7 @@ CONFIG_CPU_IDLE=y CONFIG_VFP=y CONFIG_NEON=y CONFIG_PM_RUNTIME=y +CONFIG_PM_DEBUG=y CONFIG_NET=y CONFIG_PACKET=y CONFIG_UNIX=y diff --git a/arch/arm/mach-mvf/clock.c b/arch/arm/mach-mvf/clock.c index 8ccfce7678a5..7074a1b708b1 100644 --- a/arch/arm/mach-mvf/clock.c +++ b/arch/arm/mach-mvf/clock.c @@ -1944,8 +1944,10 @@ int __init mvf_clocks_init(unsigned long ckil, unsigned long osc, apll_base = MVF_IO_ADDRESS(MVF_ANATOP_BASE_ADDR); - for (i = 0; i < ARRAY_SIZE(lookups); i++) + for (i = 0; i < ARRAY_SIZE(lookups); i++) { clkdev_add(&lookups[i]); + clk_debug_register(lookups[i].clk); + } clk_tree_init(); |