From patchwork Wed Dec 26 18:42:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dongjin Kim X-Patchwork-Id: 1911441 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 03FF13FC66 for ; Wed, 26 Dec 2012 18:47:59 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Tnvxj-0004sw-SU; Wed, 26 Dec 2012 18:44:19 +0000 Received: from mail-pa0-f54.google.com ([209.85.220.54]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Tnvxg-0004s4-Co for linux-arm-kernel@lists.infradead.org; Wed, 26 Dec 2012 18:44:17 +0000 Received: by mail-pa0-f54.google.com with SMTP id bi5so5021159pad.13 for ; Wed, 26 Dec 2012 10:44:14 -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:in-reply-to :references; bh=gZzBJM6LgMHMN6JXTGg5fZzvG5zLCS8d5tyItULGuHE=; b=ZIIjBsXZwtnieuj+T/GyIR7L97b4hyTIHQVLj+81NCEBG4BGNj2ftMQzkdCVx67N6M nJ87Xe2kggo7WtANErMal5VWbDVscgnRHWi4RE/8FjqEP48YNNZhEGBqY07VAkQUccvV eC0xDnUORl9HN3B3LIbUyXoN+JTxK6yXg4XIQ0BSbhhLw4yY9P1qD887vrN1sU8txyce sKHdQ3USIFuYNUsAEKLat10ln6CdQBnGQkLU+5zFfdMJrtvfFtxHcJ4+dPu8lsEgYC3m OoiD5zelL6WBXkrj9BAbnwnjbp2sA2FFe8gnV0utaAqrFoW5Zb+WHrQFDnRvWb7iLaUI xnSQ== X-Received: by 10.68.137.131 with SMTP id qi3mr87693291pbb.114.1356547452857; Wed, 26 Dec 2012 10:44:12 -0800 (PST) Received: from localhost.localdomain ([125.177.223.206]) by mx.google.com with ESMTPS id pv8sm16296265pbc.26.2012.12.26.10.44.08 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 26 Dec 2012 10:44:11 -0800 (PST) From: Dongjin Kim To: linux-samsung-soc@vger.kernel.org Subject: [PATCH 1/2] ARM: dts: Add EHCI device tree node for Exynos4 Date: Thu, 27 Dec 2012 03:42:20 +0900 Message-Id: <1356547341-23620-2-git-send-email-tobetter@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1356547341-23620-1-git-send-email-tobetter@gmail.com> References: <1356547341-23620-1-git-send-email-tobetter@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121226_134416_603158_3F88EC4E X-CRM114-Status: GOOD ( 13.54 ) 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.54 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 , 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), {}, };