Message ID | 1438278925-3038-2-git-send-email-peter.griffin@linaro.org |
---|---|
State | Accepted |
Commit | 93b9957894f062b24f7985374d5546d700f0d382 |
Headers | show
Return-Path: <patchwork-forward+bncBDF47HN2VEIRBFGK5GWQKGQESKIWD6A@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by patches.linaro.org (Postfix) with ESMTPS id 97B4D22DB5 for <linaro@patches.linaro.org>; Thu, 30 Jul 2015 17:55:33 +0000 (UTC) Received: by lbcjf8 with SMTP id jf8sf16628423lbc.0 for <linaro@patches.linaro.org>; Thu, 30 Jul 2015 10:55:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=ALpieZFOVZeD4Bkk0iAp8Ql0fDvAqk0SSaffnoEUGZw=; b=e1Bpy+DcHsZLnbnTJJW7EiWqfBB2n/Fwec88679rZ78jV23MvuaTU45nneGe39cU2f fgUPUFXUt3NkJibhAwUpk7nPBzxL1P1p//ApTtvB269REIauUPsLAcwY8Ii0f+VJ41g2 k++mON/Vi08DKHsOLJGRpP2imfae8GBBC9JOu9jwyohWK4BY+0g6c99zn1H3jHqHGNSd P2ZunrOrHGTAz+mRe/fKhIHx6m1AmQxgoUhmydfE8asVtTl7X0dmkcRz/b+a5OoQ/0i+ FAc5K2wXyS6LOeidmy4ZcoHgIaOoiN6PHacahdCKQwicqnFXHxwX1XAQrnNPbkffpW1Q sJ/A== X-Gm-Message-State: ALoCoQniC4ysuS5LI8v+kjXmp7iFA8nrypQ+9PDgz+sNNXfXVlq9JLE53CS6wTuNCA3Uvir+HxNH X-Received: by 10.194.60.73 with SMTP id f9mr18168556wjr.6.1438278932589; Thu, 30 Jul 2015 10:55:32 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.195 with SMTP id o3ls221276laf.1.gmail; Thu, 30 Jul 2015 10:55:32 -0700 (PDT) X-Received: by 10.112.83.135 with SMTP id q7mr45979760lby.13.1438278932429; Thu, 30 Jul 2015 10:55:32 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id i5si1411616lam.8.2015.07.30.10.55.32 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Jul 2015 10:55:32 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by lagw2 with SMTP id w2so29789182lag.3 for <patchwork-forward@linaro.org>; Thu, 30 Jul 2015 10:55:32 -0700 (PDT) X-Received: by 10.152.37.228 with SMTP id b4mr45347726lak.117.1438278932217; Thu, 30 Jul 2015 10:55:32 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.7.198 with SMTP id l6csp764850lba; Thu, 30 Jul 2015 10:55:31 -0700 (PDT) X-Received: by 10.180.38.34 with SMTP id d2mr8220517wik.48.1438278931344; Thu, 30 Jul 2015 10:55:31 -0700 (PDT) Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com. [209.85.212.175]) by mx.google.com with ESMTPS id rz7si3227155wjb.70.2015.07.30.10.55.31 for <patches@linaro.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Jul 2015 10:55:31 -0700 (PDT) Received-SPF: pass (google.com: domain of peter.griffin@linaro.org designates 209.85.212.175 as permitted sender) client-ip=209.85.212.175; Received: by wibxm9 with SMTP id xm9so2158674wib.0 for <patches@linaro.org>; Thu, 30 Jul 2015 10:55:31 -0700 (PDT) X-Received: by 10.194.184.82 with SMTP id es18mr96090863wjc.79.1438278931099; Thu, 30 Jul 2015 10:55:31 -0700 (PDT) Received: from localhost.localdomain (cpc14-aztw22-2-0-cust189.18-1.cable.virginm.net. [82.45.1.190]) by smtp.gmail.com with ESMTPSA id lm5sm257774wic.22.2015.07.30.10.55.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Jul 2015 10:55:30 -0700 (PDT) From: Peter Griffin <peter.griffin@linaro.org> To: u-boot@lists.denx.de, albert.u.boot@aribaud.net, trini@konsulko.com, panto@antoniou-consulting.com, marex@denx.de, sjg@chromium.org, robherring2@gmail.com Cc: Peter Griffin <peter.griffin@linaro.org> Subject: [PATCH v4 1/9] usb: dwc2: Call board_usb_init() from usb_lowlevel_init() Date: Thu, 30 Jul 2015 18:55:17 +0100 Message-Id: <1438278925-3038-2-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438278925-3038-1-git-send-email-peter.griffin@linaro.org> References: <1438278925-3038-1-git-send-email-peter.griffin@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.griffin@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c index eee60a2..ad35841 100644 --- a/drivers/usb/host/dwc2.c +++ b/drivers/usb/host/dwc2.c @@ -929,6 +929,10 @@ int usb_lowlevel_init(int index, enum usb_init_type init, void **controller) root_hub_devnum = 0; + /* board dependant init */ + if (board_usb_init(index, USB_INIT_HOST)) + return -1; + snpsid = readl(®s->gsnpsid); printf("Core Release: %x.%03x\n", snpsid >> 12 & 0xf, snpsid & 0xfff);
This patch makes the dwc2 controller like ehci / ohci / xhci controllers by calling the board_usb_init() function from usb_lowlevel_init. This can then be implemented by specific platforms to initialise their USB hardware (phys / clocks etc). Signed-off-by: Peter Griffin <peter.griffin@linaro.org> --- drivers/usb/host/dwc2.c | 4 ++++ 1 file changed, 4 insertions(+)