summaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/heartbeat.h
diff options
context:
space:
mode:
authorKuninori Morimoto <morimoto.kuninori@renesas.com>2009-08-18 09:00:20 +0200
committerPaul Mundt <lethal@linux-sh.org>2009-08-18 14:16:29 +0200
commite174d13010a6bd52045466bc35ca5a86e3f3ba9b (patch)
tree1ad84c9b48bae21a3a150da7caae5f938abae461 /arch/sh/include/asm/heartbeat.h
parentsh: clkfwk: Support additional IFC divisor on SH7724. (diff)
downloadlinux-e174d13010a6bd52045466bc35ca5a86e3f3ba9b.tar.xz
linux-e174d13010a6bd52045466bc35ca5a86e3f3ba9b.zip
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;
};