From patchwork Mon Oct 29 08:15:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 1661741 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 85BDDDFB7A for ; Mon, 29 Oct 2012 08:15:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757270Ab2J2IP0 (ORCPT ); Mon, 29 Oct 2012 04:15:26 -0400 Received: from mail-da0-f46.google.com ([209.85.210.46]:64911 "EHLO mail-da0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754804Ab2J2IPZ (ORCPT ); Mon, 29 Oct 2012 04:15:25 -0400 Received: by mail-da0-f46.google.com with SMTP id n41so2314990dak.19 for ; Mon, 29 Oct 2012 01:15:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:sender:message-id:to:cc:in-reply-to:references:from:subject :mime-version:content-type; bh=Wn7PxUro84jEfRzLU6lYrZ7IJ5DDZNZ5v2t+drhZ/oU=; b=Rq2p68GKANzeNcv4QKyUqm4pgM6HFRHMVxHumwX/gGsk8g56lF8WRDpLN8yLIY0IpQ oqbhxF8D2UP9et2OKmDj57WeKl/yEtaOH3PWIJ3Li6PI0FUlVrymGBbp4Rwhv/sG7iPq YcH7/O/6xq42GmOlL/1e1PlGfBVGxSu6O6mTSJUgOU3bmE6OdyzNFLCzRv3vhz9MnNth c5h3eTO6aax6+DyYFgyPboDkfs7VuZJ+PNG4IuuJQJM0cUhmtbZyndKLgRFKkFBlpXbH /o83wCSoTDonJXP4H+jYaoPtpoJH68BD3+xWzvGGCJnE6YyECgwjd05NE3f5edYrtApJ fCqA== Received: by 10.68.200.193 with SMTP id ju1mr32971384pbc.53.1351498525647; Mon, 29 Oct 2012 01:15:25 -0700 (PDT) Received: from morimoto-Dell-XPS420.gmail.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPS id uq5sm5620638pbc.56.2012.10.29.01.15.23 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 29 Oct 2012 01:15:25 -0700 (PDT) Date: Mon, 29 Oct 2012 01:15:25 -0700 (PDT) Message-ID: <87ehkh4rty.wl%kuninori.morimoto.gx@renesas.com> To: Paul , Simon Cc: Felipe Balbi , Magnus , linux-sh@vger.kernel.org, Kuninori Morimoto In-Reply-To: <87liep4rwy.wl%kuninori.morimoto.gx@renesas.com> References: <87liep4rwy.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 5/7] ARM: shmobile: marzen: add USB phy support MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org Signed-off-by: Kuninori Morimoto --- arch/arm/configs/marzen_defconfig | 3 ++- arch/arm/mach-shmobile/board-marzen.c | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/arch/arm/configs/marzen_defconfig b/arch/arm/configs/marzen_defconfig index 5b8215f..8a861b7 100644 --- a/arch/arm/configs/marzen_defconfig +++ b/arch/arm/configs/marzen_defconfig @@ -78,7 +78,8 @@ CONFIG_GPIO_SYSFS=y CONFIG_THERMAL=y CONFIG_RCAR_THERMAL=y CONFIG_SSB=y -# CONFIG_USB_SUPPORT is not set +CONFIG_USB=y +CONFIG_USB_RCAR_PHY=y CONFIG_MMC=y CONFIG_MMC_SDHI=y CONFIG_UIO=y diff --git a/arch/arm/mach-shmobile/board-marzen.c b/arch/arm/mach-shmobile/board-marzen.c index 69f7f46..74c7f0b 100644 --- a/arch/arm/mach-shmobile/board-marzen.c +++ b/arch/arm/mach-shmobile/board-marzen.c @@ -144,11 +144,32 @@ static struct platform_device hspi_device = { .num_resources = ARRAY_SIZE(hspi_resources), }; +/* USB PHY */ +static struct resource usb_phy_resources[] = { + [0] = { + .start = 0xffe70000, + .end = 0xffe70900 - 1, + .flags = IORESOURCE_MEM, + }, + [1] = { + .start = 0xfff70000, + .end = 0xfff70900 - 1, + .flags = IORESOURCE_MEM, + }, +}; + +static struct platform_device usb_phy_device = { + .name = "rcar_usb_phy", + .resource = usb_phy_resources, + .num_resources = ARRAY_SIZE(usb_phy_resources), +}; + static struct platform_device *marzen_devices[] __initdata = { ð_device, &sdhi0_device, &thermal_device, &hspi_device, + &usb_phy_device, }; static void __init marzen_init(void)