public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: u-boot@lists.denx.de
Subject: [PATCH v2 1/2] x86: edison: Use dwc3-generic driver for Intel Edison
Date: Thu,  3 Dec 2020 19:45:01 +0200	[thread overview]
Message-ID: <20201203174502.9896-1-andriy.shevchenko@linux.intel.com> (raw)

Use generic Synopsys DesignWare 3 driver on Intel Edison.
For now it's just a stub which allows future refactoring.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
v2: no changes
 arch/x86/cpu/tangier/Kconfig    | 3 +++
 arch/x86/dts/edison.dts         | 4 ++++
 drivers/usb/dwc3/dwc3-generic.c | 1 +
 3 files changed, 8 insertions(+)

diff --git a/arch/x86/cpu/tangier/Kconfig b/arch/x86/cpu/tangier/Kconfig
index d2b7edecd604..94d9d74a325c 100644
--- a/arch/x86/cpu/tangier/Kconfig
+++ b/arch/x86/cpu/tangier/Kconfig
@@ -10,8 +10,11 @@ config INTEL_TANGIER
 	imply MMC_SDHCI
 	imply MMC_SDHCI_SDMA
 	imply MMC_SDHCI_TANGIER
+	imply MISC
 	imply USB
+	imply USB_XHCI_HCD
 	imply USB_DWC3
+	imply USB_DWC3_GENERIC
 
 if INTEL_TANGIER
 
diff --git a/arch/x86/dts/edison.dts b/arch/x86/dts/edison.dts
index 97cc6ec386c2..600d6d256246 100644
--- a/arch/x86/dts/edison.dts
+++ b/arch/x86/dts/edison.dts
@@ -105,6 +105,10 @@
 		reg = <0xff009000 0x1000>;
 	};
 
+	usb: usb at f9100000 {
+		compatible = "intel,tangier-dwc3";
+	};
+
 	watchdog: wdt at 0 {
 		compatible = "intel,tangier-wdt";
 	};
diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c
index a936f71d2e5d..222358d39593 100644
--- a/drivers/usb/dwc3/dwc3-generic.c
+++ b/drivers/usb/dwc3/dwc3-generic.c
@@ -449,6 +449,7 @@ static const struct udevice_id dwc3_glue_ids[] = {
 	{ .compatible = "rockchip,rk3328-dwc3" },
 	{ .compatible = "rockchip,rk3399-dwc3" },
 	{ .compatible = "qcom,dwc3" },
+	{ .compatible = "intel,tangier-dwc3" },
 	{ }
 };
 
-- 
2.29.2

             reply	other threads:[~2020-12-03 17:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-03 17:45 Andy Shevchenko [this message]
2020-12-03 17:45 ` [PATCH v2 2/2] x86: edison: Switch to DM_USB_GADGET Andy Shevchenko
2020-12-12 15:39   ` Simon Glass
2020-12-16  3:40   ` Bin Meng
2020-12-16  5:52     ` Bin Meng
2020-12-12 15:39 ` [PATCH v2 1/2] x86: edison: Use dwc3-generic driver for Intel Edison Simon Glass
2020-12-16  3:39 ` Bin Meng
2020-12-16  5:52   ` Bin Meng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201203174502.9896-1-andriy.shevchenko@linux.intel.com \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox