aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-s3c24xx/s3c2412-iotiming.c
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/s3c2412-iotiming.c
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/s3c2412-iotiming.c')
-rw-r--r--arch/arm/plat-s3c24xx/s3c2412-iotiming.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/plat-s3c24xx/s3c2412-iotiming.c b/arch/arm/plat-s3c24xx/s3c2412-iotiming.c
index a3648cba0eb9..fd45e47facbc 100644
--- a/arch/arm/plat-s3c24xx/s3c2412-iotiming.c
+++ b/arch/arm/plat-s3c24xx/s3c2412-iotiming.c
@@ -16,6 +16,7 @@
16#include <linux/interrupt.h> 16#include <linux/interrupt.h>
17#include <linux/ioport.h> 17#include <linux/ioport.h>
18#include <linux/cpufreq.h> 18#include <linux/cpufreq.h>
19#include <linux/seq_file.h>
19#include <linux/sysdev.h> 20#include <linux/sysdev.h>
20#include <linux/delay.h> 21#include <linux/delay.h>
21#include <linux/clk.h> 22#include <linux/clk.h>
@@ -109,6 +110,29 @@ static int s3c2412_calc_bank(struct s3c_cpufreq_config *cfg,
109} 110}
110 111
111/** 112/**
113 * s3c2412_iotiming_debugfs - debugfs show io bank timing information
114 * @seq: The seq_file to write output to using seq_printf().
115 * @cfg: The current configuration.
116 * @iob: The IO bank information to decode.
117*/
118void s3c2412_iotiming_debugfs(struct seq_file *seq,
119 struct s3c_cpufreq_config *cfg,
120 union s3c_iobank *iob)
121{
122 struct s3c2412_iobank_timing *bt = iob->io_2412;
123
124 seq_printf(seq,
125 "\tRead: idcy=%d.%d wstrd=%d.%d wstwr=%d,%d"
126 "wstoen=%d.%d wstwen=%d.%d wstbrd=%d.%d\n",
127 print_ns(bt->idcy),
128 print_ns(bt->wstrd),
129 print_ns(bt->wstwr),
130 print_ns(bt->wstoen),
131 print_ns(bt->wstwen),
132 print_ns(bt->wstbrd));
133}
134
135/**
112 * s3c2412_iotiming_calc - calculate all the bank divisor settings. 136 * s3c2412_iotiming_calc - calculate all the bank divisor settings.
113 * @cfg: The current frequency configuration. 137 * @cfg: The current frequency configuration.
114 * @iot: The bank timing information. 138 * @iot: The bank timing information.