aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-at91/at91cap9_devices.c13
-rw-r--r--arch/arm/mach-at91/at91sam9260_devices.c2
-rw-r--r--arch/arm/mach-at91/at91sam9261_devices.c2
-rw-r--r--arch/arm/mach-at91/at91sam9rl_devices.c2
4 files changed, 14 insertions, 5 deletions
diff --git a/arch/arm/mach-at91/at91cap9_devices.c b/arch/arm/mach-at91/at91cap9_devices.c
index 10f15f3a56ca..7d782ee4117b 100644
--- a/arch/arm/mach-at91/at91cap9_devices.c
+++ b/arch/arm/mach-at91/at91cap9_devices.c
@@ -540,10 +540,19 @@ void __init at91_add_device_spi(struct spi_board_info *devices, int nr_devices)
540 * RTT 540 * RTT
541 * -------------------------------------------------------------------- */ 541 * -------------------------------------------------------------------- */
542 542
543static struct resource rtt_resources[] = {
544 {
545 .start = AT91_BASE_SYS + AT91_RTT,
546 .end = AT91_BASE_SYS + AT91_RTT + SZ_16 - 1,
547 .flags = IORESOURCE_MEM,
548 }
549};
550
543static struct platform_device at91cap9_rtt_device = { 551static struct platform_device at91cap9_rtt_device = {
544 .name = "at91_rtt", 552 .name = "at91_rtt",
545 .id = -1, 553 .id = 0,
546 .num_resources = 0, 554 .resource = rtt_resources,
555 .num_resources = ARRAY_SIZE(rtt_resources),
547}; 556};
548 557
549static void __init at91_add_device_rtt(void) 558static void __init at91_add_device_rtt(void)
diff --git a/arch/arm/mach-at91/at91sam9260_devices.c b/arch/arm/mach-at91/at91sam9260_devices.c
index d613761dc2f8..f20afe4d156c 100644
--- a/arch/arm/mach-at91/at91sam9260_devices.c
+++ b/arch/arm/mach-at91/at91sam9260_devices.c
@@ -558,7 +558,7 @@ static struct resource rtt_resources[] = {
558 558
559static struct platform_device at91sam9260_rtt_device = { 559static struct platform_device at91sam9260_rtt_device = {
560 .name = "at91_rtt", 560 .name = "at91_rtt",
561 .id = -1, 561 .id = 0,
562 .resource = rtt_resources, 562 .resource = rtt_resources,
563 .num_resources = ARRAY_SIZE(rtt_resources), 563 .num_resources = ARRAY_SIZE(rtt_resources),
564}; 564};
diff --git a/arch/arm/mach-at91/at91sam9261_devices.c b/arch/arm/mach-at91/at91sam9261_devices.c
index 48ecbeffd9b0..0bd0edf8fa3b 100644
--- a/arch/arm/mach-at91/at91sam9261_devices.c
+++ b/arch/arm/mach-at91/at91sam9261_devices.c
@@ -561,7 +561,7 @@ static struct resource rtt_resources[] = {
561 561
562static struct platform_device at91sam9261_rtt_device = { 562static struct platform_device at91sam9261_rtt_device = {
563 .name = "at91_rtt", 563 .name = "at91_rtt",
564 .id = -1, 564 .id = 0,
565 .resource = rtt_resources, 565 .resource = rtt_resources,
566 .num_resources = ARRAY_SIZE(rtt_resources), 566 .num_resources = ARRAY_SIZE(rtt_resources),
567}; 567};
diff --git a/arch/arm/mach-at91/at91sam9rl_devices.c b/arch/arm/mach-at91/at91sam9rl_devices.c
index 2a0abd25e773..8982b02c8b46 100644
--- a/arch/arm/mach-at91/at91sam9rl_devices.c
+++ b/arch/arm/mach-at91/at91sam9rl_devices.c
@@ -423,7 +423,7 @@ static struct resource rtt_resources[] = {
423 423
424static struct platform_device at91sam9rl_rtt_device = { 424static struct platform_device at91sam9rl_rtt_device = {
425 .name = "at91_rtt", 425 .name = "at91_rtt",
426 .id = -1, 426 .id = 0,
427 .resource = rtt_resources, 427 .resource = rtt_resources,
428 .num_resources = ARRAY_SIZE(rtt_resources), 428 .num_resources = ARRAY_SIZE(rtt_resources),
429}; 429};