]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dove: add crypto engine
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Wed, 15 Aug 2012 17:07:32 +0000 (19:07 +0200)
committerJason Cooper <jason@lakedaemon.net>
Fri, 21 Sep 2012 17:07:21 +0000 (17:07 +0000)
This patch adds a dove specific setup function for the Marvell CESA
crypto engine available on orion based SoCs. Dove setup was just
missing a function to call orion_crypto_init with dove specific
setup.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/mach-dove/common.c

index 38e2cc3b206bf4fb9aca53ccf7339c7f4ede1ba4..d5de814c52a3885a94d96b3f4c3a8c73a4e8a1d1 100644 (file)
@@ -258,6 +258,15 @@ struct sys_timer dove_timer = {
        .init = dove_timer_init,
 };
 
+/*****************************************************************************
+ * Cryptographic Engines and Security Accelerator (CESA)
+ ****************************************************************************/
+void __init dove_crypto_init(void)
+{
+       orion_crypto_init(DOVE_CRYPT_PHYS_BASE, DOVE_CESA_PHYS_BASE,
+                         DOVE_CESA_SIZE, IRQ_DOVE_CRYPTO);
+}
+
 /*****************************************************************************
  * XOR 0
  ****************************************************************************/