From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp2-g21.free.fr ([212.27.42.2]) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1ORnxg-0005Mi-Rm for barebox@lists.infradead.org; Thu, 24 Jun 2010 15:03:29 +0000 From: =?utf-8?q?Eric=20B=C3=A9nard?= Date: Thu, 24 Jun 2010 17:03:22 +0200 Message-Id: <1277391802-15423-1-git-send-email-eric@eukrea.com> MIME-Version: 1.0 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: [PATCH] eukrea_cpuimx35: better usage of LCD enable pins To: barebox@lists.infradead.org VXNlIHRoZSBlbmFibGUgaG9vayB0byBkcml2ZXIgdGhlIExDRCdzIGVuYWJsZSBwaW4uClVuZm9y dHVuYWx0eSwgYmVjYXVzZSBvZiB0aGUgdGltZSB0aGUgTENEIHRha2VzIHRvIGNvbWUgb3V0IG9m CnJlc2V0LCBJIGhhdmUgdG8gdXNlIGEgR1BJTyBpbiBvcmRlciB0byB0dXJuIG9uL29mZiB0aGUg YmFja2xpZ2h0Cmluc3RlYWQgb2YgZHJpdmluZyBpdCBmcm9tIHRoZSBlbmFibGUgZnVuY3Rpb24s IGVsc2Ugd2UgZ2V0IGEKZmxpY2tlciBhdCBwb3dlciBvbi4KClNpZ25lZC1vZmYtYnk6IEVyaWMg QsOpbmFyZCA8ZXJpY0BldWtyZWEuY29tPgotLS0KIGJvYXJkL2V1a3JlYV9jcHVpbXgzNS9lbnYv YmluL2luaXQgICAgICB8ICAgIDIgKysKIGJvYXJkL2V1a3JlYV9jcHVpbXgzNS9ldWtyZWFfY3B1 aW14MzUuYyB8ICAgMjIgKysrKysrKysrKysrKy0tLS0tLS0tLQogMiBmaWxlcyBjaGFuZ2VkLCAx NSBpbn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