From patchwork Fri Apr 12 23:44:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 2439471 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 9DBBEDF2A1 for ; Fri, 12 Apr 2013 23:45:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754456Ab3DLXp0 (ORCPT ); Fri, 12 Apr 2013 19:45:26 -0400 Received: from mail-lb0-f170.google.com ([209.85.217.170]:65535 "EHLO mail-lb0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753794Ab3DLXpZ (ORCPT ); Fri, 12 Apr 2013 19:45:25 -0400 Received: by mail-lb0-f170.google.com with SMTP id x11so3126804lbi.29 for ; Fri, 12 Apr 2013 16:45:24 -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=PEztvUjyj2htt1yrCPpuv2vgFq0vY7IgLh3DhmTxzHA=; b=V0OJa/S7N+eTDVPSVm6s3FoPCusML3SAu0tUohJconK+dTsghn7EjxKCdshZ17/wAi F2W0naqODbR+KC9OaqohrXuHOuFvgF6qv/sJvQaw6he/kyUZj/vuexF7R01/H60Rn76s KPzesYf0KGw9WuQEMPQtfYApj+lP8oz8VqxG8eROuqR8I5ZPfZ4fP5029MT4hCT29Wwr 1KoXsSKMXV76TuJ6Idzb1PY7RPGyahwnZNJGO2rDcBzUwDqvyrIWc5h4iGi00q5flj2N 6Be3XlldJU+HJT12sNiLmZSY6ZGVl9PJZrfJ/M/Y1bzoQlnY8ugVDuiIt9svgKA2v68M my3w== X-Received: by 10.112.145.8 with SMTP id sq8mr6297121lbb.55.1365810323954; Fri, 12 Apr 2013 16:45:23 -0700 (PDT) Received: from wasted.dev.rtsoft.ru (ppp91-79-80-224.pppoe.mtu-net.ru. [91.79.80.224]) by mx.google.com with ESMTPS id mq7sm4051798lab.1.2013.04.12.16.45.22 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 12 Apr 2013 16:45:22 -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 v2 3/4] ARM: shmobile: BOCK-W: add USB support Cc: linux-usb@vger.kernel.org From: Sergei Shtylyov Organization: Cogent Embedded Date: Sat, 13 Apr 2013 03:44:27 +0400 MIME-Version: 1.0 Message-Id: <201304130344.28060.sergei.shtylyov@cogentembedded.com> X-Gm-Message-State: ALoCoQnN2a6VmwCvIwh7nWZZwvKJj+hP2rlel3cKOOQmxDPPT+TMfCIB8JgcUB7HggEyj/JmyOCI 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 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 @@ -53,6 +53,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... */ +}; + #define IRQ0MR 0x30 static void __init bockw_init(void) { @@ -61,6 +65,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 +102,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