[PATCH v3 03/14] crypto: aspeed: Add AST2600 HACE support

Simon Glass sjg at chromium.org
Tue Jul 20 20:33:13 CEST 2021


Hi Chia-Wei,

On Tue, 20 Jul 2021 at 00:38, Chia-Wei Wang <chiawei_wang at aspeedtech.com> wrote:
>
> From: Joel Stanley <joel at jms.id.au>
>
> Hash and Crypto Engine (HACE) is designed to accelerate the
> throughput of hash data digest, and symmetric-key encryption.
>
> Signed-off-by: Joel Stanley <joel at jms.id.au>
> Signed-off-by: Chia-Wei Wang <chiawei_wang at aspeedtech.com>
> ---
>  drivers/crypto/Kconfig              |   2 +
>  drivers/crypto/Makefile             |   1 +
>  drivers/crypto/aspeed/Kconfig       |  12 ++
>  drivers/crypto/aspeed/Makefile      |   1 +
>  drivers/crypto/aspeed/aspeed_hace.c | 308 ++++++++++++++++++++++++++++
>  5 files changed, 324 insertions(+)
>  create mode 100644 drivers/crypto/aspeed/Kconfig
>  create mode 100644 drivers/crypto/aspeed/Makefile
>  create mode 100644 drivers/crypto/aspeed/aspeed_hace.c

This hash interface is wonky.

There should be a hash uclass and this driver should be in that
uclass. The existing hw_... functions should be dropped.

Please let me know if you need further guidance, but basically, we
need a proper uclass and driver.

Regards,
Simon


More information about the U-Boot mailing list