From: LABBE Corentin <clabbe.montjoie@gmail.com>
To: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com,
ijc+devicetree@hellion.org.uk, galak@codeaurora.org,
rdunlap@infradead.org, maxime.ripard@free-electrons.com,
linux@arm.linux.org.uk, herbert@gondor.apana.org.au,
davem@davemloft.net, grant.likely@linaro.org
Cc: devicetree@vger.kernel.org, linux-doc@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org,
linux-sunxi@googlegroups.com,
LABBE Corentin <clabbe.montjoie@gmail.com>
Subject: [PATCH v3 2/4] crypto: Update makefile and Kconfig for Security System
Date: Tue, 10 Jun 2014 14:43:15 +0200 [thread overview]
Message-ID: <1402404197-4236-3-git-send-email-clabbe.montjoie@gmail.com> (raw)
In-Reply-To: <1402404197-4236-1-git-send-email-clabbe.montjoie@gmail.com>
Add necessary changes for configuring and compiling the Security System driver.
Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
---
drivers/crypto/Kconfig | 91 +++++++++++++++++++++++++++++++++++++++++++++++++
drivers/crypto/Makefile | 1 +
2 files changed, 92 insertions(+)
diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
index 03ccdb0..ed1c918 100644
--- a/drivers/crypto/Kconfig
+++ b/drivers/crypto/Kconfig
@@ -418,4 +418,95 @@ config CRYPTO_DEV_MXS_DCP
To compile this driver as a module, choose M here: the module
will be called mxs-dcp.
+config CRYPTO_DEV_SUNXI_SS
+ tristate "Support for Allwinner Security System cryptographic accelerator"
+ depends on ARCH_SUNXI
+ help
+ Some Allwinner SoC have a crypto accelerator named
+ Security System. Select this if you want to use it.
+
+ To compile this driver as a module, choose M here: the module
+ will be called sunxi-ss.
+
+if CRYPTO_DEV_SUNXI_SS
+config CRYPTO_DEV_SUNXI_SS_PRNG
+ tristate "Security System PRNG"
+ select CRYPTO_RNG2
+ help
+ If you enable this option, the SS will provide a pseudo random
+ number generator.
+
+ To compile this driver as a module, choose M here: the module
+ will be called sunxi-ss-prng.
+
+config CRYPTO_DEV_SUNXI_SS_HASH
+ tristate "Security System hash common"
+ help
+ Common parts of Security System shared by hash algorithms.
+
+config CRYPTO_DEV_SUNXI_SS_CIPHER
+ tristate "Security System cipher common"
+ help
+ Common parts of Security System shared by cipher algorithms.
+
+config CRYPTO_DEV_SUNXI_SS_MD5
+ tristate "Security System MD5"
+ select CRYPTO_MD5
+ select CRYPTO_DEV_SUNXI_SS_HASH
+ help
+ If you enable this option, the SS will provide MD5 hardware
+ acceleration.
+
+ To compile this driver as a module, choose M here: the module
+ will be called sunxi-ss-md5.
+
+config CRYPTO_DEV_SUNXI_SS_SHA1
+ tristate "Security System SHA1"
+ select CRYPTO_SHA1
+ select CRYPTO_DEV_SUNXI_SS_HASH
+ help
+ If you enable this option, the SS will provide SHA1 hardware
+ acceleration.
+
+ To compile this driver as a module, choose M here: the module
+ will be called sunxi-ss-sha1.
+
+config CRYPTO_DEV_SUNXI_SS_AES
+ tristate "Security System AES"
+ select CRYPTO_AES
+ select CRYPTO_BLKCIPHER
+ select CRYPTO_DEV_SUNXI_SS_CIPHER
+ help
+ If you enable this option, the SS will provide AES hardware
+ acceleration.
+
+ To compile this driver as a module, choose M here: the module
+ will be called sunxi-ss-aes.
+
+config CRYPTO_DEV_SUNXI_SS_DES
+ tristate "Security System DES"
+ select CRYPTO_DES
+ select CRYPTO_BLKCIPHER
+ select CRYPTO_DEV_SUNXI_SS_CIPHER
+ help
+ If you enable this option, the SS will provide DES hardware
+ acceleration.
+
+ To compile this driver as a module, choose M here: the module
+ will be called sunxi-ss-des.
+
+config CRYPTO_DEV_SUNXI_SS_3DES
+ tristate "Security System 3DES"
+ select CRYPTO_DES
+ select CRYPTO_BLKCIPHER
+ select CRYPTO_DEV_SUNXI_SS_CIPHER
+ help
+ If you enable this option, the SS will provide 3DES hardware
+ acceleration.
+
+ To compile this driver as a module, choose M here: the module
+ will be called sunxi-ss-3des.
+
+endif #CRYPTO_DEV_SUNXI_SS
+
endif # CRYPTO_HW
diff --git a/drivers/crypto/Makefile b/drivers/crypto/Makefile
index 482f090..855292a 100644
--- a/drivers/crypto/Makefile
+++ b/drivers/crypto/Makefile
@@ -23,3 +23,4 @@ obj-$(CONFIG_CRYPTO_DEV_S5P) += s5p-sss.o
obj-$(CONFIG_CRYPTO_DEV_SAHARA) += sahara.o
obj-$(CONFIG_CRYPTO_DEV_TALITOS) += talitos.o
obj-$(CONFIG_CRYPTO_DEV_UX500) += ux500/
+obj-$(CONFIG_CRYPTO_DEV_SUNXI_SS) += sunxi-ss/
--
1.8.5.5
next prev parent reply other threads:[~2014-06-10 12:44 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-10 12:43 [PATCH v3] crypto: Add Allwinner Security System crypto accelerator LABBE Corentin
2014-06-10 12:43 ` [PATCH v3 1/4] " LABBE Corentin
2014-06-14 19:01 ` Marek Vasut
2014-06-22 11:58 ` Corentin LABBE
2014-06-22 12:23 ` Marek Vasut
2014-06-22 12:33 ` Russell King - ARM Linux
2014-06-22 13:44 ` Marek Vasut
2014-06-22 13:14 ` Russell King - ARM Linux
2014-06-10 12:43 ` LABBE Corentin [this message]
2014-06-14 19:01 ` [PATCH v3 2/4] crypto: Update makefile and Kconfig for Security System Marek Vasut
2014-06-22 11:58 ` Corentin LABBE
2014-06-22 12:25 ` Marek Vasut
2014-06-10 12:43 ` [PATCH v3 3/4] ARM: sun7i: dt: Add Security System to A20 SoC DTS LABBE Corentin
2014-06-10 12:43 ` [PATCH v3 4/4] ARM: sunxi: dt: Add DT bindings documentation for SUNXI Security System LABBE Corentin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1402404197-4236-3-git-send-email-clabbe.montjoie@gmail.com \
--to=clabbe.montjoie@gmail.com \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=grant.likely@linaro.org \
--cc=herbert@gondor.apana.org.au \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@googlegroups.com \
--cc=linux@arm.linux.org.uk \
--cc=mark.rutland@arm.com \
--cc=maxime.ripard@free-electrons.com \
--cc=pawel.moll@arm.com \
--cc=rdunlap@infradead.org \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®