From: Nicolas Royer Subject: [PATCH 1/4 v4] ARM: AT91SAM9G45: same platform data structure for all crypto peripherals Date: Wed, 20 Feb 2013 17:10:23 +0100 Message-ID: <1361376626-28987-1-git-send-email-nicolas@eukrea.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Cc: herbert@gondor.apana.org.au, nicolas.ferre@atmel.com, linux-crypto@vger.kernel.org, eric@eukrea.com, plagnioj@jcrosoft.com, davem@davemloft.net, linux-arm-kernel@lists.infradead.org, Nicolas Royer To: linux-kernel@vger.kernel.org Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org List-Id: linux-crypto.vger.kernel.org T25seSBBRVMgdXNlIERNQSBpbiBBVDkxU0FNOUc0NSAoVERFUyBhbmQgU0hBIHVzZSBQREMpLgoK SG93ZXZlciBsYXRlc3QgQXRtZWwgVERFUyBhbmQgU0hBIElQIHJlbGVhc2VzIHVzZSBETUEgaW5z dGVhZCBvZiBQREMuCiAgLS0+IEF0bWVsIFRERVMgYW5kIFNIQSBkcml2ZXJzIG5lZWQgRE1BIHBs YXRmb3JtIGRhdGEgZm9yIHRob3NlIElQIHJlbGVhc2VzLgoKR29hbCBvZiB0aGlzIHBhdGNoIGlz IHRvIHVzZSB0aGUgc2FtZSBwbGF0Zm9ybSBkYXRhIHN0cnVjdHVyZSBmb3IgYWxsIEF0bWVsCmNy eXB0byBwZXJpcGhlcmFscy4gVGhpcyBzdHJ1Y3R1cmUgY29udGFpbnMgaW5mb3JtYXRpb24gYWJv dXQgRE1BIGludGVyZmFjZS4KClNpZ25lZC1vZmYtYnk6IE5pY29sYXMgUm95ZXIgPG5pY29sYXNA ZXVrcmVhLmNvbT4KQWNrZWQtYnk6IE5pY29sYXMgRmVycmUgPG5pY29sYXMuZmVycmVAYXRtZWwu Y29tPgpBY2tlZ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