summaryrefslogtreecommitdiff
path: root/arch/sh/include/asm/heartbeat.h
diff options
context:
space:
mode:
authorKuninori Morimoto <morimoto.kuninori@renesas.com>2009-08-18 07:00:20 +0000
committerPaul Mundt <lethal@linux-sh.org>2009-08-18 21:16:29 +0900
commite174d13010a6bd52045466bc35ca5a86e3f3ba9b (patch)
tree1ad84c9b48bae21a3a150da7caae5f938abae461 /arch/sh/include/asm/heartbeat.h
parentb2ea8b421515ddd692c88fc5afb0e7f93e96e6cb (diff)
sh: Prevent heartbeat from scribbling over non-LED bits.
While most platforms implement LED banks in sets of 8/16/32, some use different configurations. This adds a LED mask to the heartbeat platform data to allow platforms to constrain the bitmap, which is otherwise derived from the register size. Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/heartbeat.h')
-rw-r--r--arch/sh/include/asm/heartbeat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh/include/asm/heartbeat.h b/arch/sh/include/asm/heartbeat.h
index 724a43ed245e..caaafe5a3ef1 100644
--- a/arch/sh/include/asm/heartbeat.h
+++ b/arch/sh/include/asm/heartbeat.h
@@ -11,6 +11,7 @@ struct heartbeat_data {
unsigned int nr_bits;
struct timer_list timer;
unsigned int regsize;
+ unsigned int mask;
unsigned long flags;
};