From patchwork Wed Mar 6 05:54:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 15250 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 79F9823E64 for ; Wed, 6 Mar 2013 05:56:19 +0000 (UTC) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by fiordland.canonical.com (Postfix) with ESMTP id 22FE0A196E4 for ; Wed, 6 Mar 2013 05:56:19 +0000 (UTC) Received: by mail-vc0-f179.google.com with SMTP id k1so4719254vck.10 for ; Tue, 05 Mar 2013 21:56:18 -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=PIJ450e/7h0VTXlGC6HFBAzEf0TwlMt1Yi1I4I3az/Q=; b=Fj281KTuuv2nLjd6Ljvm+93UWJHobYssm0Lf4cobr6yrZT52DabddITTmgGzTA+51D 4GuxNG0I8/vnDWn+LDQqv5UzmvMCuQtujEgoTGee28Wk6F3jKtcS0ORY2URQGdWUyRLF GVs0hmu4LEr+U7qoWBckr7y5KgqEf9xSMcAKxrBXirAZutLYre1VTb8Xczu0s1WXNASx HfbaEq/zeMWuuHeWOoZXcpdaB1EUT/XpOWCRzmvbFIfhu3D3ZdAuvnUX14GVZ8PzorE+ iXCAeHim2jCj/mE6R0xvN+4aLdOJG9TZH7VIfpyXjNQenU4hjejJ3DbYK81Ky/fiXQvg yYiQ== X-Received: by 10.58.48.166 with SMTP id m6mr10910876ven.59.1362549378605; Tue, 05 Mar 2013 21:56:18 -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.58.127.98 with SMTP id nf2csp152162veb; Tue, 5 Mar 2013 21:56:18 -0800 (PST) X-Received: by 10.68.190.195 with SMTP id gs3mr20248494pbc.14.1362549377287; Tue, 05 Mar 2013 21:56:17 -0800 (PST) Received: from mailout3.samsung.com (mailout3.samsung.com. [203.254.224.33]) by mx.google.com with ESMTP id zs4si31374262pbc.312.2013.03.05.21.56.16; Tue, 05 Mar 2013 21:56:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of gautam.vivek@samsung.com designates 203.254.224.33 as permitted sender) client-ip=203.254.224.33; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of gautam.vivek@samsung.com designates 203.254.224.33 as permitted sender) smtp.mail=gautam.vivek@samsung.com Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MJ80092X5TR3SM0@mailout3.samsung.com> for patches@linaro.org; Wed, 06 Mar 2013 14:56:15 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.123]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id E8.5E.18793.F7AD6315; Wed, 06 Mar 2013 14:56:15 +0900 (KST) X-AuditID: cbfee68f-b7f6a6d000004969-ae-5136da7f4981 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id DD.1B.03918.F7AD6315; Wed, 06 Mar 2013 14:56:15 +0900 (KST) Received: from vivekkumarg-linuxpc.sisodomain.com ([107.108.214.169]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MJ8005FX5TCUK20@mmp2.samsung.com>; Wed, 06 Mar 2013 14:56:15 +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, rajeshwari.s@samsung.com Subject: [PATCH v3 2/2] usb: ehci: exynos: Enable non-dt path Date: Wed, 06 Mar 2013 11:24:03 +0530 Message-id: <1362549243-20587-3-git-send-email-gautam.vivek@samsung.com> X-Mailer: git-send-email 1.7.6.5 In-reply-to: <1362549243-20587-1-git-send-email-gautam.vivek@samsung.com> References: <1362549243-20587-1-git-send-email-gautam.vivek@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrILMWRmVeSWpSXmKPExsWyRsSkWrf+llmgQe8EQ4s3bY2MFh1HWhgt phz+wmLRsvYAq8W3LdsYLd7u7WR3YPOY3XCRxWPerBMsHneu7WHzOHtnB6NH35ZVjAGsUVw2 Kak5mWWpRfp2CVwZJ05fYS2YwVXRfaWbvYFxN0cXIyeHhICJxItbRxkhbDGJC/fWs4HYQgJL GSUW7pSHqbl75AUTRHw6o8TrVpkuRi4gewqTxN7Vf9hBEmwCuhJNb3eBDRIRkJD41X8VzGYW yJR4t/kSM4gtLGAr8fvRaTCbRUBV4vC3E2A2r4CHROOF/ewQyxQk3tx+BhbnFPCUmLt7EjPE Yg+J9feOMIMslhCYzC6x5u8tJohBAhLfJh9i6WLkAErISmw6wAwxR1Li4IobLBMYhRcwMqxi FE0tSC4oTkovMtYrTswtLs1L10vOz93ECAzu0/+e9e9gvHvA+hBjMtC4icxSosn5wOjIK4k3 NDYxNzU2NTOytLQ0JU1YSZxX/pJMoJBAemJJanZqakFqUXxRaU5q8SFGJg5OqQZGI9tDLi8d 7A9MTw56lfZT5+wak6QI9/fMShzWaV+4dfn/7ro8RSe6UynIVvWhyQ6TvMxFYd9aZFg7lZiD Jp+tWPj605RyDTdGA0kHl+AlJV+NrcSSlNemJOybbL49+NNkx55C6/AozuvL2nrEtV5vC+l4 umPbrEM7HA/633jYfcrk5suXMsFKLMUZiYZazEXFiQDGGFErhAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPIsWRmVeSWpSXmKPExsVy+t9jQd36W2aBBu9+qlu8aWtktOg40sJo MeXwFxaLlrUHWC2+bdnGaPF2bye7A5vH7IaLLB7zZp1g8bhzbQ+bx9k7Oxg9+rasYgxgjWpg tMlITUxJLVJIzUvOT8nMS7dV8g6Od443NTMw1DW0tDBXUshLzE21VXLxCdB1y8wBukFJoSwx pxQoFJBYXKykb4dpQmiIm64FTGOErm9IEFyPkQEaSFjDmHHi9BXWghlcFd1XutkbGHdzdDFy ckgImEjcPfKCCcIWk7hwbz0biC0kMJ1R4nWrTBcjF5A9hUli7+o/7CAJNgFdiaa3uxhBbBEB CYlf/VfBbGaBTIl3my8xg9jCArYSvx+dBrNZBFQlDn87AWbzCnhINF7Yzw6xTEHize1nYHFO AU+JubsnMUMs9pBYf+8I8wRG3gWMDKsYRVMLkguKk9JzDfWKE3OLS/PS9ZLzczcxgqPnmdQO xpUNFocYBTgYlXh4LZTMAoVYE8uKK3MPMUpwMCuJ8HKdAQrxpiRWVqUW5ccXleakFh9iTAa6 aiKzlGhyPjCy80riDY1NzE2NTS1NLEzMLEkTVhLnZTz1JEBIID2xJDU7NbUgtQhmCxMHp1QD 4yHpNOFvC+7+3a86f2f0E5W/2x71GIpZHhIL5PicM+d/2S7tXvdHW0U2n40pu7Vzk8Ry8Vv8 vdFLQl99a17QrLL2k0HFIuvsgjvu6/ae+Mq8+/XtO/k5kW69WpF+K8UimY9u+uvAuizjwxn7 Q1s7yoQmWKbuF507w/xg2M5YkT37wy6IbD8ie1iJpTgj0VCLuag4EQBrOpEJ4gIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQkORJ3L4lfixsWjFq3/RXpBiTAo2H9Q3u23AS/H+19YEQcWvNUpWmtJjk3PAM51MoIzvzOM 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 Acked-by: Simon Glass --- 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 c6b7a5e..6de23ec 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) { fdt_addr_t addr; @@ -90,6 +91,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) @@ -151,7 +153,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 = (struct ehci_hccr *)samsung_get_base_usb_ehci(); +#endif setup_usb_phy(ctx->usb);