* [PATCH 2/3] sh: sh7757: Add echi-sh of platform data
@ 2012-03-01 2:32 Nobuhiro Iwamatsu
2012-03-01 10:33 ` Sergei Shtylyov
0 siblings, 1 reply; 2+ messages in thread
From: Nobuhiro Iwamatsu @ 2012-03-01 2:32 UTC (permalink / raw)
To: linux-sh
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
---
arch/sh/kernel/cpu/sh4a/setup-sh7757.c | 7 +++++++
1 files changed, 7 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..d791d64 100644
--- a/arch/sh/kernel/cpu/sh4a/setup-sh7757.c
+++ b/arch/sh/kernel/cpu/sh4a/setup-sh7757.c
@@ -18,6 +18,7 @@
#include <linux/dma-mapping.h>
#include <linux/sh_timer.h>
#include <linux/sh_dma.h>
+#include <linux/usb/ehci-sh.h>
#include <cpu/dma-register.h>
#include <cpu/sh7757.h>
@@ -680,6 +681,11 @@ static struct platform_device spi1_device = {
.resource = spi1_resources,
};
+static struct ehci_sh_platdata usb_ehci_pdata = {
+ .phy_init = NULL,
+ .clkmode = 0,
+};
+
static struct resource usb_ehci_resources[] = {
[0] = {
.start = 0xfe4f1000,
@@ -699,6 +705,7 @@ static struct platform_device usb_ehci_device = {
.dev = {
.dma_mask = &usb_ehci_device.dev.coherent_dma_mask,
.coherent_dma_mask = DMA_BIT_MASK(32),
+ .platform_data = &usb_ehci_pdata,
},
.num_resources = ARRAY_SIZE(usb_ehci_resources),
.resource = usb_ehci_resources,
--
1.7.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 2/3] sh: sh7757: Add echi-sh of platform data
2012-03-01 2:32 [PATCH 2/3] sh: sh7757: Add echi-sh of platform data Nobuhiro Iwamatsu
@ 2012-03-01 10:33 ` Sergei Shtylyov
0 siblings, 0 replies; 2+ messages in thread
From: Sergei Shtylyov @ 2012-03-01 10:33 UTC (permalink / raw)
To: linux-sh
Hello.
On 01-03-2012 6:32, Nobuhiro Iwamatsu wrote:
> Signed-off-by: Nobuhiro Iwamatsu<nobuhiro.iwamatsu.yj@renesas.com>
> ---
> arch/sh/kernel/cpu/sh4a/setup-sh7757.c | 7 +++++++
> 1 files changed, 7 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..d791d64 100644
> --- a/arch/sh/kernel/cpu/sh4a/setup-sh7757.c
> +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7757.c
[...]
> @@ -680,6 +681,11 @@ static struct platform_device spi1_device = {
> .resource = spi1_resources,
> };
>
> +static struct ehci_sh_platdata usb_ehci_pdata = {
> + .phy_init = NULL,
> + .clkmode = 0,
Do not initialize explicitly to 0 or NULL.
WBR, Sergei
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-01 10:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-01 2:32 [PATCH 2/3] sh: sh7757: Add echi-sh of platform data Nobuhiro Iwamatsu
2012-03-01 10:33 ` Sergei Shtylyov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.