From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pa0-f49.google.com ([209.85.220.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TLidN-0002RZ-Nb for barebox@lists.infradead.org; Tue, 09 Oct 2012 22:50:42 +0000 Received: by mail-pa0-f49.google.com with SMTP id bi5so6116899pad.36 for ; Tue, 09 Oct 2012 15:50:37 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1349776406-14453-2-git-send-email-t.gamez@phytec.de> References: <1349776406-14453-1-git-send-email-t.gamez@phytec.de> <1349776406-14453-2-git-send-email-t.gamez@phytec.de> Date: Wed, 10 Oct 2012 00:50:37 +0200 Message-ID: From: vj List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 2/3] ARM OMAP: Remove usage of gpio lib calls in lowlevel code To: =?UTF-8?Q?Teresa_G=C3=A1mez?= Cc: barebox@lists.infradead.org T24gVHVlLCBPY3QgOSwgMjAxMiBhdCAxMTo1MyBBTSwgVGVyZXNhIEfDoW1leiA8dC5nYW1lekBw aHl0ZWMuZGU+IHdyb3RlOgo+IEFzIHRoZSBncGlvIGZ1bmN0aW9ucyBhcmUgbm90IGF2YWlsYWJs ZSBhdCB0aGlzIHBvaW50LCBzZXQgdGhlIGdwaW8gbWFudWFsbHkuCj4KPiBTaWduZWQtb2ZmLWJ5 OiBUZXJlc2EgR8OhbWV6IDx0LmdhbWV6QHBoeXRlYy5kZT4KPiAtLS0KPiAgYXJjaC9hcm0vbWFj aC1vbWFwL29tYXA0X2dlbmVyaWMuYyB8ICAgMjkgKysrKysrKysrKysrKysrKysrKysrKysrKysr LS0KPiAgMSBmaWxlcyBjaGFuZ2VkLCAyNyBpbnNlcnRpb25zKCspLCAyIGRlbGV0aW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Cj4gKyAgICAgICB1MzIgdmFsID0gMDsKPgo+ICAgICAgICAgLyogRm9yIFZDIGJ5cGFz cyBvbmx5IFZDT1JFeF9DR0ZfRk9SQ0UgIGlzIG5lY2Vzc2FyeSBhbmQKPiAgICAgICAgICAqIFZD T1JFeF9DRkdfVk9MVEFHRSAgY2hhbmdlcyBjYW4gYmUgZGlzY2FyZGVkCj4gQEAgLTUxMCw4ICs1 MjYsMTcgQEAgbm9pbmxpbmUgaW50IG9tYXA0X3NjYWxlX3Zjb3Jlcyh1bnNpZ25lZCB2c2VsMF9w aW4pCj4gICAgICAgICAgICAgICAgICAqIFZTRUwxIGlzIGdyb3VuZGVkIG9uIGJvYXJkLiBTbyB0 aGUgZm9sbG93aW5nIHNlbGVjdHMKPiAgICAgICAgICAgICAgICAgICogVlNFTDEgPSAwIGFuZCBW U0VMMCA9IDEKPiAgICAgICAgICAgICAgICAgICovCj4gLSAgICAgICAgICAgICAgIGdwaW9fZGly ZWN0aW9uX291dHB1dCh2c2VsMF9waW4sIDApOwo+IC0gICAgICAgICAgICAgICBncGlvX3NldF92 YWx1ZSh2c2VsMF9waW4sIDEpOwo+ICsgICAgICAgICAgICAgICBiYXNlID0gb21hcDRfZ2V0X2dw aW9fYmFzZSh2c2VsMF9waW4pOwo+ICsKPiArICAgICAgICAgICAgICAgdmFsID0gMSA8PCAodnNl bDBfcGluICYgR1BJT19NQVNLKTsKPiArICAgICAgICAgICAgICAgd3JpdGVsKHZhbCwgYmFzZSAr IDB4MTkwKTsKPiArCj4gKyAgICAgICAgICAgICAgIHZhbCA9ICByZWFkbChiYXNlICsgMHgxMzQp Owo+ICsgICAgICAgICAgICAgICB2YWwgJj0gKDEgPDwgKHZzZWwwX3BpbiAmIEdQSU9fTUFTSykp Owo+ICsgICAgICAgICAgICAgICB3cml0ZWwodmFsLCBiYXNlICsgMHgxMzQpOwo+ICsKPiArICAg ICAgICAgICAgICAgdmFsID0gMSA8PCAodnNlbDBfcGluICYgR1BJT19NQVNLKTsKPiArICAgICAg ICAgICAgICAgd3JpdGVsKHZhbCwgYmFzZSArIDB4MTk0KTsKPiAgICAgICAgIH0KPgo+ICAgICAg ICAgLyogc2V0IFZDT1JFMSBmb3JjZSBWU0VMICovCj4gLS0KPiAxLjcuMC40Cj4KClllcyBUZXJl c2EsIHRoaXMgYWxzbyB3b3JrcyBpbiBteSBjYXNlLgpUaGFua3MsCiAgVmljZW50ZS4KCl9fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCmJhcmVib3ggbWFpbGlu ZyBsaXN0CmJhcmVib3hAbGlzdHMuaW5mcmFkZWFkLm9yZwpodHRwOi8vbGlzdHMuaW5mcmFkZWFk Lm9yZy9tYWlsbWFuL2xpc3RpbmZvL2JhcmVib3gK