495e1a24def7c99271ca13ca5e091859272687ee
[openwrt.git] / target / linux / omap / patches-3.12 / 601-crypto-omap-des-Add-config-and-build-options.patch
1 From patchwork Thu Aug 29 23:27:52 2013
2 Content-Type: text/plain; charset="utf-8"
3 MIME-Version: 1.0
4 Content-Transfer-Encoding: 7bit
5 Subject: [2/3] crypto: omap-des: Add config and build options
6 From: Joel Fernandes <joelf@ti.com>
7 X-Patchwork-Id: 2851671
8 Message-Id: <1377818873-21174-3-git-send-email-joelf@ti.com>
9 To: Herbert Xu <herbert@gondor.hengli.com.au>, "David S. Miller"
10         <davem@davemloft.net>, Mark Greer <mgreer@animalcreek.com>, Tony Lindgren
11         <tony@atomide.com>, Lokesh Vutla <lokeshvutla@ti.com>
12 Cc: Joel Fernandes <joelf@ti.com>,
13         Linux OMAP List <linux-omap@vger.kernel.org>, 
14         Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
15         Linux ARM Kernel List <linux-arm-kernel@lists.infradead.org>,
16         Linux Crypto Mailing List <linux-crypto@vger.kernel.org>
17 Date: Thu, 29 Aug 2013 18:27:52 -0500
18
19 Add config and build options for the newly added omap-des driver.
20
21 Signed-off-by: Joel Fernandes <joelf@ti.com>
22
23 ---
24 drivers/crypto/Kconfig  | 11 +++++++++++
25  drivers/crypto/Makefile |  1 +
26  2 files changed, 12 insertions(+)
27
28 diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
29 index e289afa..119a8e5 100644
30 --- a/drivers/crypto/Kconfig
31 +++ b/drivers/crypto/Kconfig
32 @@ -259,6 +259,17 @@ config CRYPTO_DEV_OMAP_AES
33           OMAP processors have AES module accelerator. Select this if you
34           want to use the OMAP module for AES algorithms.
35  
36 +config CRYPTO_DEV_OMAP_DES
37 +       tristate "Support for OMAP DES3DES hw engine"
38 +       depends on ARCH_OMAP2PLUS
39 +       select CRYPTO_DES
40 +       select CRYPTO_BLKCIPHER2
41 +       help
42 +         OMAP processors have DES/3DES module accelerator. Select this if you
43 +         want to use the OMAP module for DES and 3DES algorithms. Currently
44 +         the ECB and CBC modes of operation supported by the driver. Also
45 +         accesses made on unaligned boundaries are also supported.
46 +
47  config CRYPTO_DEV_PICOXCELL
48         tristate "Support for picoXcell IPSEC and Layer2 crypto engines"
49         depends on ARCH_PICOXCELL && HAVE_CLK
50 diff --git a/drivers/crypto/Makefile b/drivers/crypto/Makefile
51 index 38ce13d..ada440f 100644
52 --- a/drivers/crypto/Makefile
53 +++ b/drivers/crypto/Makefile
54 @@ -11,6 +11,7 @@ obj-$(CONFIG_CRYPTO_DEV_IXP4XX) += ixp4xx_crypto.o
55  obj-$(CONFIG_CRYPTO_DEV_PPC4XX) += amcc/
56  obj-$(CONFIG_CRYPTO_DEV_OMAP_SHAM) += omap-sham.o
57  obj-$(CONFIG_CRYPTO_DEV_OMAP_AES) += omap-aes.o
58 +obj-$(CONFIG_CRYPTO_DEV_OMAP_DES) += omap-des.o
59  obj-$(CONFIG_CRYPTO_DEV_PICOXCELL) += picoxcell_crypto.o
60  obj-$(CONFIG_CRYPTO_DEV_SAHARA) += sahara.o
61  obj-$(CONFIG_CRYPTO_DEV_S5P) += s5p-sss.o