[U-Boot] configure USB Host1 in U-Boot of iMx53

Sarvesh Gupta Sarvesh.Gupta at infotech-enterprises.com
Wed Jan 16 11:49:56 CET 2013


Dear All,

I have added the USB host controller driver into our Mx53 loco board's u-boot and also made some changes in mx53_loco.h and mx53_loco.c.

Below is the complete log what I am getting on serial console:



U-Boot 2009.08-dirty (Jan 15 2013 - 12:32:20)
CPU:   Freescale i.MX53 family 2.1V at 800 MHz
mx53 pll1: 800MHz
mx53 pll2: 400MHz
mx53 pll3: 216MHz
mx53 pll4: 455MHz
ipg clock     : 66666666Hz
ipg per clock : 33333333Hz
uart clock    : 66666666Hz
cspi clock    : 54000000Hz
ahb clock     : 133333333Hz
axi_a clock   : 400000000Hz
axi_b clock   : 200000000Hz
emi_slow clock: 133333333Hz
ddr clock     : 400000000Hz
esdhc1 clock  : 80000000Hz
esdhc2 clock  : 80000000Hz
esdhc3 clock  : 80000000Hz
esdhc4 clock  : 80000000Hz
nfc clock     : 26666666Hz
Board: MX53-LOCO 1.0
Boot Reason: [POR]
Boot Device: SD
I2C:   ready
DRAM:   1 GB
MMC:   FSL_ESDHC: 0, FSL_ESDHC: 1
*** Warning - bad CRC or MMC, using default environment

In:    serial
Out:   serial
Err:   serial

Serial reinitilized!
Net:   got MAC address from IIM: 00:04:9f:02:41:18
FEC0 [PRIME]
Hit any key to stop autoboot:  0
MX53-LOCO U-Boot >
MX53-LOCO U-Boot >
MX53-LOCO U-Boot > usb start
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... New Device 0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index 0x0 length 0x40
USB DESCRIPTOR_1 18
set address 1
usb_control_msg: request: 0x5, requesttype: 0x0, value 0x1 index 0x0 length 0x0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index 0x0 length 0x12
USB DESCRIPTOR2 18
NEW DEVICE STRINGS : Mfr=1, Product=2, SerialNumber=0
, Dtype=1
, DClass=9
, DProto=1
, Len=18
, MaxP=64
, ConfigNo=1
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 index 0x0 length 0x9
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 index 0x0 length 0x19
get_conf_no 0 Result 25, wLength 25
if 0, ep 0
##EP epmaxpacketin[1] = 8
set configuration 1
usb_control_msg: request: 0x9, requesttype: 0x0, value 0x1 index 0x0 length 0x0
new device strings: Mfr=1, Product=2, SerialNumber=0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x300 index 0x0 length 0xFF
USB device number 1 default language ID 0x1
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x301 index 0x1 length 0xFF
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x302 index 0x1 length 0xFF
Manufacturer u-boot
Product      EHCI Host Controller
SerialNumber
USB hub found
usb_control_msg: request: 0x6, requesttype: 0xA0, value 0x2900 index 0x0 length 0x4
usb_control_msg: request: 0x6, requesttype: 0xA0, value 0x2900 index 0x0 length 0x8
1 ports detected
individual port power switching
standalone hub
global over-current protection
power on to power good time: 20ms
hub controller current requirement: 0mA
port 1 is removable
usb_control_msg: request: 0x0, requesttype: 0xA0, value 0x0 index 0x0 length 0x4
get_hub_status returned status 1, change 8101
local power source is lost (inactive)
no over-current condition exists
enabling power on all ports
usb_control_msg: request: 0x3, requesttype: 0x23, value 0x8 index 0x1 length 0x0
port 1 returns 0
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 length 0x4
Port 1 Status 101 Change 1
port 1 connection change
port 1 connection change
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 length 0x4
portstatus 101, change 1, 12 Mb/s
usb_control_msg: request: 0x1, requesttype: 0x23, value 0x10 index 0x1 length 0x0
hub_port_reset: resetting port 0...
usb_control_msg: request: 0x3, requesttype: 0x23, value 0x4 index 0x1 length 0x0
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 length 0x4
portstatus 503, change 10, 480 Mb/s
STAT_C_CONNECTION = 0 STAT_CONNECTION = 1  USB_PORT_STAT_ENABLE 1
usb_control_msg: request: 0x1, requesttype: 0x23, value 0x14 index 0x1 length 0x0
New Device 1
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index 0x0 length 0x40
EHCI timed out on TD - token=0x80008c80
USB DESCRIPTOR_1 64
hub_port_reset: resetting port 0...
usb_control_msg: request: 0x3, requesttype: 0x23, value 0x4 index 0x1 length 0x0
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 length 0x4
portstatus 503, change 10, 480 Mb/s
STAT_C_CONNECTION = 0 STAT_CONNECTION = 1  USB_PORT_STAT_ENABLE 1
usb_control_msg: request: 0x1, requesttype: 0x23, value 0x14 index 0x1 length 0x0
set address 2
usb_control_msg: request: 0x5, requesttype: 0x0, value 0x2 index 0x0 length 0x0
EHCI timed out on TD - token=0x80008d80
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index 0x0 length 0x12
EHCI timed out on TD - token=0x80008c80
USB DESCRIPTOR2 18
NEW DEVICE STRINGS : Mfr=0, Product=0, SerialNumber=0
, Dtype=0
, DClass=0
, DProto=0
, Len=0
, MaxP=255
, ConfigNo=0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 index 0x0 length 0x9
EHCI timed out on TD - token=0x80008c80
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 index 0x0 length 0x10
EHCI timed out on TD - token=0x80008c80
get_conf_no 0 Result 16, wLength 16
 ERROR: NOT USB_CONFIG_DESC ff
set configuration 0
usb_control_msg: request: 0x9, requesttype: 0x0, value 0x0 index 0x0 length 0x0
EHCI timed out on TD - token=0x80008d80
new device strings: Mfr=0, Product=0, SerialNumber=0
Manufacturer
Product
SerialNumber
2 USB Device(s) found
       scanning bus for storage devices...
0 Storage Device(s) found
MX53-LOCO U-Boot > usb tree

Device Tree:
  1  Hub (480 Mb/s, 0mA)
  |  u-boot EHCI Host Controller
  |
  +-2  See Interface (480 Mb/s, 0mA)



Please look into the matter and please suggest, as I am stuck in my development.


Regards,
Sarvesh Gupta

________________________________

DISCLAIMER:

This email may contain confidential information and is intended only for the use of the specific individual(s) to which it is addressed. If you are not the intended recipient of this email, you are hereby notified that any unauthorized use, dissemination or copying of this email or the information contained in it or attached to it is strictly prohibited. If you received this message in error, please immediately notify the sender at Infotech and delete the original message.


More information about the U-Boot mailing list