aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-01-14 22:11:30 -0500
committerPaul Mundt <lethal@linux-sh.org>2010-01-14 22:11:30 -0500
commit2267c7875b3a3a41b7a8cc9659d75ec934c98ffd (patch)
tree02967817d3ec904379bbaad17a6a46eaeba5aa4f /arch/sh/boards
parent10ab92d8c336c25af1fce46113ed85856e02e95d (diff)
sh: mach-sdk7786: heartbeat support.
Hand off the user LEDs to the heartbeat driver. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards')
-rw-r--r--arch/sh/boards/mach-sdk7786/setup.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/sh/boards/mach-sdk7786/setup.c b/arch/sh/boards/mach-sdk7786/setup.c
index b460dcc785c1..f2d4b75bf31c 100644
--- a/arch/sh/boards/mach-sdk7786/setup.c
+++ b/arch/sh/boards/mach-sdk7786/setup.c
@@ -15,8 +15,22 @@
15#include <linux/i2c.h> 15#include <linux/i2c.h>
16#include <linux/irq.h> 16#include <linux/irq.h>
17#include <asm/machvec.h> 17#include <asm/machvec.h>
18#include <asm/heartbeat.h>
18#include <asm/sizes.h> 19#include <asm/sizes.h>
19 20
21static struct resource heartbeat_resource = {
22 .start = 0x07fff8b0,
23 .end = 0x07fff8b0 + sizeof(u16) - 1,
24 .flags = IORESOURCE_MEM | IORESOURCE_MEM_16BIT,
25};
26
27static struct platform_device heartbeat_device = {
28 .name = "heartbeat",
29 .id = -1,
30 .num_resources = 1,
31 .resource = &heartbeat_resource,
32};
33
20static struct resource smsc911x_resources[] = { 34static struct resource smsc911x_resources[] = {
21 [0] = { 35 [0] = {
22 .name = "smsc911x-memory", 36 .name = "smsc911x-memory",
@@ -82,6 +96,7 @@ static struct i2c_board_info __initdata sdk7786_i2c_devices[] = {
82}; 96};
83 97
84static struct platform_device *sh7786_devices[] __initdata = { 98static struct platform_device *sh7786_devices[] __initdata = {
99 &heartbeat_device,
85 &smsc911x_device, 100 &smsc911x_device,
86 &smbus_fpga_device, 101 &smbus_fpga_device,
87 &smbus_pcie_device, 102 &smbus_pcie_device,