Commit 10a068f2 authored by Shimoda, Yoshihiro's avatar Shimoda, Yoshihiro Committed by Paul Mundt

sh: add platform_device for RSPI in setup-sh7757

Signed-off-by: default avatarYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent bfc906d8
...@@ -680,6 +680,25 @@ static struct platform_device spi1_device = { ...@@ -680,6 +680,25 @@ static struct platform_device spi1_device = {
.resource = spi1_resources, .resource = spi1_resources,
}; };
static struct resource rspi_resources[] = {
{
.start = 0xfe480000,
.end = 0xfe4800ff,
.flags = IORESOURCE_MEM,
},
{
.start = 220,
.flags = IORESOURCE_IRQ,
},
};
static struct platform_device rspi_device = {
.name = "rspi",
.id = 2,
.num_resources = ARRAY_SIZE(rspi_resources),
.resource = rspi_resources,
};
static struct resource usb_ehci_resources[] = { static struct resource usb_ehci_resources[] = {
[0] = { [0] = {
.start = 0xfe4f1000, .start = 0xfe4f1000,
...@@ -740,6 +759,7 @@ static struct platform_device *sh7757_devices[] __initdata = { ...@@ -740,6 +759,7 @@ static struct platform_device *sh7757_devices[] __initdata = {
&dma3_device, &dma3_device,
&spi0_device, &spi0_device,
&spi1_device, &spi1_device,
&rspi_device,
&usb_ehci_device, &usb_ehci_device,
&usb_ohci_device, &usb_ohci_device,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment