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: 2418261 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id AC6A03FC71 for ; Tue, 9 Apr 2013 22:55:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752299Ab3DIWz6 (ORCPT ); Tue, 9 Apr 2013 18:55:58 -0400 Received: from mail-lb0-f182.google.com ([209.85.217.182]:33950 "EHLO mail-lb0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750713Ab3DIWz5 (ORCPT ); Tue, 9 Apr 2013 18:55:57 -0400 Received: by mail-lb0-f182.google.com with SMTP id z13so7389574lbh.13 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=frb4S0PNzZ+CeHA4caQjdDtk30cwKqSZkajITPSWQemEsq4W4/5ZXUmMSfkQtsxnV1 FmgmnQLv4caeAnKM+pPd+dBiFHGoiWhAM/HcNCzs/55uSqLyPSYmw+kbaopg/azyFTcR rrIJMtfKzb3aj8J1iUJNeIS5djjgk6sg9iwdaMzyN/znkE4upOMV4VzZZ3CJapRo+MHm ZO23TpnJEdt5by/mWGReE0Co+M3mjpaWVIzhBj7zJpNM+lliUlACpgJWGfJ0StImFSaG E3XJ1rvchAQHUCm2Ferf397C637sHgBepYnH4ZuDe1FK2lpqAc9kFco6PcVG+Au5nTxH u6YA== 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; ; ) Cc: linux-usb@vger.kernel.org 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: ALoCoQm1wOM+LAdlObqIH2BbKuznpNpSAJBuZmOVR10lbIxdnfPRUNo1jqrKyOkwev/Xcn/OmWEL Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.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(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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