From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp3-g21.free.fr ([2a01:e0c:1:1599::12]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1S1vop-0007FR-S1 for barebox@lists.infradead.org; Mon, 27 Feb 2012 08:20:28 +0000 Received: from localhost.localdomain (unknown [82.233.81.124]) by smtp3-g21.free.fr (Postfix) with ESMTP id 9BF2EA6259 for ; Mon, 27 Feb 2012 09:20:22 +0100 (CET) From: =?UTF-8?q?Eric=20B=C3=A9nard?= Date: Mon, 27 Feb 2012 09:20:09 +0100 Message-Id: <1330330813-21605-3-git-send-email-eric@eukrea.com> In-Reply-To: <1330330813-21605-1-git-send-email-eric@eukrea.com> References: <20120222073359.GL3852@pengutronix.de> <1330330813-21605-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 v2 3/7] i.MX53: add silicon revision functions To: barebox@lists.infradead.org U2lnbmVkLW9mZi1ieTogRXJpYyBCw6luYXJkIDxlcmljQGV1a3JlYS5jb20+Ci0tLQogYXJjaC9h cm0vbWFjaC1pbXgvaW14NTMuYyAgICAgICAgICAgICAgICAgfCAgIDQ3ICsrKysrKysrKysrKysr KysrKysrKysrKysrKystCiBhcmNoL2FybS9tYWNoLWlteC9pbmNsdWRlL21hY2gvaW14LXJlZ3Mu aCB8ICAgIDUgKysrCiAyIGZpbGVzIGNoYW5nZWQsIDUxIGluc2VydGlvbnMoKyksIDEgZGVsZXRp b25zKC0pCgpkaWZmIC0tZ2l0IGEvYXJjaC9hcm0vbWFjaC1pbXgvaW14NTMuYyBiL2FyY2gvYXJt L21hY2gtaW14L2lteDUzLmMKaW5kZXggNGY3ZDFjYi4uODc0MmM0NiAxMDA2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