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 1OTdd2-00077r-CS for barebox@lists.infradead.org; Tue, 29 Jun 2010 16:25:45 +0000 From: =?utf-8?q?Eric=20B=C3=A9nard?= Date: Tue, 29 Jun 2010 18:25:36 +0200 Message-Id: <1277828736-13940-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: s.hauer@pengutronix.de Cc: barebox@lists.infradead.org VXNlIHRoZSBlbmFibGUgaG9vayB0byBkcml2ZXIgdGhlIExDRCdzIGVuYWJsZSBwaW4uClVuZm9y dHVuYWx0eSwgYmVjYXVzZSBvZiB0aGUgdGltZSB0aGUgTENEIHRha2VzIHRvIGNvbWUgb3V0IG9m CnJlc2V0LCBJIGhhdmUgdG8gdXNlIGEgR1BJTyBpbiBvcmRlciB0byB0dXJuIG9uL29mZiB0aGUg YmFja2xpZ2h0Cmluc3RlYWQgb2YgZHJpdmluZyBpdCBmcm9tIHRoZSBlbmFibGUgZnVuY3Rpb24s IGVsc2Ugd2UgZ2V0IGEKZmxpY2tlciBhdCBwb3dlciBvbi4KClNpZ25lZC1vZmYtYnk6IEVyaWMg QsOpbmFyZCA8ZXJpY0BldWtyZWEuY29tPgotLS0KdjIgOgoJdXBkYXRlIGluaXQgc2NyaXB0IHRv IHR1cm4gYmFja2xpZ2h0IG9uIChncGlvIDEpCgogYm9hcmQvZXVrcmVhX2NwdWlteDM1L2Vudi9i aW4vaW5pdCAgICAgIHwgICAgNCArKysrCiBib2FyZC9ldWtyZWFfY3B1aW14MzUvZXVrcm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