Skip to content

Commit 2e4eaf6

Browse files
eren-terziogluxiaoxiang781216
authored andcommitted
arch/xtensa: Add arch layer SHA accelerator support for esp32[-s2|-s3]
Add arch layer SHA accelerator support for Xtensa based Espressif devices Signed-off-by: Eren Terzioglu <[email protected]>
1 parent d2eb3db commit 2e4eaf6

File tree

7 files changed

+1973
-0
lines changed

7 files changed

+1973
-0
lines changed

arch/xtensa/src/common/espressif/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ config ESPRESSIF_LEDC
6161
select PWM
6262
select ARCH_HAVE_PWM_MULTICHAN
6363

64+
config ESPRESSIF_SHA_ACCELERATOR
65+
bool "SHA Accelerator"
66+
depends on !ARCH_CHIP_ESP32
67+
default n
68+
---help---
69+
Enable SHA accelerator support.
70+
6471
config ESPRESSIF_I2S
6572
bool
6673
default n

arch/xtensa/src/common/espressif/Make.defs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ ifeq ($(CONFIG_ESPRESSIF_DEDICATED_GPIO),y)
8484
CHIP_CSRCS += esp_dedic_gpio.c
8585
endif
8686

87+
ifeq ($(CONFIG_ESPRESSIF_SHA_ACCELERATOR),y)
88+
CHIP_CSRCS += esp_sha.c
89+
ifeq ($(CONFIG_CRYPTO_CRYPTODEV_HARDWARE),y)
90+
CHIP_CSRCS += esp_crypto.c
91+
endif
92+
endif
93+
8794
ifeq ($(CONFIG_SYSTEM_NXDIAG_ESPRESSIF_CHIP_WO_TOOL),y)
8895
CHIP_CSRCS += esp_nxdiag.c
8996
endif

0 commit comments

Comments
 (0)