Barebox x86 IDE support

Stam, Michel [FINT] M.Stam at fugro.nl
Fri Mar 14 13:01:08 EDT 2014


Dear list,

While working on barebox recently, I decided to port a couple of patches  I made to an old barebox tree a few years ago, to fix the IDE ports on the x86 platform.

I had to work on the resource allocation a bit, as the current GIT repository does not allow IORESOURCE_IO type to be passed to dev_request_region( ) and friends. I tried to keep the interface the same as much as possible by using macros etc.
Please find that attached in 0001-common-driver-Allow-for-I-O-mapped-I-O-in-resource-r.patch. 

Next, I added support to the platform IDE interface to use I/O-mapped I/O, and added the necessary allocation to the generic_pc board.

I did have to add a call to ata_port_detect( ) to ide_port_register to actually get the drives to be probed. Without it the interface seems to be stuck in some sort of limbo. This patch is in 0002-x86-Add-support-for-IDE-on-the-legacy-I-O-ports.patch.

Lastly, I added an extra serial port to the generic_pc board. Most (legacy) PCs have support for 2 serial ports, it seemed useful to me.

What does puzzle me is that the arch/x86/boot/Kconfig mentions X86_VESA and X86_VGA support, but the files (console_vga.c and console_vesa.c) do not nor have ever existed. Is this a remnant from U-boot v1?

Best regards,

Michel Stam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-common-driver-Allow-for-I-O-mapped-I-O-in-resource-r.patch
Type: application/octet-stream
Size: 8506 bytes
Desc: 0001-common-driver-Allow-for-I-O-mapped-I-O-in-resource-r.patch
URL: <http://lists.infradead.org/pipermail/barebox/attachments/20140314/f7208809/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-x86-Add-support-for-IDE-on-the-legacy-I-O-ports.patch
Type: application/octet-stream
Size: 9238 bytes
Desc: 0002-x86-Add-support-for-IDE-on-the-legacy-I-O-ports.patch
URL: <http://lists.infradead.org/pipermail/barebox/attachments/20140314/f7208809/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-x86-Most-systems-support-a-second-serial-port.-Add-i.patch
Type: application/octet-stream
Size: 781 bytes
Desc: 0003-x86-Most-systems-support-a-second-serial-port.-Add-i.patch
URL: <http://lists.infradead.org/pipermail/barebox/attachments/20140314/f7208809/attachment-0005.obj>


More information about the barebox mailing list