今天终于做完usb的移植了,前前后后自己一共做了20几个zImage,其中也发现了很多问题,所幸的是问题都已得到解决,有很多问题是关于make menuconfig的,有这样那样的选项没有选上就会出现问题,以后要注意,还有就是网上的关于tiny6410的移植很少,还不全!哎.......
1、vi arch/arm/mach-s3c64xx/mach-mini6410.c
124行增加/* Initializes OTG Phy. to output 48M clock */
void s3c_otg_phy_config(int enable) {
u32 val;
if (enable) {
__raw_writel(0x0, S3C_PHYPWR); /* Power up */
val = __raw_readl(S3C_PHYCLK);
val &= ~S3C_PHYCLK_CLKSEL_MASK;
__raw_writel(val, S3C_PHYCLK);
__raw_writel(0x1, S3C_RSTCON);
udelay(5);
__raw_writel(0x0, S3C_RSTCON); /* Finish the reset */
udelay(5);
} else {
__raw_writel(0x19, S3C_PHYPWR); /* Power down */
}
}
2、vi drivers/usb/host/ohci-s3c2410.c
修改方法
@@ -25,10