From: Nicolas Royer Subject: [PATCH 2/5] ARM: AT91SAM9G45: same platform data structure for all crypto peripherals Date: Tue, 6 Nov 2012 17:32:24 +0100 Message-ID: <1352219544-30416-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 Y29tPgpBY2tlZC1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