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 1RzdaD-0005Xg-6W for barebox@lists.infradead.org; Tue, 21 Feb 2012 00:27:54 +0000 Received: from localhost.localdomain (unknown [82.233.81.124]) by smtp3-g21.free.fr (Postfix) with ESMTP id EB526A614F for ; Tue, 21 Feb 2012 01:27:47 +0100 (CET) From: =?UTF-8?q?Eric=20B=C3=A9nard?= Date: Tue, 21 Feb 2012 01:27:35 +0100 Message-Id: <1329784059-6006-3-git-send-email-eric@eukrea.com> In-Reply-To: <1329784059-6006-1-git-send-email-eric@eukrea.com> References: <1329784059-6006-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 3/7] i.MX53: add silicn revision functions To: barebox@lists.infradead.org U2lnbmVkLW9mZi1ieTogRXJpYyBCw6luYXJkIDxlcmljQGV1a3JlYS5jb20+Ci0tLQogYXJjaC9h cm0vbWFjaC1pbXgvaW14NTMuYyAgICAgICAgICAgICAgICAgICB8ICAgNDUgKysrKysrKysrKysr KysrKysrKysrKysrKysrCiBhcmNoL2FybS9tYWNoLWlteC9pbmNsdWRlL21hY2gvaW14NTMtcmVn cy5oIHwgICAgNSArKysKIDIgZmlsZXMgY2hhbmdlZCwgNTAgaW5zZXJ0aW9ucygrKSwgMCBkZWxl dGlvbnMoLSkKCmRpZmYgLS1naXQgYS9hcmNoL2FybS9tYWNoLWlteC9pbXg1My5jIGIvYXJjaC9h cm0vbWFjaC1pbXgvaW14NTMuYwppbmRleCA0ZjdkMWNiLi5hY2I5ZDQ5IDEwMDY0NAotLS0gYS9h cmNoL2FybS9tYWNoLWlteC9pbXg1My5jCisrKyBiL2FyY2gvYXJtL21hY2gtaW14L2lteDUzLmMK QEAgLTM3LDYgKzM3LDUxIEBAIHZvaWQgKmlteF9ncGlvX2Jhc2VbXSA9IHsKIAogaW50IGlteF9n cGlvX2NvdW50ID0gQVJSQVlfU0laRShpbXhfZ3Bpb19iYXNlKSAqIDMyOwogCisjZGVmaW5lIFNJ X1JFViAweDQ4CisKK3N0YXRpYyB1MzIgbXg1M19zaWxpY29uX3JldmlzaW9uOworc3RhdGljIGNo YXIgKm14NTNfcmV2X3N0cmluZyA9ICJ1bmtub3duIjsKKworaW50IGlteF9zaWxpY29uX3Jldmlz aW9uKHZvaWQpCit7CisJcmV0dXJuIG14NTNfc2lsaWNvbl9yZXZpc2lvbjsKK30KKworc3RhdGlj IGludCBxdWVyeV9zaWxpY29uX3JldmlzaW9uKHZvaWQpCit7CisJdm9pZCBfX2lvbWVtICpyb20g PSBNWDUzX0lST01fQkFTRV9BRERSOworCXUzMiByZXY7CisKKwlyZXYgPSByZWFkbChyb20gKyBT SV9SRVYpOworCXN3aXRjaCAocmV2KSB7CisJY2FzZSAweDEwOgorCQlteDUzX3NpbGljb25fcmV2 aXNpb24gPSBNWDUzX0NISVBfUkVWXzFfMDsKKwkJbXg1M19yZXZfc3RyaW5nID0gIjEuMCI7CisJ CWJyZWFrOworCWNhc2UgMHgyMDoKKwkJbXg1M19zaWxpY29uX3JldmlzaW9uID0gTVg1M19DSElQ X1JFVl8yXzA7CisJCW14NTNfcmV2X3N0cmluZyA9ICIyLjAiOworCQlicmVhazsKKwljYXNlIDB4 MjE6CisJCW14NTNfc2lsaWNvbl9yZXZpc2lvbiA9IE1YNTNfQ0hJUF9SRVZfMl8xOworCQlteDUz X3Jldl9zdHJpbmcgPSAiMi4xIjsKKwkJYnJlYWs7CisJZGVmYXVsdDoKKwkJbXg1M19zaWxpY29u X3JldmlzaW9uID0gMDsKKwl9CisKKwlyZXR1cm4gMDsKK30KK2NvcmVfaW5pd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