| From ltsi-dev-bounces@lists.linuxfoundation.org Mon May 28 02:47:32 2012 |
| From: "Shimoda, Yoshihiro" <yoshihiro.shimoda.uh@renesas.com> |
| Date: Mon, 28 May 2012 18:47:28 +0900 |
| Subject: [LTSI-dev] [PATCH 11/21] sh: add platform_device for SPI1 in setup-sh7757 |
| To: ltsi-dev@lists.linuxfoundation.org |
| Message-ID: <4FC349B0.20603@renesas.com> |
| |
| |
| >From 207bfa238e5788eed6ec68738127ddb5f702f70d Mon Sep 17 00:00:00 2001 |
| From: Shimoda, Yoshihiro <yoshihiro.shimoda.uh@renesas.com> |
| Date: Thu, 26 Jan 2012 17:44:07 +0900 |
| Subject: sh: add platform_device for SPI1 in setup-sh7757 |
| |
| Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> |
| Signed-off-by: Paul Mundt <lethal@linux-sh.org> |
| (cherry picked from commit a206c0087323337595de1284feb09a98c2a389d2) |
| |
| Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> |
| --- |
| arch/sh/kernel/cpu/sh4a/setup-sh7757.c | 20 ++++++++++++++++++++ |
| 1 files changed, 20 insertions(+), 0 deletions(-) |
| |
| diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7757.c b/arch/sh/kernel/cpu/sh4a/setup-sh7757.c |
| index 226d809..2875e8b 100644 |
| --- a/arch/sh/kernel/cpu/sh4a/setup-sh7757.c |
| +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7757.c |
| @@ -661,6 +661,25 @@ static struct platform_device spi0_device = { |
| .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[] = { |
| [0] = { |
| .start = 0xfe4f1000, |
| @@ -720,6 +739,7 @@ static struct platform_device *sh7757_devices[] __initdata = { |
| &dma2_device, |
| &dma3_device, |
| &spi0_device, |
| + &spi1_device, |
| &usb_ehci_device, |
| &usb_ohci_device, |
| }; |
| -- |
| 1.7.1 |
| |
| _______________________________________________ |
| LTSI-dev mailing list |
| LTSI-dev@lists.linuxfoundation.org |
| https://lists.linuxfoundation.org/mailman/listinfo/ltsi-dev |
| |