|
@@ -16,8 +16,13 @@
|
|
#include <asm/machvec.h>
|
|
#include <asm/machvec.h>
|
|
#include <asm/se7722.h>
|
|
#include <asm/se7722.h>
|
|
#include <asm/io.h>
|
|
#include <asm/io.h>
|
|
|
|
+#include <asm/heartbeat.h>
|
|
|
|
|
|
/* Heartbeat */
|
|
/* Heartbeat */
|
|
|
|
+static struct heartbeat_data heartbeat_data = {
|
|
|
|
+ .regsize = 16,
|
|
|
|
+};
|
|
|
|
+
|
|
static struct resource heartbeat_resources[] = {
|
|
static struct resource heartbeat_resources[] = {
|
|
[0] = {
|
|
[0] = {
|
|
.start = PA_LED,
|
|
.start = PA_LED,
|
|
@@ -29,6 +34,9 @@ static struct resource heartbeat_resources[] = {
|
|
static struct platform_device heartbeat_device = {
|
|
static struct platform_device heartbeat_device = {
|
|
.name = "heartbeat",
|
|
.name = "heartbeat",
|
|
.id = -1,
|
|
.id = -1,
|
|
|
|
+ .dev = {
|
|
|
|
+ .platform_data = &heartbeat_data,
|
|
|
|
+ },
|
|
.num_resources = ARRAY_SIZE(heartbeat_resources),
|
|
.num_resources = ARRAY_SIZE(heartbeat_resources),
|
|
.resource = heartbeat_resources,
|
|
.resource = heartbeat_resources,
|
|
};
|
|
};
|