sh: Prevent heartbeat from scribbling over non-LED bits.
authorKuninori Morimoto <morimoto.kuninori@renesas.com>
Tue, 18 Aug 2009 07:00:20 +0000 (07:00 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 18 Aug 2009 12:16:29 +0000 (21:16 +0900)
commite174d13010a6bd52045466bc35ca5a86e3f3ba9b
tree1ad84c9b48bae21a3a150da7caae5f938abae461
parentb2ea8b421515ddd692c88fc5afb0e7f93e96e6cb
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>
arch/sh/drivers/heartbeat.c
arch/sh/include/asm/heartbeat.h