From patchwork Wed Feb 13 06:26:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 14766 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id DBF4C23E33 for ; Wed, 13 Feb 2013 06:20:05 +0000 (UTC) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by fiordland.canonical.com (Postfix) with ESMTP id 7EF8BA1913F for ; Wed, 13 Feb 2013 06:20:05 +0000 (UTC) Received: by mail-ve0-f173.google.com with SMTP id oz10so799454veb.32 for ; Tue, 12 Feb 2013 22:20:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-auditid:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-brightmail-tracker:x-brightmail-tracker :dlp-filter:x-mtr:x-cfilter-loop:x-gm-message-state; bh=6E8GjuvZu7CuF9S/CfYXYBwjoIKtzuVusTiXg5cHEdo=; b=DmYxZvncjgEvUPb6xUlkmrfbC6OsrHUthDblFbqcTVts8bYxJMBDSF25CAyQ2gPC2e Lzr85hgpB66B+BFN2UqYBYYWDhVYnwnXQS7QRt93WH11/vb/vlKnxYWRFko43BKeGn/P RSa6sflCYe7zBd0Y6p19ndsjvw8UxTMr8VqfJDbM11VxqMmeMlPLSauLk1GePnef51Xc /DXslT+vTkEZz7G1Uf0MuNgT8ShwXz/YhSO+fZRUveEswTRn//uDEB4q7+uuHSjHjhk/ OfTcfJKEK3jUKDQSoWuQ4YiIox7+8z1lsGmYdi2Lqi96r6WJ3gK0InFa1Kn4tzdalZUD Q/Bg== X-Received: by 10.52.38.163 with SMTP id h3mr24254240vdk.35.1360736405002; Tue, 12 Feb 2013 22:20:05 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.221.4.5 with SMTP id oa5csp177561vcb; Tue, 12 Feb 2013 22:20:04 -0800 (PST) X-Received: by 10.50.88.199 with SMTP id bi7mr8634080igb.70.1360736404303; Tue, 12 Feb 2013 22:20:04 -0800 (PST) Received: from mailout4.samsung.com (mailout4.samsung.com. [203.254.224.34]) by mx.google.com with ESMTP id t10si2158906pay.273.2013.02.12.22.20.03; Tue, 12 Feb 2013 22:20:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of gautam.vivek@samsung.com designates 203.254.224.34 as permitted sender) client-ip=203.254.224.34; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of gautam.vivek@samsung.com designates 203.254.224.34 as permitted sender) smtp.mail=gautam.vivek@samsung.com Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MI500C9VAX69FK0@mailout4.samsung.com> for patches@linaro.org; Wed, 13 Feb 2013 15:20:03 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.123]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id C6.30.03880.2903B115; Wed, 13 Feb 2013 15:20:03 +0900 (KST) X-AuditID: cbfee61b-b7fb06d000000f28-fb-511b3092077b Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 06.30.03880.2903B115; Wed, 13 Feb 2013 15:20:02 +0900 (KST) Received: from vivekkumarg-linuxpc.sisodomain.com ([107.108.73.134]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MI500929AW4VY80@mmp2.samsung.com> for patches@linaro.org; Wed, 13 Feb 2013 15:20:02 +0900 (KST) From: Vivek Gautam To: u-boot@lists.denx.de Cc: patches@linaro.org, mk7.kang@samsung.com, marex@denx.de, sjg@chromium.org, kmpark@infradead.org, rajeshwari.s@samsung.com Subject: [PATCH v2 2/2] usb: ehci: exynos: Enable non-dt path Date: Wed, 13 Feb 2013 11:56:48 +0530 Message-id: <1360736808-27209-3-git-send-email-gautam.vivek@samsung.com> X-Mailer: git-send-email 1.7.6.5 In-reply-to: <1360736808-27209-1-git-send-email-gautam.vivek@samsung.com> References: <1360736808-27209-1-git-send-email-gautam.vivek@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrELMWRmVeSWpSXmKPExsWyRsSkWneygXSgwZGlLBZTDn9hcWD0uHNt D1sAYxSXTUpqTmZZapG+XQJXxsHp01gL2rgqOh9dY2tgXMXRxcjJISFgInH+yBVWCFtM4sK9 9WwgtpDAUkaJzX+yYGoWLjnF2MXIBRSfzigxc14zC4SzikniXtsBdpAqNgFdiaa3uxhBbBEB CYlf/VfBbGaBeolbN9exgNjCArYSD9+fYAKxWQRUJVruvwaKc3DwCnhINE4Uh1imIPHm9jNm EJtTwFPi9qROFoiDPCSOzPnCDLJXQuA6m8SJU9dZIeYISHybfAhsjoSArMSmA8wQcyQlDq64 wTKBUXgBI8MqRtHUguSC4qT0XCO94sTc4tK8dL3k/NxNjMAQPP3vmfQOxlUNFocYBTgYlXh4 HUKkAoVYE8uKK3MPMUpwMCuJ8E7gkA4U4k1JrKxKLcqPLyrNSS0+xJgMtHwis5Rocj4wPvJK 4g2NTcxNjU0tjYzMTE1JE1YS52U89SRASCA9sSQ1OzW1ILUIZgsTB6dUA+P6+DSpFS9v7PwV bys7Me3y9pbgn+xNGxz1jntNK5phuXDuKvmU6rRZaUzZd3tsdkS+3lnBFPxCq17Yd+tqa3fl FMctO5d0nlSJvNb5O6fy49XMDQXBfeGnKt/E/mQyM/OytAr8nnbw9G2dOTMbM5ZeP7C89N7N jdor2UoyZroUnFLXNNKf3qfEUpyRaKjFXFScCABZDMQOhQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrEIsWRmVeSWpSXmKPExsVy+t9jQd1JBtKBBldO61pMOfyFxYHR4861 PWwBjFENjDYZqYkpqUUKqXnJ+SmZeem2St7B8c7xpmYGhrqGlhbmSgp5ibmptkouPgG6bpk5 QGOVFMoSc0qBQgGJxcVK+naYJoSGuOlawDRG6PqGBMH1GBmggYQ1jBkHp09jLWjjquh8dI2t gXEVRxcjJ4eEgInEwiWnGCFsMYkL99azdTFycQgJTGeUmDmvmQXCWcUkca/tADtIFZuArkTT 211gHSICEhK/+q+C2cwC9RK3bq5jAbGFBWwlHr4/wQRiswioSrTcfw0U5+DgFfCQaJwoDrFM QeLN7WfMIDangKfE7UmdYK1CQCVH5nxhnsDIu4CRYRWjaGpBckFxUnqukV5xYm5xaV66XnJ+ 7iZGcIg/k97BuKrB4hCjAAejEg+vQ4hUoBBrYllxZe4hRgkOZiUR3gkc0oFCvCmJlVWpRfnx RaU5qcWHGJOBjprILCWanA+Mv7ySeENjE3NTY1NLEwsTM0vShJXEeRlPPQkQEkhPLEnNTk0t SC2C2cLEwSnVwLguhTfjiUdu1qMzcQs2MO7Tf3ctop/xDp9Vzg+ZaQVWIXe+3qhoC3bju7hu 5Y8XtxYfWX2ucY+5dfID51tf78k9f2M8h9v3Q59iTCrbur6LChMnJFT+MkxfbHs1+arjiem+ e1LMlq0Ta7E0bolwdGl/9N2KOSlbck7d102tRRMVY5N85m9delCJpTgj0VCLuag4EQA3pj2P tQIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQm5EVxd78PB9oZBruhKKy0efzOAbWVkSJn77I12JZNiY17HXAGcInO6cDWe6EYi5Ke9/rjO Enabling the non-dt path for the driver so that we don't get any build errors for non-dt configuration. Signed-off-by: Vivek Gautam --- drivers/usb/host/ehci-exynos.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c index 68f12fc..8c75c07 100644 --- a/drivers/usb/host/ehci-exynos.c +++ b/drivers/usb/host/ehci-exynos.c @@ -47,6 +47,7 @@ struct exynos_ehci { static struct exynos_ehci exynos; +#ifdef CONFIG_OF_CONTROL static int exynos_usb_parse_dt(const void *blob, struct exynos_ehci *exynos) { unsigned int node; @@ -87,6 +88,7 @@ static int exynos_usb_parse_dt(const void *blob, struct exynos_ehci *exynos) return 0; } +#endif /* Setup the EHCI host controller. */ static void setup_usb_phy(struct exynos_usb_phy *usb) @@ -148,7 +150,12 @@ int ehci_hcd_init(int index, struct ehci_hccr **hccr, struct ehci_hcor **hcor) { struct exynos_ehci *ctx = &exynos; +#ifdef CONFIG_OF_CONTROL exynos_usb_parse_dt(gd->fdt_blob, ctx); +#else + ctx->usb = (struct exynos_usb_phy *)samsung_get_base_usb_phy(); + ctx->hcd = samsung_get_base_usb_ehci(); +#endif setup_usb_phy(ctx->usb);