From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp.eu2.fugro.com ([46.34.88.152]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WOVUC-00024B-0p for barebox@lists.infradead.org; Fri, 14 Mar 2014 17:01:32 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01CF3FA6.FEBD1B95" Date: Fri, 14 Mar 2014 18:01:08 +0100 Message-ID: From: "Stam, Michel [FINT]" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Barebox x86 IDE support To: barebox@lists.infradead.org This is a multi-part message in MIME format. ------_=_NextPart_001_01CF3FA6.FEBD1B95 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear list, While working on barebox recently, I decided to port a couple of patches = =A0I 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.=20 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 ------_=_NextPart_001_01CF3FA6.FEBD1B95 Content-Type: application/octet-stream; name="0001-common-driver-Allow-for-I-O-mapped-I-O-in-resource-r.patch" Content-Transfer-Encoding: base64 Content-Description: 0001-common-driver-Allow-for-I-O-mapped-I-O-in-resource-r.patch Content-Disposition: attachment; filename="0001-common-driver-Allow-for-I-O-mapped-I-O-in-resource-r.patch" RnJvbSBiZDNiYTgzZDIzM2ZkMjhlZGVmMDc0ODMxZTkxMzAxNzA1NTZmZWIyIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBNaWNoZWwgU3RhbSA8bS5zdGFtQGZ1Z3JvLm5sPgpEYXRlOiBG cmksIDcgTWFyIDIwMTQgMTU6NTY6NTIgKzAxMDAKU3ViamVjdDogW1BBVENIIDEvM10gY29tbW9u OiBkcml2ZXI6IEFsbG93IGZvciBJL08gbWFwcGVkIEkvTyBpbiByZXNvdXJjZQogcmVxdWVzdHMK ClRoZSBjdXJyZW50IHJlc291cmNlIGZyYW1ld29yayBpcyBmdWxseSBnZWFyZWQgdG93YXJkcyBt ZW1vcnkKbWFwcGVkIEkvTy4KVGhpcyBwYXRjaCBhZGRzIHN1cHBvcnQgZm9yIG90aGVyIHR5cGVz IG9mIEkvTyBpbiB0aGUgcmVzb3VyY2UKc3RydWN0dXJlcyAvIGZ1bmN0aW9uIGNhbGxzLgotLS0K IGNvbW1vbi9tZW1vcnkuYyAgICAgICAgfCAgMiArLQogY29tbW9uL3Jlc291cmNlLmMgICAgICB8 IDE4ICsrKysrKysrKysrKysrKystLQogZHJpdmVycy9iYXNlL2RyaXZlci5jICB8IDM2ICsrKysr KysrKysrKysrKysrKy0tLS0tLS0tLS0tLS0tLS0tLQogaW5jbHVkZS9kcml2ZXIuaCAgICAgICB8 IDI0ICsrKysrKysrKysrKysrKysrLS0tLS0tLQogaW5jbHVkZS9saW51eC9pb3BvcnQuaCB8ICA1 ICsrKystCiA1IGZpbGVzIGNoYW5nZWQsIDU2IGluc2VydGlvbnMoKyksIDI5IGRlbGV0aW9ucygt KQoKZGlmZiAtLWdpdCBhL2NvbW1vbi9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i9pbmNsdWRlL2xpbnV4L2lvcG9ydC5oCkBAIC0x MzgsOSArMTM4LDEyIEBAIHN0YXRpYyBpbmxpbmUgdW5zaWduZWQgbG9uZyByZXNvdXJjZV90eXBl KGNvbnN0IHN0cnVjdCByZXNvdXJjZSAqcmVzKQogc3RydWN0IHJlc291cmNlICpyZXF1ZXN0X2lv bWVtX3JlZ2lvbihjb25zdCBjaGFyICpuYW1lLAogCQlyZXNvdXJjZV9zaXplX3Qgc3RhcnQsIHJl c291cmNlX3NpemVfdCBlbmQpOwogCitzdHJ1Y3QgcmVzb3VyY2UgKnJlcXVlc3RfaW9fcmVnaW9u KGNvbnN0IGNoYXIgKm5hbWUsCisJCXJlc291cmNlX3NpemVfdCBzdGFydCwgcmVzb3VyY2Vfc2l6 ZV90IGVuZCwgaW50IHR5cGUpOworCiBzdHJ1Y3QgcmVzb3VyY2UgKnJlcXVlc3RfcmVnaW9uKHN0 cnVjdCByZXNvdXJjZSAqcGFyZW50LAogCQljb25zdCBjaGFyICpuYW1lLCByZXNvdXJjZV9zaXpl X3QgZW5kLAotCQlyZXNvdXJjZV9zaXplX3Qgc2l6ZSk7CisJCXJlc291cmNlX3NpemVfdCBzaXpl LGludCB0eXBlKTsKIAogaW50IHJlbGVhc2VfcmVnaW9uKHN0cnVjdCByZXNvdXJjZSAqcmVzKTsK IAotLSAKMS44LjQKCg== ------_=_NextPart_001_01CF3FA6.FEBD1B95 Content-Type: application/octet-stream; name="0002-x86-Add-support-for-IDE-on-the-legacy-I-O-ports.patch" Content-Transfer-Encoding: base64 Content-Description: 0002-x86-Add-support-for-IDE-on-the-legacy-I-O-ports.patch Content-Disposition: attachment; filename="0002-x86-Add-support-for-IDE-on-the-legacy-I-O-ports.patch" RnJvbSBmMzlmZTRjMDA3ODI5NDcwOTIzMDRiODQyMTVlNWJmNTgzZTljNzU2IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBNaWNoZWwgU3RhbSA8bS5zdGFtQGZ1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YXRhX2lvcG9ydHMgewogCS8qIGhhcmQgcmVzZXQg bGluZSBoYW5kbGluZyAqLwogCXZvaWQgKCpyZXNldCkoaW50KTsJLyogdHJ1ZTogYXNzZXJ0IHJl c2V0LCBmYWxzZTogZGUtYXNzZXJ0IHJlc2V0ICovCiAJaW50IGRhdGFpZl9iZTsJLyogdHJ1ZSBp ZiAxNiBiaXQgZGF0YSByZWdpc3RlciBpcyBiaWcgZW5kaWFuICovCisJaW50IG1taW87IC8qIHRy dWUgaWYgbWVtb3J5LW1hcHBlZCBpbyAqLwogfTsKIAogc3RydWN0IGF0YV9wb3J0OwotLSAKMS44 LjQKCg== ------_=_NextPart_001_01CF3FA6.FEBD1B95 Content-Type: application/octet-stream; name="0003-x86-Most-systems-support-a-second-serial-port.-Add-i.patch" Content-Transfer-Encoding: base64 Content-Description: 0003-x86-Most-systems-support-a-second-serial-port.-Add-i.patch Content-Disposition: attachment; filename="0003-x86-Most-systems-support-a-second-serial-port.-Add-i.patch" RnJvbSAzNzg0MzQwZjFlODVlMTY1OTVkZjNhYjQxNGE5OTUxNjVmNjdlZGY4IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBNaWNoZWwgU3RhbSA8bS5zdGFtQGZ1Z3JvLm5sPgpEYXRlOiBN b24sIDEwIE1hciAyMDE0IDEwOjI2OjI4ICswMTAwClN1YmplY3Q6IFtQQVRDSCAzLzNdIHg4Njog TW9zdCBzeXN0ZW1zIHN1cHBvcnQgYSBzZWNvbmQgc2VyaWFsIHBvcnQuIEFkZCBpdC4KCi0tLQog YXJjaC94ODYvYm9hcmRzL3g4Nl9nZW5lcmljL2dlbmVyaWNfcGMuYyB8IDEgKwogMSBmaWxlIGNo YW5nZWQsIDEgaW5zZXJ0aW9uKCspCgpkaWZmIC0tZ2l0IGEvYXJjaC94ODYvYm9hcmRzL3g4Nl9n ZW5lcmljL2dlbmVyaWNfcGMuYyBiL2FyY2gveDg2L2JvYXJkcy94ODZfZ2VuZXJpYy9nZW5lcmlj X3BjLmMKaW5kZXggNjE1MmFmYy4uNDAzMWE3ZSAxMDA2NDQKLS0tIGEvYXJjaC94ODYvYm9hcmRz L3g4Nl9nZW5lcmljL2dlbmVyaWNfcGMuYworKysgYi9hcmNoL3g4Ni9ib2FyZHMveDg2X2dlbmVy aWMvZ2VuZXJpY19wYy5jCkBAIC0xNTAsNiArMTUwLDcgQEAgc3RhdGljIGludCBwY19jb25zb2xl X2luaXQodm9pZCkKIAogCS8qIFJlZ2lzdGVyIHRoZSBzZXJpYWwgcG9ydCAqLwogCWFkZF9uczE2 NTUwX2RldmljZShERVZJQ0VfSURfRFlOQU1JQywgMHgzZjgsIDgsIDAsICZzZXJpYWxfcGxhdCk7 CisJYWRkX25zMTY1NTBfZGV2aWNlKERFVklDRV9JRF9EWU5BTUlDLCAweDJmOCwgOCwgMCwgJnNl cmlhbF9wbGF0KTsKIAogCXJldHVybiAwOwogfQotLSAKMS44LjQKCg== ------_=_NextPart_001_01CF3FA6.FEBD1B95 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox ------_=_NextPart_001_01CF3FA6.FEBD1B95--