Skip to content

Commit

Permalink
ARM: 6453/1: sa1100: Print the value of RTSR on /proc/drivers/rtc.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marcelo Roberto Jimenez authored and Russell King committed Nov 10, 2010
1 parent a404ad1 commit fd3ee6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/rtc/rtc-sa1100.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ static int sa1100_rtc_proc(struct device *dev, struct seq_file *seq)
seq_printf(seq, "periodic_IRQ\t: %s\n",
(OIER & OIER_E1) ? "yes" : "no");
seq_printf(seq, "periodic_freq\t: %ld\n", rtc_freq);
seq_printf(seq, "RTSR\t\t: 0x%08x\n", (u32)RTSR);

return 0;
}
Expand Down

0 comments on commit fd3ee6d

Please sign in to comment.