|
@@ -291,10 +291,7 @@ static int samsung_usb2phy_init(struct usb_phy *phy)
|
|
|
samsung_usbphy_cfg_sel(sphy);
|
|
|
|
|
|
/* Initialize usb phy registers */
|
|
|
- if (sphy->drv_data->cpu_type == TYPE_EXYNOS5250)
|
|
|
- samsung_exynos5_usb2phy_enable(sphy);
|
|
|
- else
|
|
|
- samsung_usb2phy_enable(sphy);
|
|
|
+ sphy->drv_data->phy_enable(sphy);
|
|
|
|
|
|
spin_unlock_irqrestore(&sphy->lock, flags);
|
|
|
|
|
@@ -334,10 +331,7 @@ static void samsung_usb2phy_shutdown(struct usb_phy *phy)
|
|
|
}
|
|
|
|
|
|
/* De-initialize usb phy registers */
|
|
|
- if (sphy->drv_data->cpu_type == TYPE_EXYNOS5250)
|
|
|
- samsung_exynos5_usb2phy_disable(sphy);
|
|
|
- else
|
|
|
- samsung_usb2phy_disable(sphy);
|
|
|
+ sphy->drv_data->phy_disable(sphy);
|
|
|
|
|
|
/* Enable phy isolation */
|
|
|
if (sphy->plat && sphy->plat->pmu_isolation)
|
|
@@ -443,6 +437,8 @@ static const struct samsung_usbphy_drvdata usb2phy_s3c64xx = {
|
|
|
.devphy_en_mask = S3C64XX_USBPHY_ENABLE,
|
|
|
.rate_to_clksel = samsung_usbphy_rate_to_clksel_64xx,
|
|
|
.set_isolation = NULL, /* TODO */
|
|
|
+ .phy_enable = samsung_usb2phy_enable,
|
|
|
+ .phy_disable = samsung_usb2phy_disable,
|
|
|
};
|
|
|
|
|
|
static const struct samsung_usbphy_drvdata usb2phy_exynos4 = {
|
|
@@ -451,6 +447,8 @@ static const struct samsung_usbphy_drvdata usb2phy_exynos4 = {
|
|
|
.hostphy_en_mask = EXYNOS_USBPHY_ENABLE,
|
|
|
.rate_to_clksel = samsung_usbphy_rate_to_clksel_64xx,
|
|
|
.set_isolation = samsung_usbphy_set_isolation_4210,
|
|
|
+ .phy_enable = samsung_usb2phy_enable,
|
|
|
+ .phy_disable = samsung_usb2phy_disable,
|
|
|
};
|
|
|
|
|
|
static struct samsung_usbphy_drvdata usb2phy_exynos5 = {
|
|
@@ -459,6 +457,8 @@ static struct samsung_usbphy_drvdata usb2phy_exynos5 = {
|
|
|
.hostphy_reg_offset = EXYNOS_USBHOST_PHY_CTRL_OFFSET,
|
|
|
.rate_to_clksel = samsung_usbphy_rate_to_clksel_4x12,
|
|
|
.set_isolation = samsung_usbphy_set_isolation_4210,
|
|
|
+ .phy_enable = samsung_exynos5_usb2phy_enable,
|
|
|
+ .phy_disable = samsung_exynos5_usb2phy_disable,
|
|
|
};
|
|
|
|
|
|
#ifdef CONFIG_OF
|