提交 2267c787 编写于 作者: P Paul Mundt

sh: mach-sdk7786: heartbeat support.

Hand off the user LEDs to the heartbeat driver.
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 10ab92d8
...@@ -15,8 +15,22 @@ ...@@ -15,8 +15,22 @@
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/irq.h> #include <linux/irq.h>
#include <asm/machvec.h> #include <asm/machvec.h>
#include <asm/heartbeat.h>
#include <asm/sizes.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[] = { static struct resource smsc911x_resources[] = {
[0] = { [0] = {
.name = "smsc911x-memory", .name = "smsc911x-memory",
...@@ -82,6 +96,7 @@ static struct i2c_board_info __initdata sdk7786_i2c_devices[] = { ...@@ -82,6 +96,7 @@ static struct i2c_board_info __initdata sdk7786_i2c_devices[] = {
}; };
static struct platform_device *sh7786_devices[] __initdata = { static struct platform_device *sh7786_devices[] __initdata = {
&heartbeat_device,
&smsc911x_device, &smsc911x_device,
&smbus_fpga_device, &smbus_fpga_device,
&smbus_pcie_device, &smbus_pcie_device,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册