Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44308
b: refs/heads/master
c: 417d6b9
h: refs/heads/master
v: v3
  • Loading branch information
Jamie Lenehan authored and Paul Mundt committed Dec 11, 2006
1 parent 5018330 commit d4800b0
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d79b8741f212a9da38f1648d9242041db074216f
refs/heads/master: 417d6b9edb5958c2cc76e8ef701ebe09a3152deb
31 changes: 31 additions & 0 deletions trunk/arch/sh/kernel/cpu/sh4/setup-sh7750.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,36 @@
#include <linux/io.h>
#include <asm/sci.h>

static struct resource rtc_resources[] = {
[0] = {
.start = 0xffc80000,
.end = 0xffc80000 + 0x58 - 1,
.flags = IORESOURCE_IO,
},
[1] = {
/* Period IRQ */
.start = 21,
.flags = IORESOURCE_IRQ,
},
[2] = {
/* Carry IRQ */
.start = 22,
.flags = IORESOURCE_IRQ,
},
[3] = {
/* Alarm IRQ */
.start = 20,
.flags = IORESOURCE_IRQ,
},
};

static struct platform_device rtc_device = {
.name = "sh-rtc",
.id = -1,
.num_resources = ARRAY_SIZE(rtc_resources),
.resource = rtc_resources,
};

static struct plat_sci_port sci_platform_data[] = {
{
.mapbase = 0xffe00000,
Expand All @@ -39,6 +69,7 @@ static struct platform_device sci_device = {
};

static struct platform_device *sh7750_devices[] __initdata = {
&rtc_device,
&sci_device,
};

Expand Down

0 comments on commit d4800b0

Please sign in to comment.