aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Roberto Jimenez <mroberto@cpti.cetuc.puc-rio.br>2010-10-18 17:34:47 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-11-10 08:34:26 -0500
commitfd3ee6d3421bc05ce42ee7f48071aee72051af28 (patch)
treecdce4b0eee1f854ce6becc143ce719b7b7bc80c2
parenta404ad1ff593589bdd34c48ebecddada9edbfaf3 (diff)
ARM: 6453/1: sa1100: Print the value of RTSR on /proc/drivers/rtc.
This patch adds a line to the output of /proc/drivers/rtc to show the value of the RTSR register. It will be used to demonstrate a nasty initialization bug that will be fixed in the sequence. Signed-off-by: Marcelo Roberto Jimenez <mroberto@cpti.cetuc.puc-rio.br> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--drivers/rtc/rtc-sa1100.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-sa1100.c b/drivers/rtc/rtc-sa1100.c
index e19ed0f6dca0..b04c8374a279 100644
--- a/drivers/rtc/rtc-sa1100.c
+++ b/drivers/rtc/rtc-sa1100.c
@@ -334,6 +334,7 @@ static int sa1100_rtc_proc(struct device *dev, struct seq_file *seq)
334 seq_printf(seq, "periodic_IRQ\t: %s\n", 334 seq_printf(seq, "periodic_IRQ\t: %s\n",
335 (OIER & OIER_E1) ? "yes" : "no"); 335 (OIER & OIER_E1) ? "yes" : "no");
336 seq_printf(seq, "periodic_freq\t: %ld\n", rtc_freq); 336 seq_printf(seq, "periodic_freq\t: %ld\n", rtc_freq);
337 seq_printf(seq, "RTSR\t\t: 0x%08x\n", (u32)RTSR);
337 338
338 return 0; 339 return 0;
339} 340}