19 Feb, 2020

2 commits


06 Feb, 2020

2 commits

  • At present dm/device.h includes the linux-compatible features. This
    requires including linux/compat.h which in turn includes a lot of headers.
    One of these is malloc.h which we thus end up including in every file in
    U-Boot. Apart from the inefficiency of this, it is problematic for sandbox
    which needs to use the system malloc() in some files.

    Move the compatibility features into a separate header file.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • At present devres.h is included in all files that include dm.h but few
    make use of it. Also this pulls in linux/compat which adds several more
    headers. Drop the automatic inclusion and require files to include devres
    themselves. This provides a good indication of which files use devres.

    Signed-off-by: Simon Glass
    Reviewed-by: Anatolij Gustschin

    Simon Glass
     

20 Jan, 2020

1 commit


22 Dec, 2019

1 commit

  • DWC3 support phy interfaces like 8/16-bit UTMI+. phy interface
    initialization code would handle them properly along with UNKNOWN
    type by default if none of the user/board doesn't need to use the
    phy interfaces at all.

    The current code is masking the 8/16-bit UTMI+ interface bits globally
    which indeed effect the UNKNOWN cases, therefore it effects the platforms
    which are not using phy interfaces at all.

    So, handle the phy masking bits accordingly on respective interface
    type cases.

    Fixes: 6b7ebff00190 ("usb: dwc3: Add phy interface for dwc3_uboot")
    Reported-by: Andy Shevchenko
    Signed-off-by: Jagan Teki

    Jagan Teki
     

03 Dec, 2019

1 commit


23 Nov, 2019

1 commit

  • U-Boot has two different variants of dwc3 initializations,
    - with dm variant gadget, so the respective dm driver would
    call the dwc3_init in core.
    - with non-dm variant gadget, so the usage board file would
    call dwc3_uboot_init in core.

    The driver probe would handle all respective gadget properties
    including phy interface via phy_type property and then trigger
    dwc3_init for dm-variant gadgets.

    So, to support the phy interface for non-dm variant gadgets,
    the better option is dwc3_uboot_init since there is no
    dedicated controller for non-dm variant gadgets.

    This patch support for adding phy interface like 8/16-bit UTMI+
    code for dwc3_uboot.

    This change used Linux phy.h enum list, to make proper code
    compatibility.

    Cc: Marek Vasut
    Tested-by: Levin Du
    Signed-off-by: Jagan Teki
    Reviewed-by: Marek Vasut
    Reviewed-by: Kever Yang

    Jagan Teki
     

31 Oct, 2019

2 commits


24 Oct, 2019

8 commits


08 Oct, 2019

1 commit


05 Jul, 2019

2 commits


09 May, 2019

1 commit

  • Adds support for Amlogic G12A USB Control Glue HW.

    The Amlogic G12A SoC Family embeds 2 USB Controllers :
    - a DWC3 IP configured as Host for USB2 and USB3
    - a DWC2 IP configured as Peripheral USB2 Only

    A glue connects these both controllers to 2 USB2 PHYs, and optionnally
    to an USB3+PCIE Combo PHY shared with the PCIE controller.

    The Glue configures the UTMI 8bit interfaces for the USB2 PHYs, including
    routing of the OTG PHY between the DWC3 and DWC2 controllers, and
    setups the on-chip OTG mode selection for this PHY.

    This driver sets the OTG capable port as Host mode by default,
    the switch to Device mode is to be done in a separate patch.

    Signed-off-by: Neil Armstrong
    Reviewed-by: Marek Vasut

    Neil Armstrong
     

15 Dec, 2018

3 commits


07 Dec, 2018

9 commits


27 Nov, 2018

1 commit


28 Oct, 2018

1 commit


08 Jun, 2018

1 commit

  • Add WARN_ONCE definition to allow single time notification
    of warnings to the user.
    Taken from Linux kernel (4.17) with slight changes
    (Removed __section(.data.once))

    Signed-off-by: Ramon Fried
    [trini: Drop the musb and dwc3 compat versions]
    Signed-off-by: Tom Rini

    Ramon Fried
     

18 May, 2018

3 commits