Fix issues when AES support was added for the STM32L1. From Juha Niskanen
This commit is contained in:
parent
32067448d7
commit
a278893c69
@ -46,6 +46,7 @@
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/syslog/ramlog.h>
|
||||
#include <nuttx/syslog/syslog_console.h>
|
||||
#include <nuttx/crypto/crypto.h>
|
||||
|
||||
#include <arch/board/board.h>
|
||||
|
||||
@ -196,14 +197,6 @@ void up_initialize(void)
|
||||
devnull_register(); /* Standard /dev/null */
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_CRYPTO)
|
||||
up_cryptoinitialize();
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_CRYPTO_CRYPTODEV)
|
||||
devcrypto_register(); /* /dev/crypto */
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_DEV_ZERO)
|
||||
devzero_register(); /* Standard /dev/zero */
|
||||
#endif
|
||||
@ -228,6 +221,18 @@ void up_initialize(void)
|
||||
ramlog_consoleinit();
|
||||
#endif
|
||||
|
||||
/* Initialize the HW crypto and /dev/crypto */
|
||||
|
||||
#if defined(CONFIG_CRYPTO)
|
||||
up_cryptoinitialize();
|
||||
#endif
|
||||
|
||||
#if CONFIG_NFILE_DESCRIPTORS > 0
|
||||
#if defined(CONFIG_CRYPTO_CRYPTODEV)
|
||||
devcrypto_register();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Initialize the Random Number Generator (RNG) */
|
||||
|
||||
#ifdef CONFIG_DEV_RANDOM
|
||||
|
Loading…
Reference in New Issue
Block a user