aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea/usbmisc_imx.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2014-11-26 00:44:26 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-26 12:28:12 -0500
commit4a1d6cf156dcf436e5037375007116197f03bfb1 (patch)
treecb521a306d4b760f8e599aed37250b4752f4a5e7 /drivers/usb/chipidea/usbmisc_imx.c
parent8d1dc4d055faafafca3edd8499aeeef3f77803e4 (diff)
usb: chipidea: usbmisc_imx: Read MX53_USB_OTG_PHY_CTRL_1_OFFSET directly
There is no need to do an intermediate step for reading the MX53_USB_OTG_PHY_CTRL_1_OFFSET register. Read it directly instead. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea/usbmisc_imx.c')
-rw-r--r--drivers/usb/chipidea/usbmisc_imx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/chipidea/usbmisc_imx.c b/drivers/usb/chipidea/usbmisc_imx.c
index 29200ebdd357..58591e9dcede 100644
--- a/drivers/usb/chipidea/usbmisc_imx.c
+++ b/drivers/usb/chipidea/usbmisc_imx.c
@@ -171,8 +171,7 @@ static int usbmisc_imx53_init(struct imx_usbmisc_data *data)
171 return -EINVAL; 171 return -EINVAL;
172 172
173 /* Select a 24 MHz reference clock for the PHY */ 173 /* Select a 24 MHz reference clock for the PHY */
174 reg = usbmisc->base + MX53_USB_OTG_PHY_CTRL_1_OFFSET; 174 val = readl(usbmisc->base + MX53_USB_OTG_PHY_CTRL_1_OFFSET);
175 val = readl(reg);
176 val &= ~MX53_USB_PHYCTRL1_PLLDIV_MASK; 175 val &= ~MX53_USB_PHYCTRL1_PLLDIV_MASK;
177 val |= MX53_USB_PLL_DIV_24_MHZ; 176 val |= MX53_USB_PLL_DIV_24_MHZ;
178 writel(val, usbmisc->base + MX53_USB_OTG_PHY_CTRL_1_OFFSET); 177 writel(val, usbmisc->base + MX53_USB_OTG_PHY_CTRL_1_OFFSET);