Skip to contentSkip to conversation

Mini2440: Everything's now present to provide USB host feature

PATCH/next Juergen Beisert 1 participant 1 message Nov 16, 2011 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

The S3C2440 CPU comes with an internal OHCI the generic part of Barebox already supports. Just add the missing part.

arch/arm/boards/mini2440/mini2440.c +2 -0
index 4351023..56e2668 100644
@@ -313,6 +313,8 @@ static int mini2440_devices_init(void)
 			   IORESOURCE_MEM, &mci_data);
 	add_generic_device("s3c_fb", 0, NULL, S3C2410_LCD_BASE, 0,
 			   IORESOURCE_MEM, &s3c24x0_fb_data);
+	add_generic_device("ohci", 0, NULL, S3C2410_USB_HOST_BASE, 0x100,
+			   IORESOURCE_MEM, NULL);
 	armlinux_set_bootparams((void*)CS6_BASE + 0x100);
 	armlinux_set_architecture(MACH_TYPE_MINI2440);
 
Signature · 7 lines
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox