From patchwork Mon Dec 31 02:45:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dongjin Kim X-Patchwork-Id: 1920731 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id EA00CDF23A for ; Mon, 31 Dec 2012 02:49:52 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TpVOk-0005ci-TC; Mon, 31 Dec 2012 02:46:42 +0000 Received: from mail-pa0-f43.google.com ([209.85.220.43]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TpVOg-0005cP-VO for linux-arm-kernel@lists.infradead.org; Mon, 31 Dec 2012 02:46:39 +0000 Received: by mail-pa0-f43.google.com with SMTP id fb10so6945344pad.16 for ; Sun, 30 Dec 2012 18:46:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=gZzBJM6LgMHMN6JXTGg5fZzvG5zLCS8d5tyItULGuHE=; b=GanbSC5ky+Nk3amu16BzV8gaWZRaC3Er55QH4foTFBZNtwIwC6uH9hWL/hG6WPcyGG GBFSu5hXiMWVkOie510HvoMG29grDqfXaJyCR01pkhbZ2CsYkPxdFp9jg0yVGyqY5NQT v+LIrSImWi2zzKEaj+fQ9b+2tSkBeN4/I3+CQ43u4JEnq7IlMmak01DANO55Oft7OBoj CcCCxKazDrJ/BYTY1fklDBiqOKXbKf7NCHdk16DG0NWnk962+yiLpf4trns0vDrcAYvR AICnzsSnFNLZcRTebXBWv5uK2Up4TEwIbfve+TodCDhdMl783wGDMe3A7M7Kifla85ea DIZw== X-Received: by 10.69.0.40 with SMTP id av8mr124405623pbd.117.1356921996117; Sun, 30 Dec 2012 18:46:36 -0800 (PST) Received: from localhost.localdomain ([125.177.223.206]) by mx.google.com with ESMTPS id qr8sm24008671pbc.64.2012.12.30.18.46.32 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 30 Dec 2012 18:46:35 -0800 (PST) From: Dongjin Kim To: Subject: [PATCH RESEND] ARM: dts: Add EHCI device tree node for Exynos4 Date: Mon, 31 Dec 2012 11:45:14 +0900 Message-Id: <1356921918-12959-1-git-send-email-tobetter@gmail.com> X-Mailer: git-send-email 1.7.10.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121230_214639_367208_72654E3B X-CRM114-Status: GOOD ( 12.65 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (tobetter[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.220.43 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] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Kukjin Kim , Russell King , Tomasz Figa , linux-kernel@vger.kernel.org, Kyungmin Park , linux-samsung-soc@vger.kernel.org, Thomas Abraham , Dongjin Kim , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch adds EHCI device node on device tree for Exynos4 and defines its default platform data, s5p_usb_phy_init and s5p_usb_phy_exit, so that those function can be called from the driver. Signed-off-by: Dongjin Kim --- arch/arm/boot/dts/exynos4.dtsi | 7 +++++++ arch/arm/mach-exynos/mach-exynos4-dt.c | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi index 92bca86..df1a9f0 100644 --- a/arch/arm/boot/dts/exynos4.dtsi +++ b/arch/arm/boot/dts/exynos4.dtsi @@ -140,6 +140,13 @@ status = "disabled"; }; + ehci@12580000 { + compatible = "samsung,exynos-ehci"; + reg = <0x12580000 0x100>; + interrupts = <0 70 0>; + status = "disabled"; + }; + serial@13800000 { compatible = "samsung,exynos4210-uart"; reg = <0x13800000 0x100>; diff --git a/arch/arm/mach-exynos/mach-exynos4-dt.c b/arch/arm/mach-exynos/mach-exynos4-dt.c index 92757ff..c8a23f0 100644 --- a/arch/arm/mach-exynos/mach-exynos4-dt.c +++ b/arch/arm/mach-exynos/mach-exynos4-dt.c @@ -13,6 +13,7 @@ #include #include +#include #include #include @@ -20,9 +21,15 @@ #include #include +#include #include "common.h" +static struct s5p_ehci_platdata s5p_ehci_platdata = { + .phy_init = s5p_usb_phy_init, + .phy_exit = s5p_usb_phy_exit, +}; + /* * The following lookup table is used to override device names when devices * are registered from device tree. This is temporarily added to enable @@ -80,6 +87,8 @@ static const struct of_dev_auxdata exynos4_auxdata_lookup[] __initconst = { OF_DEV_AUXDATA("arm,pl330", EXYNOS4_PA_MDMA1, "dma-pl330.2", NULL), OF_DEV_AUXDATA("samsung,exynos4210-tmu", EXYNOS4_PA_TMU, "exynos-tmu", NULL), + OF_DEV_AUXDATA("samsung,exynos-ehci", EXYNOS4_PA_EHCI, + "s5p-ehci", &s5p_ehci_platdata), {}, };