> Hello, > > I have a ported the Telechip TCC720 chip [ARM940T] under ucLinux. > This chip has an OHCI USB device but without PCI, so when I try to > compile the kernel, I get errors in hcd.c because it referes to fields > that are not defined (pdev for example).
Look for an example to the new sl811.c driver in the current usb-2.4 bitkeeper tree. This is an USB-chip without PCI. The driver does something "evil": it implements it's own virtual root hub. The virtual root hub in hcd.c is PCI-only (currently). So, with this chip I don't need hcd.c compiled into usbcore. My q-n-dirty solution was: --- linux-2.4.19/drivers/usb/Makefile~usb24 +++ linux-2.4.19/drivers/usb/Makefile @@ -55,10 +55,12 @@ obj-$(CONFIG_USB_OHCI) += usb-ohci.o usb-ohci-pci.o obj-$(CONFIG_USB_OHCI_SA1111) += usb-ohci.o usb-ohci-sa1111.o -ifneq ($(CONFIG_USB_EHCI_HCD),n) - usbcore-objs += hcd.o -endif +#ifneq ($(CONFIG_USB_EHCI_HCD),n) +# usbcore-objs += hcd.o +#endif subdir-$(CONFIG_USB_EHCI_HCD) += hcd +obj-$(CONFIG_USB_SL811HS_ALT) += sl811.o +obj-$(CONFIG_USB_SL811HS) += hc_sl811.o obj-$(CONFIG_USB_MOUSE) += usbmouse.o obj-$(CONFIG_USB_HID) += hid.o ... althought the generally usable option would have been to fix the ifneq equation. -- Try Linux 2.6 from BitKeeper for PXA2x0 CPUs at http://www.mn-logistik.de/unsupported/linux-2.6/ ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel