Hi All,
There is something weird confused me for a long time since AM37X EZSDK 05.05.01 released. And I can not resolve this issue with AM3715 26MHZ sys_clk.
With SDK 050501, my usb hub(LAN9514) always disconnect from usb port while doing usb to usb copy(looping to copy file size=10M, these 2 usb are mount on lan9514 usb hub) after several minutes. Then Kernel will show message like this : "port X disabled by hub (EMI?), re-enabling..."
This issue didn't happen on EZSDK 050200, it works properly at SDK 050200.
After compare 050200 & 050501 source code, I found difference between uboot source code
050200: uboot clock.c
} else {
/* input clock divider */
sr32(&prm_base->clksrc_ctrl, 6, 2, 1);
clk_index = sys_clkin_sel; ------> Execution
}
050501: uboot clock.c
if (sys_clkin_sel > 2) {
/* input clock divider */
sr32(&prm_base->clksrc_ctrl, 6, 2, 2);
clk_index = sys_clkin_sel / 2; -------> Execution
} else {
/* input clock divider */
sr32(&prm_base->clksrc_ctrl, 6, 2, 1);
clk_index = sys_clkin_sel;
}
Due to the difference, I modify 050501 uboot clock.c as same as 050200 uboot clock.c
sr32(&prm_base->clksrc_ctrl, 6, 2, 1);
clk_index = sys_clkin_sel;
After modify clock.c and re-build uboot, there is no usb to usb copy issue any more.
I can copy files from one usb to another usb (looping copy) , my usb hub LAN9514 will not disconnect from usb port.
Now, usb hub issue was resolved.
But, another issue occured --> NAND issue.
After I modify clock.c , I cant not have nand flash work properly.
(Nand can work perfect before I modify clock.c.)
When I mount nand device, the file system shows nand bad with whole nand device,and of course mount nand got fail.
At EZSDK 050200 , i can have usb hub(LAN9514) and nand both work perfect with 26MHZ sys_clk.
At EZSDK 050501 , usb hub and nand can not work perperly at same time.
Do anyone have any idea why this issue happened ???
Maybe this is clock issue ????