]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: add support for ULPI/SERIAL/HSIC PHY modes
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Mon, 20 Sep 2021 13:37:22 +0000 (15:37 +0200)
committerRamon Fried <rfried.dev@gmail.com>
Tue, 28 Sep 2021 15:50:55 +0000 (18:50 +0300)
Import usb_phy_interface enum values and DT match strings from the Linux
kernel.

Signed-off-by: Markus Niebel <Markus.Niebel@ew.tq-group.com>
Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
drivers/usb/common/common.c
include/linux/usb/phy.h

index 2a47f40bbabbb3fe1b25c2ac7793de510f7ea8be..43564c9fbaf995ddaba3382849c1af7975e539db 100644 (file)
@@ -80,6 +80,9 @@ static const char *const usbphy_modes[] = {
        [USBPHY_INTERFACE_MODE_UNKNOWN] = "",
        [USBPHY_INTERFACE_MODE_UTMI]    = "utmi",
        [USBPHY_INTERFACE_MODE_UTMIW]   = "utmi_wide",
+       [USBPHY_INTERFACE_MODE_ULPI]    = "ulpi",
+       [USBPHY_INTERFACE_MODE_SERIAL]  = "serial",
+       [USBPHY_INTERFACE_MODE_HSIC]    = "hsic",
 };
 
 enum usb_phy_interface usb_get_phy_mode(ofnode node)
index 1e1217a95834eaa4998f7e81f646b696782f51bd..14b2c7eb2e634c9ef0861ff0b42f0dfd8e2cd84a 100644 (file)
@@ -16,6 +16,9 @@ enum usb_phy_interface {
        USBPHY_INTERFACE_MODE_UNKNOWN,
        USBPHY_INTERFACE_MODE_UTMI,
        USBPHY_INTERFACE_MODE_UTMIW,
+       USBPHY_INTERFACE_MODE_ULPI,
+       USBPHY_INTERFACE_MODE_SERIAL,
+       USBPHY_INTERFACE_MODE_HSIC,
 };
 
 #if CONFIG_IS_ENABLED(DM_USB)