diff options
author | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2013-12-06 16:54:42 +0100 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2013-12-06 16:54:42 +0100 |
commit | 375a4496ff250baf6e4b845c1ebf40e4b3c409a3 (patch) | |
tree | 5ca8593cadc7a3d47e275f2de5288e2314cb0361 /drivers/usb/gadget/s3c_udc_otg.c | |
parent | c35cf8dc9fd90ff108abe08527df042bcd29a02f (diff) | |
parent | 55f2118c11ff933e272c1084f93e72ff719a269b (diff) | |
download | u-boot-imx-375a4496ff250baf6e4b845c1ebf40e4b3c409a3.zip u-boot-imx-375a4496ff250baf6e4b845c1ebf40e4b3c409a3.tar.gz u-boot-imx-375a4496ff250baf6e4b845c1ebf40e4b3c409a3.tar.bz2 |
Merge branch 'u-boot-samsung/master' into 'u-boot-arm/master'
Diffstat (limited to 'drivers/usb/gadget/s3c_udc_otg.c')
-rw-r--r-- | drivers/usb/gadget/s3c_udc_otg.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/usb/gadget/s3c_udc_otg.c b/drivers/usb/gadget/s3c_udc_otg.c index 7e20209..ba17a04 100644 --- a/drivers/usb/gadget/s3c_udc_otg.c +++ b/drivers/usb/gadget/s3c_udc_otg.c @@ -167,8 +167,13 @@ void otg_phy_init(struct s3c_udc *dev) writel((readl(&phy->phypwr) &~(OTG_DISABLE_0 | ANALOG_PWRDOWN) &~FORCE_SUSPEND_0), &phy->phypwr); - writel((readl(&phy->phyclk) &~(ID_PULLUP0 | COMMON_ON_N0)) | - CLK_SEL_24MHZ, &phy->phyclk); /* PLL 24Mhz */ + if (s5p_cpu_id == 0x4412) + writel((readl(&phy->phyclk) & ~(EXYNOS4X12_ID_PULLUP0 | + EXYNOS4X12_COMMON_ON_N0)) | EXYNOS4X12_CLK_SEL_24MHZ, + &phy->phyclk); /* PLL 24Mhz */ + else + writel((readl(&phy->phyclk) & ~(ID_PULLUP0 | COMMON_ON_N0)) | + CLK_SEL_24MHZ, &phy->phyclk); /* PLL 24Mhz */ writel((readl(&phy->rstcon) &~(LINK_SW_RST | PHYLNK_SW_RST)) | PHY_SW_RST0, &phy->rstcon); |