]> git.baikalelectronics.ru Git - uboot.git/commitdiff
Correct SPL uses of USB_MUSB_HOST
authorSimon Glass <sjg@chromium.org>
Sun, 5 Feb 2023 22:44:26 +0000 (15:44 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 10 Feb 2023 12:41:40 +0000 (07:41 -0500)
This converts 2 usages of this option to the non-SPL form, since there is
no SPL_USB_MUSB_HOST defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/phy/phy-ab8500-usb.c
drivers/usb/musb-new/omap2430.c

index 0e04595717b8378d30448e3302a9009d21a925f6..3d3d48c9733a4bfcc2482d135c53922ccc18be7d 100644 (file)
@@ -19,7 +19,7 @@ static int ab8500_usb_phy_power_on(struct phy *phy)
        struct udevice *dev = phy->dev;
        uint set = AB8500_BIT_PHY_CTRL_DEVICE_EN;
 
-       if (CONFIG_IS_ENABLED(USB_MUSB_HOST))
+       if (IS_ENABLED(CONFIG_USB_MUSB_HOST))
                set = AB8500_BIT_PHY_CTRL_HOST_EN;
 
        return pmic_clrsetbits(dev->parent, AB8500_USB_PHY_CTRL_REG,
index 42e7abddbc2b5eca45676444eabc92a7749dd5fb..482dfdc6be61fda0e66069618becf325760fd13b 100644 (file)
@@ -231,7 +231,7 @@ static int omap2430_musb_probe(struct udevice *dev)
 
        otg_board_data = &plat->otg_board_data;
 
-       if (CONFIG_IS_ENABLED(USB_MUSB_HOST)) {
+       if (IS_ENABLED(CONFIG_USB_MUSB_HOST)) {
                struct musb_host_data *host = dev_get_priv(dev);
                struct usb_bus_priv *priv = dev_get_uclass_priv(dev);