USB support in MPC8313 Board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USB support in MPC8313 Board

675 Views
AVR3
Contributor I

Hi ,

We are trying to add USB support in one of our MPC8313 Based card running in Linux platform and USB clock is provided from a 48Mhz crystal in the card,

Following are the steps we followed to do the same ,

 1.In Kernel config we added USB host support and Mass storage support

 2.Device tree we added USB node like below,

 usb@23000 {
           device_type = "usb";
           compatible = "fsl-usb2-dr";
           reg = <23000 1000>;
           #address-cells = <1>;
           #size-cells = <0>;
           interrupt-parent = < &ipic >;
           interrupts = <26 8>;
           phy_type = "utmi_wide";


But now when we boot the card we are getting the following error & board is hanging at this point ,

"
vfsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1 "


if someone have some idea,could you please help to solve this issue

--
Thanks in Advance
avr

0 Kudos
2 Replies

432 Views
genuap
NXP Employee
NXP Employee

Do you have anything plugged into USB at this time? 

 

It might be good to try enabling USB under UBOOT first - just to see if it comes up correctly. You just have to write to the Enable bit in the USB controller and it should go through the initialization with the PHY. You can check that this went correctly in the error registers or the viewport.

 

If that works then I'd look again at the USB drivers, maybe make them as a module and reinsert them - so you can change the modules as needed.

 

 ... Paul

 

0 Kudos

432 Views
AVR3
Contributor I

Dear Paul Genua,

 

Thanks For the help

 

In uboot we tried enabling the usb using "USB General-Purpose Register (CONTROL)"  USB_EN bit .but we didnt see any error registers for this UTMI mode.

 

could you pleasse tell me the register name .

 

--

Thanks

avr

0 Kudos