diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-12-03 20:45:02 +0300 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2020-12-16 08:51:24 +0300 |
commit | f89e8acbc81ee6d9e57f0156c3ee6de44528c8b7 (patch) | |
tree | a75f202de4cf30c2ee83904856d689d8865383cb /arch/x86 | |
parent | 23cdbba8b199f2f35c28e40dbb59a5e935dbbae9 (diff) | |
download | u-boot-f89e8acbc81ee6d9e57f0156c3ee6de44528c8b7.tar.xz |
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 <andriy.shevchenko@linux.intel.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/cpu/tangier/Kconfig | 4 | ||||
-rw-r--r-- | arch/x86/dts/edison.dts | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/arch/x86/cpu/tangier/Kconfig b/arch/x86/cpu/tangier/Kconfig index 94d9d74a32..19aaf165d6 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 600d6d2562..8d245bffc2 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 { |