提交 73a0bd77 编写于 作者: D Dinh Nguyen 提交者: Greg Kroah-Hartman

USB: mxc: gadget: remove 60mhz clock requirement for freescale mx51 usb core

renamed fsl_mx3_udc.c -> fsl_mxc_udc.c
for mx51, usb core is clocked from sources that are not 60mhz.
Signed-off-by: NDinh Nguyen <Dinh.Nguyen@freescale.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 166ceb69
...@@ -20,7 +20,7 @@ obj-$(CONFIG_USB_ATMEL_USBA) += atmel_usba_udc.o ...@@ -20,7 +20,7 @@ obj-$(CONFIG_USB_ATMEL_USBA) += atmel_usba_udc.o
obj-$(CONFIG_USB_FSL_USB2) += fsl_usb2_udc.o obj-$(CONFIG_USB_FSL_USB2) += fsl_usb2_udc.o
fsl_usb2_udc-objs := fsl_udc_core.o fsl_usb2_udc-objs := fsl_udc_core.o
ifeq ($(CONFIG_ARCH_MXC),y) ifeq ($(CONFIG_ARCH_MXC),y)
fsl_usb2_udc-objs += fsl_mx3_udc.o fsl_usb2_udc-objs += fsl_mxc_udc.o
endif endif
obj-$(CONFIG_USB_M66592) += m66592-udc.o obj-$(CONFIG_USB_M66592) += m66592-udc.o
obj-$(CONFIG_USB_R8A66597) += r8a66597-udc.o obj-$(CONFIG_USB_R8A66597) += r8a66597-udc.o
......
...@@ -50,12 +50,14 @@ int fsl_udc_clk_init(struct platform_device *pdev) ...@@ -50,12 +50,14 @@ int fsl_udc_clk_init(struct platform_device *pdev)
goto egusb; goto egusb;
} }
freq = clk_get_rate(mxc_usb_clk); if (!cpu_is_mx51()) {
if (pdata->phy_mode != FSL_USB2_PHY_ULPI && freq = clk_get_rate(mxc_usb_clk);
(freq < 59999000 || freq > 60001000)) { if (pdata->phy_mode != FSL_USB2_PHY_ULPI &&
dev_err(&pdev->dev, "USB_CLK=%lu, should be 60MHz\n", freq); (freq < 59999000 || freq > 60001000)) {
ret = -EINVAL; dev_err(&pdev->dev, "USB_CLK=%lu, should be 60MHz\n", freq);
goto eclkrate; ret = -EINVAL;
goto eclkrate;
}
} }
ret = clk_enable(mxc_usb_clk); ret = clk_enable(mxc_usb_clk);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册