]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
TQM5200: Call usb_cpu_init() during board init
authorMarian Balakowicz <m8@semihalf.com>
Tue, 23 Oct 2007 23:37:36 +0000 (01:37 +0200)
committerWolfgang Denk <wd@denx.de>
Sat, 3 Nov 2007 21:08:46 +0000 (22:08 +0100)
usb_cpu_init() configures GPS USB pins, clocks, etc. and
is required for proper operation of kernel USB subsystem.
This setup was previously done in the kernel by the fixup
code which is being removed, thus low level init must be
done by U-boot now.

Signed-off-by: Marian Balakowicz <m8@semihalf.com>
board/tqm5200/tqm5200.c

index d10cb5937d66ca21bc526c98253dc4bfe99b3b18..da4e2281a7fac249f159e952e3e144c5fea70f93 100644 (file)
@@ -441,15 +441,21 @@ ulong post_word_load (void)
 }
 #endif /* CONFIG_POST || CONFIG_LOGBUFFER*/
 
-#ifdef CONFIG_PS2MULT
 #ifdef CONFIG_BOARD_EARLY_INIT_R
 int board_early_init_r (void)
 {
+#ifdef CONFIG_PS2MULT
        ps2mult_early_init();
+#endif /* CONFIG_PS2MULT */
+
+#if defined(CONFIG_USB_OHCI_NEW) && defined(CFG_USB_OHCI_CPU_INIT)
+       /* Low level USB init, required for proper kernel operation */
+       usb_cpu_init();
+#endif
+
        return (0);
 }
 #endif
-#endif /* CONFIG_PS2MULT */
 
 #ifdef CONFIG_FO300
 int silent_boot (void)