diff options
| author | Tom Rini <[email protected]> | 2023-01-10 11:19:45 -0500 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-01-20 12:27:24 -0500 |
| commit | 6e7df1d151a7a127caf3b62ff6dfc003fc2aefcd (patch) | |
| tree | ae38e9dcf468b2e4e58293561fae87895d9b549f /drivers/usb | |
| parent | ad242344681f6a0076a6bf100aa83ac9ecbea355 (diff) | |
global: Finish CONFIG -> CFG migration
At this point, the remaining places where we have a symbol that is
defined as CONFIG_... are in fairly odd locations. While as much dead
code has been removed as possible, some of these locations are simply
less obvious at first. In other cases, this code is used, but was
defined in such a way as to have been missed by earlier checks. Perform
a rename of all such remaining symbols to be CFG_... rather than
CONFIG_...
Signed-off-by: Tom Rini <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'drivers/usb')
| -rw-r--r-- | drivers/usb/gadget/ci_udc.c | 10 | ||||
| -rw-r--r-- | drivers/usb/gadget/ci_udc.h | 6 | ||||
| -rw-r--r-- | drivers/usb/host/ehci-faraday.c | 6 | ||||
| -rw-r--r-- | drivers/usb/host/ehci-tegra.c | 6 | ||||
| -rw-r--r-- | drivers/usb/musb-new/linux-compat.h | 4 | ||||
| -rw-r--r-- | drivers/usb/musb-new/musb_core.c | 4 | ||||
| -rw-r--r-- | drivers/usb/musb-new/musb_core.h | 2 | ||||
| -rw-r--r-- | drivers/usb/ulpi/omap-ulpi-viewport.c | 2 | ||||
| -rw-r--r-- | drivers/usb/ulpi/ulpi-viewport.c | 2 | ||||
| -rw-r--r-- | drivers/usb/ulpi/ulpi.c | 2 |
10 files changed, 22 insertions, 22 deletions
diff --git a/drivers/usb/gadget/ci_udc.c b/drivers/usb/gadget/ci_udc.c index d9a89a17b27..b9258d73575 100644 --- a/drivers/usb/gadget/ci_udc.c +++ b/drivers/usb/gadget/ci_udc.c @@ -322,7 +322,7 @@ static void ep_enable(int num, int in, int maxpacket) if (num != 0) { struct ept_queue_head *head = ci_get_qh(num, in); - head->config = CONFIG_MAX_PKT(maxpacket) | CONFIG_ZLT; + head->config = CFG_MAX_PKT(maxpacket) | CFG_ZLT; ci_flush_qh(num); } writel(n, &udc->epctrl[num]); @@ -959,11 +959,11 @@ static int ci_udc_probe(void) */ head = controller.epts + i; if (i < 2) - head->config = CONFIG_MAX_PKT(EP0_MAX_PACKET_SIZE) - | CONFIG_ZLT | CONFIG_IOS; + head->config = CFG_MAX_PKT(EP0_MAX_PACKET_SIZE) + | CFG_ZLT | CFG_IOS; else - head->config = CONFIG_MAX_PKT(EP_MAX_PACKET_SIZE) - | CONFIG_ZLT; + head->config = CFG_MAX_PKT(EP_MAX_PACKET_SIZE) + | CFG_ZLT; head->next = TERMINATE; head->info = 0; diff --git a/drivers/usb/gadget/ci_udc.h b/drivers/usb/gadget/ci_udc.h index 95cc07992b4..bea2f9f3fe3 100644 --- a/drivers/usb/gadget/ci_udc.h +++ b/drivers/usb/gadget/ci_udc.h @@ -128,9 +128,9 @@ struct ept_queue_head { unsigned reserved_4; }; -#define CONFIG_MAX_PKT(n) ((n) << 16) -#define CONFIG_ZLT (1 << 29) /* stop on zero-len xfer */ -#define CONFIG_IOS (1 << 15) /* IRQ on setup */ +#define CFG_MAX_PKT(n) ((n) << 16) +#define CFG_ZLT (1 << 29) /* stop on zero-len xfer */ +#define CFG_IOS (1 << 15) /* IRQ on setup */ struct ept_queue_item { unsigned next; diff --git a/drivers/usb/host/ehci-faraday.c b/drivers/usb/host/ehci-faraday.c index b61b5382df4..85a35269601 100644 --- a/drivers/usb/host/ehci-faraday.c +++ b/drivers/usb/host/ehci-faraday.c @@ -16,8 +16,8 @@ #include "ehci.h" -#ifndef CONFIG_USB_EHCI_BASE_LIST -#define CONFIG_USB_EHCI_BASE_LIST { CONFIG_USB_EHCI_BASE } +#ifndef CFG_USB_EHCI_BASE_LIST +#define CFG_USB_EHCI_BASE_LIST { CONFIG_USB_EHCI_BASE } #endif union ehci_faraday_regs { @@ -93,7 +93,7 @@ int ehci_hcd_init(int index, enum usb_init_type init, struct ehci_hccr *hccr; struct ehci_hcor *hcor; union ehci_faraday_regs *regs; - uint32_t base_list[] = CONFIG_USB_EHCI_BASE_LIST; + uint32_t base_list[] = CFG_USB_EHCI_BASE_LIST; if (index < 0 || index >= ARRAY_SIZE(base_list)) return -1; diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c index b02ee89c3ec..11d776747c0 100644 --- a/drivers/usb/host/ehci-tegra.c +++ b/drivers/usb/host/ehci-tegra.c @@ -578,8 +578,8 @@ static int init_utmi_usb_controller(struct fdt_usb *config, #ifdef CONFIG_USB_ULPI /* if board file does not set a ULPI reference frequency we default to 24MHz */ -#ifndef CONFIG_ULPI_REF_CLK -#define CONFIG_ULPI_REF_CLK 24000000 +#ifndef CFG_ULPI_REF_CLK +#define CFG_ULPI_REF_CLK 24000000 #endif /* set up the ULPI USB controller with the parameters provided */ @@ -594,7 +594,7 @@ static int init_ulpi_usb_controller(struct fdt_usb *config, /* set up ULPI reference clock on pllp_out4 */ clock_enable(PERIPH_ID_DEV2_OUT); - clock_set_pllout(CLOCK_ID_PERIPH, PLL_OUT4, CONFIG_ULPI_REF_CLK); + clock_set_pllout(CLOCK_ID_PERIPH, PLL_OUT4, CFG_ULPI_REF_CLK); /* reset ULPI phy */ if (dm_gpio_is_valid(&config->phy_reset_gpio)) { diff --git a/drivers/usb/musb-new/linux-compat.h b/drivers/usb/musb-new/linux-compat.h index 6d9f19dfe6b..8829567bfb6 100644 --- a/drivers/usb/musb-new/linux-compat.h +++ b/drivers/usb/musb-new/linux-compat.h @@ -16,11 +16,11 @@ * Map U-Boot config options to Linux ones */ #ifdef CONFIG_OMAP34XX -#define CONFIG_SOC_OMAP3430 +#define CFG_SOC_OMAP3430 #endif #ifdef CONFIG_OMAP44XX -#define CONFIG_ARCH_OMAP4 +#define CFG_ARCH_OMAP4 #endif #endif /* __LINUX_COMPAT_H__ */ diff --git a/drivers/usb/musb-new/musb_core.c b/drivers/usb/musb-new/musb_core.c index fc7af7484e4..a42d98ece9b 100644 --- a/drivers/usb/musb-new/musb_core.c +++ b/drivers/usb/musb-new/musb_core.c @@ -1525,8 +1525,8 @@ static int __devinit musb_core_init(u16 musb_type, struct musb *musb) /*-------------------------------------------------------------------------*/ -#if defined(CONFIG_SOC_OMAP2430) || defined(CONFIG_SOC_OMAP3430) || \ - defined(CONFIG_ARCH_OMAP4) || defined(CONFIG_ARCH_U8500) +#if defined(CONFIG_SOC_OMAP2430) || defined(CFG_SOC_OMAP3430) || \ + defined(CFG_ARCH_OMAP4) || defined(CONFIG_ARCH_U8500) static irqreturn_t generic_interrupt(int irq, void *__hci) { diff --git a/drivers/usb/musb-new/musb_core.h b/drivers/usb/musb-new/musb_core.h index 821d0e06f61..adfd81b8544 100644 --- a/drivers/usb/musb-new/musb_core.h +++ b/drivers/usb/musb-new/musb_core.h @@ -151,7 +151,7 @@ enum musb_g_ep0_state { */ #if defined(CONFIG_ARCH_DAVINCI) || defined(CONFIG_SOC_OMAP2430) \ - || defined(CONFIG_SOC_OMAP3430) || defined(CONFIG_ARCH_OMAP4) + || defined(CFG_SOC_OMAP3430) || defined(CFG_ARCH_OMAP4) /* REVISIT indexed access seemed to * misbehave (on DaVinci) for at least peripheral IN ... */ diff --git a/drivers/usb/ulpi/omap-ulpi-viewport.c b/drivers/usb/ulpi/omap-ulpi-viewport.c index 8b930e3fa91..8d71db04a2d 100644 --- a/drivers/usb/ulpi/omap-ulpi-viewport.c +++ b/drivers/usb/ulpi/omap-ulpi-viewport.c @@ -22,7 +22,7 @@ */ static int ulpi_wait(struct ulpi_viewport *ulpi_vp, u32 mask) { - int timeout = CONFIG_USB_ULPI_TIMEOUT; + int timeout = CFG_USB_ULPI_TIMEOUT; while (--timeout) { if (!(readl(ulpi_vp->viewport_addr) & mask)) diff --git a/drivers/usb/ulpi/ulpi-viewport.c b/drivers/usb/ulpi/ulpi-viewport.c index 3bb152be893..55a62808384 100644 --- a/drivers/usb/ulpi/ulpi-viewport.c +++ b/drivers/usb/ulpi/ulpi-viewport.c @@ -34,7 +34,7 @@ */ static int ulpi_wait(struct ulpi_viewport *ulpi_vp, u32 mask) { - int timeout = CONFIG_USB_ULPI_TIMEOUT; + int timeout = CFG_USB_ULPI_TIMEOUT; /* Wait for the bits in mask to become zero. */ while (--timeout) { diff --git a/drivers/usb/ulpi/ulpi.c b/drivers/usb/ulpi/ulpi.c index dd0da0e841e..b5d2c2c2d1c 100644 --- a/drivers/usb/ulpi/ulpi.c +++ b/drivers/usb/ulpi/ulpi.c @@ -207,7 +207,7 @@ int ulpi_suspend(struct ulpi_viewport *ulpi_vp) static int __ulpi_reset_wait(struct ulpi_viewport *ulpi_vp) { u32 val; - int timeout = CONFIG_USB_ULPI_TIMEOUT; + int timeout = CFG_USB_ULPI_TIMEOUT; /* Wait for the RESET bit to become zero */ while (--timeout) { |
