From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WYW3h-0002xn-KY for barebox@lists.infradead.org; Fri, 11 Apr 2014 07:39:34 +0000 Date: Fri, 11 Apr 2014 09:39:06 +0200 From: Sascha Hauer Message-ID: <20140411073906.GN27055@pengutronix.de> References: <20140410061620.GL27055@pengutronix.de> <5346A597.1010008@sam-solutions.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <5346A597.1010008@sam-solutions.net> 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" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: Re: [PATCH] imx6: ocotp: Add On-Chip OTP registers write support To: Uladzimir Bely Cc: barebox@lists.infradead.org T24gVGh1LCBBcHIgMTAsIDIwMTQgYXQgMDU6MDc6MTlQTSArMDMwMCwgVWxhZHppbWlyIEJlbHkg d3JvdGU6Cj4gSGVsbG8sIFNhc2hhLgo+IAo+IEl0IHNlZW1zIEkndmUgZml4ZWQgYWxsIGFjY29y ZGluZyB5b3VyIHJlbWFya3MgaW5zdGVhZCBvZiBvbmUgcXVlc3Rpb24uCj4gCj4gMTAuMDQuMjAx NCAwOToxNiwgU2FzY2hhIEhhdWVyINC/0LjRiNC10YI6Cj4gPiAKPiA+IEFzIHN1Z2dlc3RlZCBp biBteSBsYXN0IG1haWw6Cj4gPiAKPiA+IERvIHdlIG5lZWQgdGhpcyB0b29sIGF0IGFsbD8gV2Ug Y2FuIGFkZCBhIC5tYWNhZGRyIHBhcmFtZXRlciB0byB0aGUKPiA+IG9jb3RwIGRldmljZSB1c2lu ZyBkZXZfYWRkX3BhcmFtX21hYygpIChUaGlzIGZ1bmN0aW9uIGlzIG5ldyBhbmQK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