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

sh: add platform_device for SPI1 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 11c582e3
...@@ -661,6 +661,25 @@ static struct platform_device spi0_device = { ...@@ -661,6 +661,25 @@ static struct platform_device spi0_device = {
.resource = spi0_resources, .resource = spi0_resources,
}; };
static struct resource spi1_resources[] = {
{
.start = 0xffd8ee70,
.end = 0xffd8eeff,
.flags = IORESOURCE_MEM | IORESOURCE_MEM_8BIT,
},
{
.start = 54,
.flags = IORESOURCE_IRQ,
},
};
static struct platform_device spi1_device = {
.name = "sh_spi",
.id = 1,
.num_resources = ARRAY_SIZE(spi1_resources),
.resource = spi1_resources,
};
static struct resource usb_ehci_resources[] = { static struct resource usb_ehci_resources[] = {
[0] = { [0] = {
.start = 0xfe4f1000, .start = 0xfe4f1000,
...@@ -720,6 +739,7 @@ static struct platform_device *sh7757_devices[] __initdata = { ...@@ -720,6 +739,7 @@ static struct platform_device *sh7757_devices[] __initdata = {
&dma2_device, &dma2_device,
&dma3_device, &dma3_device,
&spi0_device, &spi0_device,
&spi1_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