|
|
@@ -381,9 +381,24 @@ static struct platform_device rstc_device = {
|
|
|
.num_resources = ARRAY_SIZE(rstc_resources),
|
|
|
};
|
|
|
|
|
|
+static struct resource shdwc_resources[] = {
|
|
|
+ [0] = {
|
|
|
+ .start = AT91SAM9260_BASE_SHDWC,
|
|
|
+ .end = AT91SAM9260_BASE_SHDWC + SZ_16 - 1,
|
|
|
+ .flags = IORESOURCE_MEM,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct platform_device shdwc_device = {
|
|
|
+ .name = "at91-poweroff",
|
|
|
+ .resource = shdwc_resources,
|
|
|
+ .num_resources = ARRAY_SIZE(shdwc_resources),
|
|
|
+};
|
|
|
+
|
|
|
static void __init at91sam9260_register_devices(void)
|
|
|
{
|
|
|
platform_device_register(&rstc_device);
|
|
|
+ platform_device_register(&shdwc_device);
|
|
|
}
|
|
|
|
|
|
/* --------------------------------------------------------------------
|