summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2020-12-03 19:45:02 +0200
committerBin Meng <[email protected]>2020-12-16 13:51:24 +0800
commitf89e8acbc81ee6d9e57f0156c3ee6de44528c8b7 (patch)
treea75f202de4cf30c2ee83904856d689d8865383cb /arch
parent23cdbba8b199f2f35c28e40dbb59a5e935dbbae9 (diff)
x86: edison: Switch to DM_USB_GADGET
DM is the modern default approach for the drivers in U-Boot. It also allows to configure code via Device Tree. Move Intel Edison to use DM_USB_GADGET and drop hard coded values. Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Bin Meng <[email protected]>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/cpu/tangier/Kconfig4
-rw-r--r--arch/x86/dts/edison.dts8
2 files changed, 8 insertions, 4 deletions
diff --git a/arch/x86/cpu/tangier/Kconfig b/arch/x86/cpu/tangier/Kconfig
index 94d9d74a325..19aaf165d6a 100644
--- a/arch/x86/cpu/tangier/Kconfig
+++ b/arch/x86/cpu/tangier/Kconfig
@@ -29,8 +29,4 @@ config SYS_CAR_SIZE
Space in bytes in eSRAM used as Cache-As-RAM (CAR).
Note this size must not exceed eSRAM's total size.
-config SYS_USB_OTG_BASE
- hex
- default 0xf9100000
-
endif
diff --git a/arch/x86/dts/edison.dts b/arch/x86/dts/edison.dts
index 600d6d25624..8d245bffc2f 100644
--- a/arch/x86/dts/edison.dts
+++ b/arch/x86/dts/edison.dts
@@ -107,6 +107,14 @@
usb: usb@f9100000 {
compatible = "intel,tangier-dwc3";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ dwc3: dwc3 {
+ reg = <0xf9100000 0x100000>;
+ maximum-speed = "high-speed";
+ dr_mode = "peripheral";
+ };
};
watchdog: wdt@0 {