1. 程式人生 > >S3c6410 linux核心移植(3)--- usb驅動出錯解決

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 */