crypto: aml-dma: Enable HW crypto on G12A
authorMatthew Shyu <matthew.shyu@amlogic.com>
Thu, 24 May 2018 08:23:42 +0000 (16:23 +0800)
committerMatthew Shyu <matthew.shyu@amlogic.com>
Tue, 19 Jun 2018 09:00:40 +0000 (17:00 +0800)
commit7ad8db81e5def802670c03c5b2e181200f38e5e2
tree84599c932443bd3936dab08347e3c4b7f47062c9
parentea5ec8a5572378aa00d60309e548bd9c051bd890
crypto: aml-dma: Enable HW crypto on G12A

PD#167825: Enable HW crypto on G12A and rework sha driver

1. allocate atomic mem to avoid sleep
2. rework import and export function for fixing race conditions
3. rework hmac setkey to avoid HW bug
4. Use fallback on AES-192
5. passed all AES and SHA related tests in tcrypt

Change-Id: I1c0dcbbad025f0d8d7c16f921948a8cb6d4b2548
Signed-off-by: Matthew Shyu <matthew.shyu@amlogic.com>
Documentation/devicetree/bindings/crypto/aml-crypto.txt
arch/arm64/boot/dts/amlogic/mesong12a.dtsi
drivers/amlogic/crypto/aml-aes-dma.c
drivers/amlogic/crypto/aml-crypto-dma.c
drivers/amlogic/crypto/aml-crypto-dma.h
drivers/amlogic/crypto/aml-dma.c
drivers/amlogic/crypto/aml-sha-dma.c
drivers/amlogic/crypto/aml-tdes-dma.c