Skip to content

Commit 80217de

Browse files
wojciechslenskacarlescufi
authored andcommitted
dts: arm: stm32h5: Add aes node
Add hw crypto support in stm32h5 dtsi. Add missing define in driver. Signed-off-by: Wojciech Slenska <[email protected]>
1 parent 4a61d59 commit 80217de

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

drivers/crypto/crypto_stm32.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ LOG_MODULE_REGISTER(crypto_stm32);
4848
#define STM32_CRYPTO_TYPEDEF AES_TypeDef
4949
#endif
5050

51+
#if defined(CONFIG_SOC_SERIES_STM32H5X)
52+
#define CRYP_DATATYPE_8B CRYP_BYTE_SWAP
53+
#endif
54+
5155
struct crypto_stm32_session crypto_stm32_sessions[CRYPTO_MAX_SESSION];
5256

5357
static void copy_reverse_words(uint8_t *dst_buf, int dst_len,

dts/arm/st/h5/stm32h562.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,14 @@
285285
};
286286
};
287287

288+
aes: aes@420c0000 {
289+
compatible = "st,stm32-aes";
290+
reg = <0x420c0000 0x400>;
291+
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00010000>;
292+
interrupts = <116 0>;
293+
status = "disabled";
294+
};
295+
288296
can {
289297
can2: can@4000a800 {
290298
compatible = "st,stm32-fdcan";

0 commit comments

Comments
 (0)