diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-01-15 12:11:30 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-01-15 12:11:30 +0900 |
commit | 2267c7875b3a3a41b7a8cc9659d75ec934c98ffd (patch) | |
tree | 02967817d3ec904379bbaad17a6a46eaeba5aa4f /arch/sh/boards/mach-sdk7786 | |
parent | 10ab92d8c336c25af1fce46113ed85856e02e95d (diff) | |
download | linux-stable-2267c7875b3a3a41b7a8cc9659d75ec934c98ffd.tar.gz linux-stable-2267c7875b3a3a41b7a8cc9659d75ec934c98ffd.tar.bz2 linux-stable-2267c7875b3a3a41b7a8cc9659d75ec934c98ffd.zip |
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/mach-sdk7786')
-rw-r--r-- | arch/sh/boards/mach-sdk7786/setup.c | 15 |
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 @@ #include <linux/i2c.h> #include <linux/irq.h> #include <asm/machvec.h> +#include <asm/heartbeat.h> #include <asm/sizes.h> +static struct resource heartbeat_resource = { + .start = 0x07fff8b0, + .end = 0x07fff8b0 + sizeof(u16) - 1, + .flags = IORESOURCE_MEM | IORESOURCE_MEM_16BIT, +}; + +static struct platform_device heartbeat_device = { + .name = "heartbeat", + .id = -1, + .num_resources = 1, + .resource = &heartbeat_resource, +}; + static struct resource smsc911x_resources[] = { [0] = { .name = "smsc911x-memory", @@ -82,6 +96,7 @@ static struct i2c_board_info __initdata sdk7786_i2c_devices[] = { }; static struct platform_device *sh7786_devices[] __initdata = { + &heartbeat_device, &smsc911x_device, &smbus_fpga_device, &smbus_pcie_device, |