Skip to content

hw/drivers/hash_stm32: Enable for STM32H devices #3412

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions hw/drivers/hash/hash_stm32/src/hash_stm32.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,10 @@ static struct os_mutex gmtx;
* STM32F415xx and STM32F417xx have a HASH unit that only supports MD5/SHA1
*/

#if defined(STM32F437xx) || defined(STM32F439xx) || defined(STM32F479xx) || \
defined(STM32F756xx) || defined(STM32F777xx) || defined(STM32F779xx) || \
defined(STM32L4A6xx) || defined(STM32L4S5xx) || defined(STM32L4S7xx) || \
defined(STM32L4S9xx)
static uint32_t g_algos = HASH_ALGO_SHA224 | HASH_ALGO_SHA256;
#else
#if defined(STM32F415xx) || defined(STM32F417xx)
static uint32_t g_algos = 0;
#else
static uint32_t g_algos = HASH_ALGO_SHA224 | HASH_ALGO_SHA256;
#endif

static int
Expand Down