diff options
author | Eric Miao <eric.miao@canonical.com> | 2011-08-23 22:58:33 +0800 |
---|---|---|
committer | Eric Miao <eric.miao@linaro.org> | 2011-12-19 11:23:25 +0800 |
commit | 308756f8193af342b7f171dfb3ed3bc72b87576a (patch) | |
tree | ef5f5791c1421745410504db839df9138f7356c2 /arch/arm/plat-mxc/include | |
parent | eea8214bbb9a5a56ef4f9dadc9bb446d22ff60f6 (diff) |
imx: add clock debug implementation
Signed-off-by: Yong Shen <yong.shen@linaro.org>
Signed-off-by: Eric Miao <eric.miao@linaro.org>
Diffstat (limited to 'arch/arm/plat-mxc/include')
-rw-r--r-- | arch/arm/plat-mxc/include/mach/clock.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/arm/plat-mxc/include/mach/clock.h b/arch/arm/plat-mxc/include/mach/clock.h index 753a5988d85..2b4bb90a29c 100644 --- a/arch/arm/plat-mxc/include/mach/clock.h +++ b/arch/arm/plat-mxc/include/mach/clock.h @@ -1,5 +1,5 @@ /* - * Copyright 2005-2007 Freescale Semiconductor, Inc. All Rights Reserved. + * Copyright 2005-2011 Freescale Semiconductor, Inc. All Rights Reserved. * Copyright 2008 Juergen Beisert, kernel@pengutronix.de * * This program is free software; you can redistribute it and/or @@ -23,9 +23,14 @@ #ifndef __ASSEMBLY__ #include <linux/list.h> +#define CLK_NAME_LEN 32 struct module; struct clk { +#ifdef CONFIG_CLK_DEBUG + char name[CLK_NAME_LEN]; + struct dentry *dentry; +#endif int id; /* Source clock this clk depends on */ struct clk *parent; @@ -62,5 +67,11 @@ void clk_unregister(struct clk *clk); unsigned long mxc_decode_pll(unsigned int pll, u32 f_ref); +#ifdef CONFIG_CLK_DEBUG +void clk_debug_register(struct clk *clk); +#else +static inline void clk_debug_register(struct clk *clk) {} +#endif + #endif /* __ASSEMBLY__ */ #endif /* __ASM_ARCH_MXC_CLOCK_H__ */ |