Philips ISP116x

From EnneEnneWiki

Contents

If you like this driver make a donation with PayPal - it's fast, free and secure!


References

Here an U-boot driver for Philips ISP116x USB Host Controller.

The stable driver's source code is now into USB test branch of u-boot, while an old patch is still on EnneEnne's site.

Compilation

To compile the driver get U-boot source tree (at least version 1.1.6) and give the command:

giometti@zaigor:~/u-boot.git$ patch -p1 < patch_isp116x-hcd_support 
patching file drivers/Makefile
patching file drivers/isp116x-hcd.c
patching file drivers/isp116x.h
patching file include/usb.h

after that you need adding these defines to you board's configuration file (the header file into directory u-boot/include/configs/):

#define CONFIG_USB_ISP116X_HCD
#define ISP116X_HCD_DATA       0x0c000000
#define ISP116X_HCD_ADDR       0x0c000002

#define ISP116X_HCD_USE_EXTRA_DELAY

#define ISP116X_HCD_SEL15kRES
#define ISP116X_HCD_OC_ENABLE

The first three defines enable the driver and define the I/O addresses (so check your board schematics to get the addresses to put in place of 0x0c000000 and 0x0c000002). The last two defines are self explanatory if you know a little bit this chip, but regarding ISP116X_HCD_USE_EXTRA_DELAY we need some extra info.

On some machines I noticed that after packing the USB data into chip's FIFOs an extra delay is needed in order to avoid an error message as shown below:

uboot> usb start
(Re)start USB...
USB:   scanning bus for devices... isp116x: isp116x_submit_job: CTL:TIMEOUT
isp116x: isp116x_submit_job: ****** FIFO not ready! ******

      USB device not responding, giving up (status=4)
      isp116x: isp116x_submit_job: ****** FIFO not empty! ******
      isp116x: isp116x_submit_job: ****** FIFO not empty! ******
      isp116x: isp116x_submit_job: ****** FIFO not empty! ******
      3 USB Device(s) found
             scanning bus for storage devices... 0 Storage Device(s) found

so you may trying to remove that define in order to speed up USB transfer but you are warned...




If you like this driver make a donation with PayPal - it's fast, free and secure!
Personal tools