Hi,
We have a custom board with AM3352ZCE. We are basically using the same code from our previous board, AM3358. U-Boot version is 2013.10 and Linux kernel version is 3.12.10. In the AM3358 board, we connected the USB to USB1 and USB detection works well. But in AM3352ZCE, we cannot detect the USB even in u-boot when we do 'usb start'. I traced the u-boot code the initialization times out on drivers/usb/musb-new/musb_uboot.c on this part:
do {
if (musb_readb(mbase, MUSB_DEVCTL) & MUSB_DEVCTL_HM)
break;
} while (--timeout);
So it seems it cannot read MUSB_DEVCTL.
I already this part in the am335x header file:
#define CONFIG_AM335X_USB0_MODE MUSB_HOST
#define CONFIG_AM335X_USB1_MODE MUSB_PERIPHERAL
This is the original setup on the AM3352ZCE:
AM335X_USB0_DRVVBUS - Set to high via GPIO to enable power on AM335X_USB0_VBUS
AM335X_USB0_ID - Connected to the ground via 100K resistor
AM335X_USB0_VBUS - Connected via 1.2K resistor
Then we tried modifying it this way:
AM335X_USB0_DRVVBUS - Disconnected, VBUS has been supplied directly with a 5V power
But that didn't work as well.
Any help or tip on how to resolve this issue?