aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-s3c24xx/include
diff options
context:
space:
mode:
authorBen Dooks <ben@simtec.co.uk>2009-07-30 18:23:42 -0400
committerBen Dooks <ben-linux@fluff.org>2009-07-30 18:22:56 -0400
commite6d197a6954c8a9ff85727c31ca61fc1da78628a (patch)
tree4f83b37f17499111ae9381746b3427996eb75007 /arch/arm/plat-s3c24xx/include
parentdfff4e95d749c414af3f7350835139103408a50d (diff)
ARM: S3C: CPUFREQ: Add debugfs support for cpufreq
Add debugfs support for the cpufreq driver to allow information about the system state to be exported to the user. Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-s3c24xx/include')
-rw-r--r--arch/arm/plat-s3c24xx/include/plat/cpu-freq-core.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/plat-s3c24xx/include/plat/cpu-freq-core.h b/arch/arm/plat-s3c24xx/include/plat/cpu-freq-core.h
index f02b3c06c1e0..efeb025affc7 100644
--- a/arch/arm/plat-s3c24xx/include/plat/cpu-freq-core.h
+++ b/arch/arm/plat-s3c24xx/include/plat/cpu-freq-core.h
@@ -13,6 +13,8 @@
13 13
14#include <plat/cpu-freq.h> 14#include <plat/cpu-freq.h>
15 15
16struct seq_file;
17
16#define MAX_BANKS (8) 18#define MAX_BANKS (8)
17#define S3C2412_MAX_IO (8) 19#define S3C2412_MAX_IO (8)
18 20
@@ -181,6 +183,10 @@ struct s3c_cpufreq_info {
181 struct cpufreq_frequency_table *t, 183 struct cpufreq_frequency_table *t,
182 size_t table_size); 184 size_t table_size);
183 185
186 void (*debug_io_show)(struct seq_file *seq,
187 struct s3c_cpufreq_config *cfg,
188 union s3c_iobank *iob);
189
184 void (*set_refresh)(struct s3c_cpufreq_config *cfg); 190 void (*set_refresh)(struct s3c_cpufreq_config *cfg);
185 void (*set_fvco)(struct s3c_cpufreq_config *cfg); 191 void (*set_fvco)(struct s3c_cpufreq_config *cfg);
186 void (*set_divs)(struct s3c_cpufreq_config *cfg); 192 void (*set_divs)(struct s3c_cpufreq_config *cfg);
@@ -191,6 +197,24 @@ extern int s3c_cpufreq_register(struct s3c_cpufreq_info *info);
191 197
192extern int s3c_plltab_register(struct cpufreq_frequency_table *plls, unsigned int plls_no); 198extern int s3c_plltab_register(struct cpufreq_frequency_table *plls, unsigned int plls_no);
193 199
200/* exports and utilities for debugfs */
201extern struct s3c_cpufreq_config *s3c_cpufreq_getconfig(void);
202extern struct s3c_iotimings *s3c_cpufreq_getiotimings(void);
203
204extern void s3c2410_iotiming_debugfs(struct seq_file *seq,
205 struct s3c_cpufreq_config *cfg,
206 union s3c_iobank *iob);
207
208extern void s3c2412_iotiming_debugfs(struct seq_file *seq,
209 struct s3c_cpufreq_config *cfg,
210 union s3c_iobank *iob);
211
212#ifdef CONFIG_CPU_FREQ_S3C24XX_DEBUGFS
213#define s3c_cpufreq_debugfs_call(x) x
214#else
215#define s3c_cpufreq_debugfs_call(x) NULL
216#endif
217
194/* Useful utility functions. */ 218/* Useful utility functions. */
195 219
196extern struct clk *s3c_cpufreq_clk_get(struct device *, const char *); 220extern struct clk *s3c_cpufreq_clk_get(struct device *, const char *);