]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
chipidea: usbmisc_imx: Allow USB OTG to work on mx51
authorFabio Estevam <fabio.estevam@freescale.com>
Sun, 4 May 2014 01:24:39 +0000 (09:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 02:36:43 +0000 (11:36 +0900)
commit33f92a8a926761bfe23d740851d218c0c4eb6463
tree532193eb79fac6fdb7b17c31bc27a8f2290a382b
parentbe6b0c1bd0be7a4f4d75ab40965abf1bd2d9a591
chipidea: usbmisc_imx: Allow USB OTG to work on mx51

The field PLLDIVVALUE of register PHY_CTRL_1 selects the reference clock source
for the PHY:
00 = sysclock uses 19.2 MHz
01 = sysclock uses 24 MHz
10 = sysclock uses 26 MHz
11 = sysclock uses 27 MHz

The reset value for this field is 10 according to the reference manual, and
even though this reset value works for mx53, it does not work for mx51.

So instead of relying on the reset value for the PLLDIVVALUE field, explicitly
set it to 01 so that a 24MHz clock can be selected for the PHY and allowing both
mx51 and mx53 to have USB OTG port functional.

Succesfully tested 'g_ether' on a imx51-babbage and on a imx53-qsb boards.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/usbmisc_imx.c