From patchwork Fri Apr 19 22:13:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 2467241 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 23EE3DF25A for ; Fri, 19 Apr 2013 22:14:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933748Ab3DSWOS (ORCPT ); Fri, 19 Apr 2013 18:14:18 -0400 Received: from mail-lb0-f179.google.com ([209.85.217.179]:55759 "EHLO mail-lb0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933583Ab3DSWOS (ORCPT ); Fri, 19 Apr 2013 18:14:18 -0400 Received: by mail-lb0-f179.google.com with SMTP id t1so4184626lbd.38 for ; Fri, 19 Apr 2013 15:14:16 -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=3xkdJMv4be+JvfYSIErCaDJpbS5W7IlUATV1nv6q4qs=; b=ilh6F6ewZFyX+PiH7em36R7dYMgYgQx9qHG6CB1RKqyuCgCSqyNQUyiR+wuMBnNs3y vY9QUm3G6j8xD3lVFGgXE6wsbpRB8XXBrj9XOMY/UdERm0MxnjoAVaelX8UQ5uycyLj0 ZrDSFHG2azvqcmBaSGk0jEps71smNmfKc4YDfdype8ADIkJpXBDl1RPZO9dl0a7h2Yxj olTuKt9BO5bjmETqepAvZ8gHYkZ6rp6jKlI/qKFh4tUpGw/QyJnRdWZI3bTiec56TSBb AgxaqYI1q6zUBq+bVHu7NTGYFxSBke0LAo8+g7wFsBbdgcsYvZFRMnBCRV7tqtBMcjs4 nQ6A== X-Received: by 10.112.129.137 with SMTP id nw9mr9037723lbb.56.1366409656788; Fri, 19 Apr 2013 15:14:16 -0700 (PDT) Received: from wasted.dev.rtsoft.ru (ppp91-79-86-130.pppoe.mtu-net.ru. [91.79.86.130]) by mx.google.com with ESMTPS id wc5sm2917292lbb.13.2013.04.19.15.14.15 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 19 Apr 2013 15:14:15 -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 v4 3/3] ARM: shmobile: BOCK-W: add USB support Cc: linux-usb@vger.kernel.org From: Sergei Shtylyov Organization: Cogent Embedded Date: Sat, 20 Apr 2013 02:13:26 +0400 MIME-Version: 1.0 Message-Id: <201304200213.27342.sergei.shtylyov@cogentembedded.com> X-Gm-Message-State: ALoCoQnpCvt8oDHZahiJwxk4ZqOjRHOE9ssVsurVhPLiURA3PvfM6Yz/z8CEb4ztfWksEe7lAD9s 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 3: - removed initializer for 'usb_phy_platform_data' letting it be set to all 0s; - refreshed the patch. 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 | 4 ++++ 1 file changed, 4 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,8 @@ static struct resource smsc911x_resource DEFINE_RES_IRQ(irq_pin(0)), /* IRQ 0 */ }; +static struct rcar_phy_platform_data usb_phy_platform_data; + static const struct pinctrl_map bockw_pinctrl_map[] = { /* SCIF0 */ PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.0", "pfc-r8a7778", @@ -71,6 +73,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)); @@ -111,4 +114,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