From patchwork Tue Apr 16 21:34:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 2451111 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 B4AD7DF230 for ; Tue, 16 Apr 2013 21:35:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965425Ab3DPVfk (ORCPT ); Tue, 16 Apr 2013 17:35:40 -0400 Received: from mail-lb0-f182.google.com ([209.85.217.182]:44615 "EHLO mail-lb0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965424Ab3DPVfj (ORCPT ); Tue, 16 Apr 2013 17:35:39 -0400 Received: by mail-lb0-f182.google.com with SMTP id z13so984509lbh.41 for ; Tue, 16 Apr 2013 14:35:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:to:subject:cc:from:organization:date:mime-version :content-type:content-transfer-encoding:message-id :x-gm-message-state; bh=Zz1X3svOGBjQ9Dfq2C5ms5tcZweWmAAN9OL4qFVfQRg=; b=KWX74/0I+xoKoFltflP36aw6QJSZka7u6a8dvBMbbFwHMnFg/6ZPkQpU/09QyKEvg+ kT3BCrV4xqtpeVELPSpLePwDxsPQm70xHmUtjD5qImjAx28mKf4nhSOZQuPJ65kX05NG EZyWUsykE7sbHFornB6knajUwebqU2dmeQ6nb652ac/DQYXu+zJ7hcRzavUOwfrpDVbo 1JdnlVf5/BokcorWB3rObs1RnSxMa15D7JBI9Zpe+47EPCs4BIV1b5PwLRHOhtVyF/zg ikwGne7eMgHAqKdunUw/N/hFLO5apc2KghdXNx2yA/ClcdlalNuJYr3v2ugaX0trlu5h wRWw== X-Received: by 10.112.131.169 with SMTP id on9mr2192181lbb.124.1366148138118; Tue, 16 Apr 2013 14:35:38 -0700 (PDT) Received: from wasted.dev.rtsoft.ru (ppp91-79-82-36.pppoe.mtu-net.ru. [91.79.82.36]) by mx.google.com with ESMTPS id mq7sm1512723lab.1.2013.04.16.14.35.36 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 16 Apr 2013 14:35:37 -0700 (PDT) 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 v3 3/4] ARM: shmobile: BOCK-W: add USB support Cc: linux-usb@vger.kernel.org From: Sergei Shtylyov Organization: Cogent Embedded Date: Wed, 17 Apr 2013 01:34:47 +0400 MIME-Version: 1.0 Message-Id: <201304170134.47851.sergei.shtylyov@cogentembedded.com> X-Gm-Message-State: ALoCoQkXZeFCdkfoX3E0bGkWkSoat18NWMzXZ3z93WBnNQWIRzraf7P6STk9hTmdkrPXAY35aVz8 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 --- Changes since version 2: - refreshed the patch. Changes since the original posting: - removed initializer for no longer existing field in 'usb_phy_platform_data', modified the comment to the 'ferrite_bead' field initializer. arch/arm/mach-shmobile/board-bockw.c | 6 ++++++ 1 file changed, 6 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 @@ -54,6 +54,10 @@ static struct resource smsc911x_resource DEFINE_RES_IRQ(irq_pin(0)), /* IRQ 0 */ }; +static struct rcar_phy_platform_data usb_phy_platform_data = { + .ferrite_bead = true, /* not sure about this... */ +}; + static const struct pinctrl_map bockw_pinctrl_map[] = { /* SCIF0 */ PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.0", "pfc-r8a7778", @@ -70,6 +74,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); pinctrl_register_mappings(bockw_pinctrl_map, ARRAY_SIZE(bockw_pinctrl_map)); @@ -110,4 +115,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