Message ID | 1438205976-11105-2-git-send-email-peter.griffin@linaro.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-forward+bncBDF47HN2VEIRBH4Q4WWQKGQEG4DFV6Y@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by patches.linaro.org (Postfix) with ESMTPS id E958F22DB5 for <linaro@patches.linaro.org>; Wed, 29 Jul 2015 21:39:44 +0000 (UTC) Received: by lbcjf8 with SMTP id jf8sf7995786lbc.0 for <linaro@patches.linaro.org>; Wed, 29 Jul 2015 14:39:44 -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=TpvN0t93wFZ+nZbMSD5r/nEHTQ+jZy4rCxRLcE8RH7CZpkFVazw4tssvcgK3iuBbaN WxT3S+P+4cyJ68agnUUyleIGznKDnMVkGZ416Q3KMMj9rXPzJSwXtOfO97PuptIIe90B /OdW7j2MS0U8ZdGJ8IpWjxGEENKGwryIDTPxIvt2o1mWIEcLEX+QW0pEJFhqXlDlA96n KdyoM/EAuNt2ycA/y4UZsBDPGieW8sc66YZMI71W8O9LR2GD6uvFvyx50P6pthCDZr5x eZk9ta8DrUZUBbCDhc930HwhYx6Rht1dXRwaf43mlHn9L6+f9sjfQlYQEO1j0t1cr8yg AZGA== X-Gm-Message-State: ALoCoQkJ6W5nqoWZb5kpyaZc0f0fkbsIHdqei0kMhO9Z1JtwGNbQQP4wN9vXNjWd7dWxcuDyDHYW X-Received: by 10.180.35.162 with SMTP id i2mr1747792wij.6.1438205983974; Wed, 29 Jul 2015 14:39:43 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.163.65 with SMTP id yg1ls97174lab.26.gmail; Wed, 29 Jul 2015 14:39:43 -0700 (PDT) X-Received: by 10.112.40.51 with SMTP id u19mr40889346lbk.44.1438205983791; Wed, 29 Jul 2015 14:39:43 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id 7si22573857laq.112.2015.07.29.14.39.43 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jul 2015 14:39:43 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lbbyj8 with SMTP id yj8so15515666lbb.0 for <patchwork-forward@linaro.org>; Wed, 29 Jul 2015 14:39:43 -0700 (PDT) X-Received: by 10.152.120.135 with SMTP id lc7mr40108156lab.41.1438205983423; Wed, 29 Jul 2015 14:39:43 -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 l6csp119951lba; Wed, 29 Jul 2015 14:39:42 -0700 (PDT) X-Received: by 10.194.60.131 with SMTP id h3mr79983237wjr.156.1438205982686; Wed, 29 Jul 2015 14:39:42 -0700 (PDT) Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com. [209.85.212.171]) by mx.google.com with ESMTPS id s4si29442494wiw.68.2015.07.29.14.39.42 for <patches@linaro.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jul 2015 14:39:42 -0700 (PDT) Received-SPF: pass (google.com: domain of peter.griffin@linaro.org designates 209.85.212.171 as permitted sender) client-ip=209.85.212.171; Received: by wibxm9 with SMTP id xm9so44014107wib.1 for <patches@linaro.org>; Wed, 29 Jul 2015 14:39:42 -0700 (PDT) X-Received: by 10.180.10.200 with SMTP id k8mr21699251wib.5.1438205982460; Wed, 29 Jul 2015 14:39:42 -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 h9sm40559615wjx.20.2015.07.29.14.39.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Jul 2015 14:39:41 -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 v3 1/8] usb: dwc2: Call board_usb_init() from usb_lowlevel_init() Date: Wed, 29 Jul 2015 22:39:29 +0100 Message-Id: <1438205976-11105-2-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438205976-11105-1-git-send-email-peter.griffin@linaro.org> References: <1438205976-11105-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.217.178 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(+)