S3c6410 linux內核移植(3)--- usb驅動出錯解決

系統啓動時及插入u盤時會打印如下錯誤:hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad? 此爲平臺輸入時鐘設置錯誤,修改如下:

arch/arm/mach-s3c6410/mach-smdk6410.c文件中的:

#ifdef USB_HOST_PORT2_EN

#define OTGH_PHY_CLK_VALUE      (0x60)  /* Serial Interface, otg_phy input clk 48Mhz Oscillator */

#else

#define OTGH_PHY_CLK_VALUE      (0x20)  /* UTMI Interface, otg_phy input clk 48Mhz Oscillator */

改爲:

#ifdef USB_HOST_PORT2_EN

#define OTGH_PHY_CLK_VALUE      (0x60)  /* Serial Interface, otg_phy input clk 48Mhz Oscillator */

#else

#define OTGH_PHY_CLK_VALUE      (0x0)  /* UTMI Interface, otg_phy input clk 48Mhz Oscillator */

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章