| From ltsi-dev-bounces@lists.linuxfoundation.org Mon May 28 02:47:47 2012 |
| From: "Shimoda, Yoshihiro" <yoshihiro.shimoda.uh@renesas.com> |
| Date: Mon, 28 May 2012 18:47:43 +0900 |
| Subject: [LTSI-dev] [PATCH 15/21] sh: add platform_device for RSPI in setup-sh7757 |
| To: ltsi-dev@lists.linuxfoundation.org |
| Message-ID: <4FC349BF.3080703@renesas.com> |
| |
| |
| >From 309c52cddb5ae308683d74591b6a00a25b2898fc Mon Sep 17 00:00:00 2001 |
| From: Shimoda, Yoshihiro <yoshihiro.shimoda.uh@renesas.com> |
| Date: Wed, 7 Mar 2012 14:46:41 +0900 |
| Subject: sh: add platform_device for RSPI 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 10a068f27ac2200c83f6d13f5e03f6e48cf06d10) |
| |
| 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 2875e8b..c8836cf 100644 |
| --- a/arch/sh/kernel/cpu/sh4a/setup-sh7757.c |
| +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7757.c |
| @@ -680,6 +680,25 @@ static struct platform_device spi1_device = { |
| .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[] = { |
| [0] = { |
| .start = 0xfe4f1000, |
| @@ -740,6 +759,7 @@ static struct platform_device *sh7757_devices[] __initdata = { |
| &dma3_device, |
| &spi0_device, |
| &spi1_device, |
| + &rspi_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 |
| |