diff options
Diffstat (limited to 'arch/powerpc/platforms/83xx/usb.c')
-rw-r--r-- | arch/powerpc/platforms/83xx/usb.c | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/arch/powerpc/platforms/83xx/usb.c b/arch/powerpc/platforms/83xx/usb.c index 64bcf0a33c71..cc99c280aad9 100644 --- a/arch/powerpc/platforms/83xx/usb.c +++ b/arch/powerpc/platforms/83xx/usb.c | |||
@@ -137,15 +137,21 @@ int mpc831x_usb_cfg(void) | |||
137 | 137 | ||
138 | /* Configure pin mux for ULPI. There is no pin mux for UTMI */ | 138 | /* Configure pin mux for ULPI. There is no pin mux for UTMI */ |
139 | if (prop && !strcmp(prop, "ulpi")) { | 139 | if (prop && !strcmp(prop, "ulpi")) { |
140 | temp = in_be32(immap + MPC83XX_SICRL_OFFS); | 140 | if (of_device_is_compatible(immr_node, "fsl,mpc8315-immr")) { |
141 | temp &= ~MPC831X_SICRL_USB_MASK; | 141 | clrsetbits_be32(immap + MPC83XX_SICRL_OFFS, |
142 | temp |= MPC831X_SICRL_USB_ULPI; | 142 | MPC8315_SICRL_USB_MASK, |
143 | out_be32(immap + MPC83XX_SICRL_OFFS, temp); | 143 | MPC8315_SICRL_USB_ULPI); |
144 | 144 | clrsetbits_be32(immap + MPC83XX_SICRH_OFFS, | |
145 | temp = in_be32(immap + MPC83XX_SICRH_OFFS); | 145 | MPC8315_SICRH_USB_MASK, |
146 | temp &= ~MPC831X_SICRH_USB_MASK; | 146 | MPC8315_SICRH_USB_ULPI); |
147 | temp |= MPC831X_SICRH_USB_ULPI; | 147 | } else { |
148 | out_be32(immap + MPC83XX_SICRH_OFFS, temp); | 148 | clrsetbits_be32(immap + MPC83XX_SICRL_OFFS, |
149 | MPC831X_SICRL_USB_MASK, | ||
150 | MPC831X_SICRL_USB_ULPI); | ||
151 | clrsetbits_be32(immap + MPC83XX_SICRH_OFFS, | ||
152 | MPC831X_SICRH_USB_MASK, | ||
153 | MPC831X_SICRH_USB_ULPI); | ||
154 | } | ||
149 | } | 155 | } |
150 | 156 | ||
151 | iounmap(immap); | 157 | iounmap(immap); |