Commit 5d5716eebccaa9b9ab977b7d5a9fae2abb7a8829

Authored by Marek Vasut
1 parent a4bb9b3636

usb: s3c-otg: Rename usb/s3c_udc.h to usb/dwc2_udc.h

The driver is actually for the Designware DWC2 controller.
This patch renames the global s3c_udc.h header to dwc2_udc.h.

The rename is done automatically:
	$ sed -i "s/s3c_udc\.h/dwc2_udc.h/g" \
		`git grep "s3c_udc\.h" | cut -d : -f 1`

Signed-off-by: Marek Vasut <marex@denx.de>

Showing 16 changed files with 39 additions and 39 deletions Side-by-side Diff

board/altera/arria5-socdk/socfpga.c
... ... @@ -9,7 +9,7 @@
9 9 #include <asm/io.h>
10 10  
11 11 #include <usb.h>
12   -#include <usb/s3c_udc.h>
  12 +#include <usb/dwc2_udc.h>
13 13 #include <usb_mass_storage.h>
14 14  
15 15 #include <micrel.h>
board/altera/cyclone5-socdk/socfpga.c
... ... @@ -9,7 +9,7 @@
9 9 #include <asm/io.h>
10 10  
11 11 #include <usb.h>
12   -#include <usb/s3c_udc.h>
  12 +#include <usb/dwc2_udc.h>
13 13 #include <usb_mass_storage.h>
14 14  
15 15 #include <micrel.h>
board/broadcom/bcm28155_ap/bcm28155_ap.c
... ... @@ -13,7 +13,7 @@
13 13 #include <asm/arch/sysmap.h>
14 14  
15 15 #include <usb.h>
16   -#include <usb/s3c_udc.h>
  16 +#include <usb/dwc2_udc.h>
17 17 #include <g_dnl.h>
18 18  
19 19 #define SECWATCHDOG_SDOGCR_OFFSET 0x00000000
board/denx/mcvevk/socfpga.c
... ... @@ -9,7 +9,7 @@
9 9 #include <asm/io.h>
10 10  
11 11 #include <usb.h>
12   -#include <usb/s3c_udc.h>
  12 +#include <usb/dwc2_udc.h>
13 13 #include <usb_mass_storage.h>
14 14  
15 15 DECLARE_GLOBAL_DATA_PTR;
board/ebv/socrates/socfpga.c
... ... @@ -9,7 +9,7 @@
9 9 #include <asm/io.h>
10 10  
11 11 #include <usb.h>
12   -#include <usb/s3c_udc.h>
  12 +#include <usb/dwc2_udc.h>
13 13 #include <usb_mass_storage.h>
14 14  
15 15 #include <micrel.h>
board/samsung/goni/goni.c
... ... @@ -10,7 +10,7 @@
10 10 #include <asm/gpio.h>
11 11 #include <asm/arch/mmc.h>
12 12 #include <power/pmic.h>
13   -#include <usb/s3c_udc.h>
  13 +#include <usb/dwc2_udc.h>
14 14 #include <asm/arch/cpu.h>
15 15 #include <power/max8998_pmic.h>
16 16 #include <samsung/misc.h>
board/samsung/odroid/odroid.c
... ... @@ -19,7 +19,7 @@
19 19 #include <errno.h>
20 20 #include <mmc.h>
21 21 #include <usb.h>
22   -#include <usb/s3c_udc.h>
  22 +#include <usb/dwc2_udc.h>
23 23 #include <samsung/misc.h>
24 24 #include "setup.h"
25 25  
board/samsung/trats/trats.c
... ... @@ -18,7 +18,7 @@
18 18 #include <asm/arch/watchdog.h>
19 19 #include <asm/arch/power.h>
20 20 #include <power/pmic.h>
21   -#include <usb/s3c_udc.h>
  21 +#include <usb/dwc2_udc.h>
22 22 #include <power/max8997_pmic.h>
23 23 #include <power/max8997_muic.h>
24 24 #include <power/battery.h>
board/samsung/trats2/trats2.c
... ... @@ -21,7 +21,7 @@
21 21 #include <libtizen.h>
22 22 #include <errno.h>
23 23 #include <usb.h>
24   -#include <usb/s3c_udc.h>
  24 +#include <usb/dwc2_udc.h>
