summaryrefslogtreecommitdiff
path: root/payloads/libpayload/drivers/usb/usbinit.c
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2019-03-05 16:55:15 -0800
committerPatrick Georgi <pgeorgi@google.com>2019-03-07 17:15:30 +0000
commiteab2a29c8bb0fafebd398cf60425dee37df27820 (patch)
tree419dab747e0148442c1a7ac7082fcfe37784ea27 /payloads/libpayload/drivers/usb/usbinit.c
parentb431833c129e0d6402c6f7be8e6028e4b54e94fb (diff)
payloads: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX)
This patch is a raw application of find payloads/ -type f | \ xargs sed -i -e 's/IS_ENABLED\s*(CONFIG_/CONFIG(/g' Change-Id: I883b03b189f59b5d998a09a2596b0391a2d5cf33 Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/31775 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'payloads/libpayload/drivers/usb/usbinit.c')
-rw-r--r--payloads/libpayload/drivers/usb/usbinit.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/payloads/libpayload/drivers/usb/usbinit.c b/payloads/libpayload/drivers/usb/usbinit.c
index 721fde8a93..0ac27e4456 100644
--- a/payloads/libpayload/drivers/usb/usbinit.c
+++ b/payloads/libpayload/drivers/usb/usbinit.c
@@ -37,7 +37,7 @@
#include "dwc2.h"
#include <usb/usbdisk.h>
-#if IS_ENABLED(CONFIG_LP_USB_PCI)
+#if CONFIG(LP_USB_PCI)
/**
* Initializes USB controller attached to PCI
*
@@ -72,7 +72,7 @@ static int usb_controller_initialize(int bus, int dev, int func)
pciid >> 16, pciid & 0xFFFF, func);
switch (prog_if) {
case 0x00:
-#if IS_ENABLED(CONFIG_LP_USB_UHCI)
+#if CONFIG(LP_USB_UHCI)
usb_debug("UHCI controller\n");
uhci_pci_init (pci_device);
#else
@@ -81,7 +81,7 @@ static int usb_controller_initialize(int bus, int dev, int func)
break;
case 0x10:
-#if IS_ENABLED(CONFIG_LP_USB_OHCI)
+#if CONFIG(LP_USB_OHCI)
usb_debug("OHCI controller\n");
ohci_pci_init(pci_device);
#else
@@ -90,7 +90,7 @@ static int usb_controller_initialize(int bus, int dev, int func)
break;
case 0x20:
-#if IS_ENABLED(CONFIG_LP_USB_EHCI)
+#if CONFIG(LP_USB_EHCI)
usb_debug("EHCI controller\n");
ehci_pci_init(pci_device);
#else
@@ -99,7 +99,7 @@ static int usb_controller_initialize(int bus, int dev, int func)
break;
case 0x30:
-#if IS_ENABLED(CONFIG_LP_USB_XHCI)
+#if CONFIG(LP_USB_XHCI)
usb_debug("xHCI controller\n");
xhci_pci_init(pci_device);
#else
@@ -166,7 +166,7 @@ static void usb_scan_pci_bus(int bus)
*/
int usb_initialize(void)
{
-#if IS_ENABLED(CONFIG_LP_USB_PCI)
+#if CONFIG(LP_USB_PCI)
usb_scan_pci_bus(0);
#endif
return 0;
@@ -175,19 +175,19 @@ int usb_initialize(void)
hci_t *usb_add_mmio_hc(hc_type type, void *bar)
{
switch (type) {
-#if IS_ENABLED(CONFIG_LP_USB_OHCI)
+#if CONFIG(LP_USB_OHCI)
case OHCI:
return ohci_init((unsigned long)bar);
#endif
-#if IS_ENABLED(CONFIG_LP_USB_EHCI)
+#if CONFIG(LP_USB_EHCI)
case EHCI:
return ehci_init((unsigned long)bar);
#endif
-#if IS_ENABLED(CONFIG_LP_USB_DWC2)
+#if CONFIG(LP_USB_DWC2)
case DWC2:
return dwc2_init(bar);
#endif
-#if IS_ENABLED(CONFIG_LP_USB_XHCI)
+#if CONFIG(LP_USB_XHCI)
case XHCI:
return xhci_init((unsigned long)bar);
#endif