From patchwork Tue Apr 9 22:54:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 2418271 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork1.kernel.org (Postfix) with ESMTP id D99E03FC71 for ; Tue, 9 Apr 2013 22:56:04 +0000 (UTC) Received: from merlin.infradead.org ([205.233.59.134]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UPhSL-0000sd-Q5; Tue, 09 Apr 2013 22:56:01 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UPhSJ-00070X-S8; Tue, 09 Apr 2013 22:55:59 +0000 Received: from mail-lb0-f177.google.com ([209.85.217.177]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UPhSH-00070E-Nn for linux-arm-kernel@lists.infradead.org; Tue, 09 Apr 2013 22:55:58 +0000 Received: by mail-lb0-f177.google.com with SMTP id r10so7251274lbi.22 for ; Tue, 09 Apr 2013 15:55:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:organization:to:subject:date:user-agent:cc :references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id:x-gm-message-state; bh=7aURk1fY57CWXJtSUMo2n+HuaRgB/guf5K0gdwws9t0=; b=NkWNg0pCbIbsvc9BHrZ9Iif2ZDOfc1WP8+awN9wpwUQ4rdOzo+BB9K9/3OtRawM5SJ R7UYJe8Wx7leQq6DO0pkp/BQs6Sbi8wDcYg9HQnu/4CitzzmPL0sKqSvOlwVnWavEwxD AQpNc7dF/xuUzApZ7zZpM4Dlk1Nax3zXu0jHY4y/N6YXelcWT/Le2PKgIlieD0ls+Ey1 4eRZ9+8rZaWWQtdTDL2xSs4+oaS0pDlSH9w8n9B7qfxLMAEV3Y4OlJFCYkEEaBwV4Tbr vT8qBwj8FF8NmLBVLPdMpoj2WFt+EpDLkLe88CeSTgAgsJHCtBLJ9qscNFfWGP97r1XH RM8g== X-Received: by 10.112.5.234 with SMTP id v10mr34948lbv.18.1365548156198; Tue, 09 Apr 2013 15:55:56 -0700 (PDT) Received: from wasted.dev.rtsoft.ru (ppp91-79-87-206.pppoe.mtu-net.ru. [91.79.87.206]) by mx.google.com with ESMTPS id f7sm9127947lbj.13.2013.04.09.15.55.54 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 09 Apr 2013 15:55:55 -0700 (PDT) From: Sergei Shtylyov Organization: Cogent Embedded To: horms@verge.net.au, magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-sh@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/4] ARM: shmobile: BOCK-W: add USB support Date: Wed, 10 Apr 2013 02:54:55 +0400 User-Agent: KMail/1.13.5 (Linux/2.6.32.26-175.fc12.i686.PAE; KDE/4.4.5; i686; ; ) References: <201304100247.22615.sergei.shtylyov@cogentembedded.com> In-Reply-To: <201304100247.22615.sergei.shtylyov@cogentembedded.com> MIME-Version: 1.0 Message-Id: <201304100254.55733.sergei.shtylyov@cogentembedded.com> X-Gm-Message-State: ALoCoQm6CjKyyYFHSc4REoFx5OepSinF8PWh/88vgwfqnKYO2beE9/kX1LewsCRtzIFM1hwrOYRL X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130409_185557_945691_853C8F74 X-CRM114-Status: GOOD ( 13.36 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.217.177 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: linux-usb@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Register the USB PHY device from bockw_init(), passing the platform data to it. Set machine's init_late() method to r8a7778_init_late() in order for [EO]HCI to get registered too... The patch has been tested on the BOCK-W board. Signed-off-by: Sergei Shtylyov --- arch/arm/mach-shmobile/board-bockw.c | 7 +++++++ 1 file changed, 7 insertions(+) Index: renesas/arch/arm/mach-shmobile/board-bockw.c =================================================================== --- renesas.orig/arch/arm/mach-shmobile/board-bockw.c +++ renesas/arch/arm/mach-shmobile/board-bockw.c @@ -53,6 +53,11 @@ static struct resource smsc911x_resource DEFINE_RES_IRQ(irq_pin(0)), /* IRQ 0 */ }; +static struct rcar_phy_platform_data usb_phy_platform_data = { + .usbpctrl0 = 0, + .ferrite_bead = true, /* ??? */ +}; + #define IRQ0MR 0x30 static void __init bockw_init(void) { @@ -61,6 +66,7 @@ static void __init bockw_init(void) r8a7778_clock_init(); r8a7778_init_irq_extpin(1); r8a7778_add_standard_devices(); + r8a7778_add_usb_phy_device(&usb_phy_platform_data); fpga = ioremap_nocache(0x18200000, SZ_1M); if (fpga) { @@ -97,4 +103,5 @@ DT_MACHINE_START(BOCKW_DT, "bockw") .init_machine = bockw_init, .init_time = shmobile_timer_init, .dt_compat = bockw_boards_compat_dt, + .init_late = r8a7778_init_late, MACHINE_END