Commit 108713a7 authored by Neal Liu's avatar Neal Liu Committed by Herbert Xu
Browse files

crypto: aspeed - Add HACE hash driver



Hash and Crypto Engine (HACE) is designed to accelerate the
throughput of hash data digest, encryption, and decryption.

Basically, HACE can be divided into two independently engines
- Hash Engine and Crypto Engine. This patch aims to add HACE
hash engine driver for hash accelerator.

Signed-off-by: default avatarNeal Liu <neal_liu@aspeedtech.com>
Signed-off-by: default avatarJohnny Huang <johnny_huang@aspeedtech.com>
Reviewed-by: default avatarDhananjay Phadke <dphadke@linux.microsoft.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent efb4b01c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3210,6 +3210,13 @@ S: Maintained
F:	Documentation/devicetree/bindings/usb/aspeed,ast2600-udc.yaml
F:	drivers/usb/gadget/udc/aspeed_udc.c
ASPEED CRYPTO DRIVER
M:	Neal Liu <neal_liu@aspeedtech.com>
L:	linux-aspeed@lists.ozlabs.org (moderated for non-subscribers)
S:	Maintained
F:	Documentation/devicetree/bindings/crypto/aspeed,ast2500-hace.yaml
F:	drivers/crypto/aspeed/
ASUS NOTEBOOKS AND EEEPC ACPI/WMI EXTRAS DRIVERS
M:	Corentin Chary <corentin.chary@gmail.com>
L:	acpi4asus-user@lists.sourceforge.net
+1 −0
Original line number Diff line number Diff line
@@ -818,5 +818,6 @@ config CRYPTO_DEV_SA2UL
	  acceleration for cryptographic algorithms on these devices.

source "drivers/crypto/keembay/Kconfig"
source "drivers/crypto/aspeed/Kconfig"

endif # CRYPTO_HW
+1 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
obj-$(CONFIG_CRYPTO_DEV_ALLWINNER) += allwinner/
obj-$(CONFIG_CRYPTO_DEV_ASPEED) += aspeed/
obj-$(CONFIG_CRYPTO_DEV_ATMEL_AES) += atmel-aes.o
obj-$(CONFIG_CRYPTO_DEV_ATMEL_SHA) += atmel-sha.o
obj-$(CONFIG_CRYPTO_DEV_ATMEL_TDES) += atmel-tdes.o
+32 −0
Original line number Diff line number Diff line
config CRYPTO_DEV_ASPEED
	tristate "Support for Aspeed cryptographic engine driver"
	depends on ARCH_ASPEED
	help
	  Hash and Crypto Engine (HACE) is designed to accelerate the
	  throughput of hash data digest, encryption and decryption.

	  Select y here to have support for the cryptographic driver
	  available on Aspeed SoC.

config CRYPTO_DEV_ASPEED_DEBUG
	bool "Enable Aspeed crypto debug messages"
	depends on CRYPTO_DEV_ASPEED
	help
	  Print Aspeed crypto debugging messages if you use this
	  option to ask for those messages.
	  Avoid enabling this option for production build to
	  minimize driver timing.

config CRYPTO_DEV_ASPEED_HACE_HASH
	bool "Enable Aspeed Hash & Crypto Engine (HACE) hash"
	depends on CRYPTO_DEV_ASPEED
	select CRYPTO_ENGINE
	select CRYPTO_SHA1
	select CRYPTO_SHA256
	select CRYPTO_SHA512
	select CRYPTO_HMAC
	help
	  Select here to enable Aspeed Hash & Crypto Engine (HACE)
	  hash driver.
	  Supports multiple message digest standards, including
	  SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, and so on.
+6 −0
Original line number Diff line number Diff line
obj-$(CONFIG_CRYPTO_DEV_ASPEED) += aspeed_crypto.o
aspeed_crypto-objs := aspeed-hace.o \
		      $(hace-hash-y)

obj-$(CONFIG_CRYPTO_DEV_ASPEED_HACE_HASH) += aspeed-hace-hash.o
hace-hash-$(CONFIG_CRYPTO_DEV_ASPEED_HACE_HASH) := aspeed-hace-hash.o
Loading