diff options
author | Marek Vasut <marex@denx.de> | 2015-12-04 01:44:41 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-12-17 21:54:38 +0100 |
commit | 1f99ab5c9286148360c2021da39f67a9c6d79db0 (patch) | |
tree | 8d87d2dc0c446a95d72ea46950fc4829e7e8dd5e /drivers/usb | |
parent | 2c12ff039ca6e36c8c2025befcda3d91fbf47dcd (diff) | |
download | u-boot-imx-1f99ab5c9286148360c2021da39f67a9c6d79db0.zip u-boot-imx-1f99ab5c9286148360c2021da39f67a9c6d79db0.tar.gz u-boot-imx-1f99ab5c9286148360c2021da39f67a9c6d79db0.tar.bz2 |
usb: s3c-otg: Rename struct s3c_usbotg_phy to dwc2_usbotg_phy
The driver is actually for the Designware DWC2 controller.
This patch renames struct s3c_usbotg_phy to struct dwc2_usbotg_phy
to make things more obvious and clear.
Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/s3c_udc_otg_phy.c | 8 | ||||
-rw-r--r-- | drivers/usb/gadget/s3c_udc_otg_regs.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/usb/gadget/s3c_udc_otg_phy.c b/drivers/usb/gadget/s3c_udc_otg_phy.c index 169f8e4..a761b43 100644 --- a/drivers/usb/gadget/s3c_udc_otg_phy.c +++ b/drivers/usb/gadget/s3c_udc_otg_phy.c @@ -41,8 +41,8 @@ void otg_phy_init(struct dwc2_udc *dev) { unsigned int usb_phy_ctrl = dev->pdata->usb_phy_ctrl; - struct s3c_usbotg_phy *phy = - (struct s3c_usbotg_phy *)dev->pdata->regs_phy; + struct dwc2_usbotg_phy *phy = + (struct dwc2_usbotg_phy *)dev->pdata->regs_phy; dev->pdata->phy_control(1); @@ -79,8 +79,8 @@ void otg_phy_init(struct dwc2_udc *dev) void otg_phy_off(struct dwc2_udc *dev) { unsigned int usb_phy_ctrl = dev->pdata->usb_phy_ctrl; - struct s3c_usbotg_phy *phy = - (struct s3c_usbotg_phy *)dev->pdata->regs_phy; + struct dwc2_usbotg_phy *phy = + (struct dwc2_usbotg_phy *)dev->pdata->regs_phy; /* reset controller just in case */ writel(PHY_SW_RST0, &phy->rstcon); diff --git a/drivers/usb/gadget/s3c_udc_otg_regs.h b/drivers/usb/gadget/s3c_udc_otg_regs.h index c8da803..e5115dd 100644 --- a/drivers/usb/gadget/s3c_udc_otg_regs.h +++ b/drivers/usb/gadget/s3c_udc_otg_regs.h @@ -12,7 +12,7 @@ #define __ASM_ARCH_REGS_USB_OTG_HS_H /* USB2.0 OTG Controller register */ -struct s3c_usbotg_phy { +struct dwc2_usbotg_phy { u32 phypwr; u32 phyclk; u32 rstcon; |