25 25 #include <usb_mass_storage.h>
26 26  
27 27 DECLARE_GLOBAL_DATA_PTR;
board/samsung/universal_c210/universal.c
... ... @@ -17,7 +17,7 @@
17 17 #include <ld9040.h>
18 18 #include <power/pmic.h>
19 19 #include <usb.h>
20   -#include <usb/s3c_udc.h>
  20 +#include <usb/dwc2_udc.h>
21 21 #include <asm/arch/cpu.h>
22 22 #include <power/max8998_pmic.h>
23 23 #include <libtizen.h>
board/terasic/sockit/socfpga.c
... ... @@ -9,7 +9,7 @@
9 9 #include <asm/io.h>
10 10  
11 11 #include <usb.h>
12   -#include <usb/s3c_udc.h>
  12 +#include <usb/dwc2_udc.h>
13 13 #include <usb_mass_storage.h>
14 14  
15 15 #include <micrel.h>
drivers/usb/gadget/dwc2_udc_otg.c
... ... @@ -46,7 +46,7 @@
46 46 #define DEBUG_OUT_EP 0
47 47 #define DEBUG_IN_EP 0
48 48  
49   -#include <usb/s3c_udc.h>
  49 +#include <usb/dwc2_udc.h>
50 50  
51 51 #define EP0_CON 0
52 52 #define EP_MASK 0xF
drivers/usb/gadget/dwc2_udc_otg_phy.c
... ... @@ -36,7 +36,7 @@
36 36 #include "dwc2_udc_otg_priv.h"
37 37 #include <usb/lin_gadget_compat.h>
38 38  
39   -#include <usb/s3c_udc.h>
  39 +#include <usb/dwc2_udc.h>
40 40  
41 41 void otg_phy_init(struct dwc2_udc *dev)
42 42 {
drivers/usb/gadget/dwc2_udc_otg_priv.h
... ... @@ -14,7 +14,7 @@
14 14 #include <linux/usb/gadget.h>
15 15 #include <linux/list.h>
16 16 #include <usb/lin_gadget_compat.h>
17   -#include <usb/s3c_udc.h>
  17 +#include <usb/dwc2_udc.h>
18 18  
19 19 /*-------------------------------------------------------------------------*/
20 20 /* DMA bounce buffer size, 16K is enough even for mass storage */
include/usb/dwc2_udc.h
  1 +/*
  2 + * drivers/usb/gadget/dwc2_udc.h
  3 + * Designware DWC2 on-chip full/high speed USB device controllers
  4 + * Copyright (C) 2005 for Samsung Electronics
  5 + *
  6 + * SPDX-License-Identifier: GPL-2.0+
  7 + */
  8 +
  9 +#ifndef __DWC2_USB_GADGET
  10 +#define __DWC2_USB_GADGET
  11 +
  12 +#define PHY0_SLEEP (1 << 5)
  13 +
  14 +struct dwc2_plat_otg_data {
  15 + int (*phy_control)(int on);
  16 + unsigned int regs_phy;
  17 + unsigned int regs_otg;
  18 + unsigned int usb_phy_ctrl;
  19 + unsigned int usb_flags;
  20 + unsigned int usb_gusbcfg;
  21 +};
  22 +
  23 +int dwc2_udc_probe(struct dwc2_plat_otg_data *pdata);
  24 +
  25 +#endif /* __DWC2_USB_GADGET */
include/usb/s3c_udc.h
1   -/*
2   - * drivers/usb/gadget/s3c_udc.h
3   - * Designware DWC2 on-chip full/high speed USB device controllers
4   - * Copyright (C) 2005 for Samsung Electronics
5   - *
6   - * SPDX-License-Identifier: GPL-2.0+
7   - */
8   -
9   -#ifndef __S3C_USB_GADGET
10   -#define __S3C_USB_GADGET
11   -
12   -#define PHY0_SLEEP (1 << 5)
13   -
14   -struct dwc2_plat_otg_data {
15   - int (*phy_control)(int on);
16   - unsigned int regs_phy;
17   - unsigned int regs_otg;
18   - unsigned int usb_phy_ctrl;
19   - unsigned int usb_flags;
20   - unsigned int usb_gusbcfg;
21   -};
22   -
23   -int dwc2_udc_probe(struct dwc2_plat_otg_data *pdata);
24   -
25   -#endif