On Tue, Jun 26, 2012 at 11:51:48AM +0200, Jan Luebbe wrote: > Signed-off-by: Jan Luebbe <jlu@xxxxxxxxxxxxxx> > --- > arch/arm/mach-davinci/Makefile | 1 + > arch/arm/mach-davinci/include/mach/usb.h | 37 +++++++++++++++++ > arch/arm/mach-davinci/usb.c | 66 ++++++++++++++++++++++++++++++ > 3 files changed, 104 insertions(+) > create mode 100644 arch/arm/mach-davinci/include/mach/usb.h > create mode 100644 arch/arm/mach-davinci/usb.c > > diff --git a/arch/arm/mach-davinci/Makefile b/arch/arm/mach-davinci/Makefile > index 0ac8f9b..0df1e92 100644 > --- a/arch/arm/mach-davinci/Makefile > +++ b/arch/arm/mach-davinci/Makefile > @@ -4,3 +4,4 @@ obj-y += da850.o > obj-y += gpio.o > obj-y += mux.o > obj-y += psc.o > +obj-y += usb.o > + > +static int da8xx_usb11_init(void) > +{ [...] > + > + add_generic_device("ohci", 0, NULL, DA8XX_USB1_BASE, 0x100, > + IORESOURCE_MEM, NULL); > + return 0; > +} > + > +device_initcall(da8xx_usb11_init); Probably not all boards have this USB port populated. You should probably call this function from board code. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox