Skip to content

Commit 8e44c85

Browse files
eren-terziogluxiaoxiang781216
authored andcommitted
arch/risc-v: Add arch layer SHA accelerator support for esp32[-c3|-c6|-h2]
Add arch layer SHA accelerator support for risc-v based Espressif devices Signed-off-by: Eren Terzioglu <[email protected]>
1 parent 2256095 commit 8e44c85

File tree

8 files changed

+1487
-0
lines changed

8 files changed

+1487
-0
lines changed

arch/risc-v/src/common/espressif/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,12 @@ config ESPRESSIF_LEDC
345345
select PWM
346346
select ARCH_HAVE_PWM_MULTICHAN
347347

348+
config ESPRESSIF_SHA_ACCELERATOR
349+
bool "SHA Accelerator"
350+
default n
351+
---help---
352+
Enable SHA accelerator support.
353+
348354
config ESPRESSIF_ADC
349355
bool "Analog-to-digital converter (ADC)"
350356
default n

arch/risc-v/src/common/espressif/Make.defs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,14 @@ ifeq ($(CONFIG_ESPRESSIF_ADC),y)
170170
CHIP_CSRCS += esp_adc.c
171171
endif
172172

173+
ifeq ($(CONFIG_ESPRESSIF_SHA_ACCELERATOR),y)
174+
CHIP_CSRCS += esp_sha.c
175+
endif
176+
177+
ifeq ($(CONFIG_CRYPTO_CRYPTODEV_HARDWARE),y)
178+
CHIP_CSRCS += esp_crypto.c
179+
endif
180+
173181
#############################################################################
174182
# Espressif HAL for 3rd Party Platforms
175183
#############################################################################

0 commit comments

Comments
 (0)