Skip to content

Commit be27fa3

Browse files
nordic-krchnashif
authored andcommitted
soc: nordic: common: gppi_init: Move initialization earlier
GPPI initialization shall be executed as early as possible. Add _ prefix to the initialization function to reduce chances that other function calls uninitialized GPPI. Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent 9227a7c commit be27fa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

soc/nordic/common/gppi_init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <soc/interconnect/nrfx_gppi_lumos.h>
1010
#endif
1111

12-
static int gppi_init(void)
12+
static int _gppi_init(void)
1313
{
1414
static nrfx_gppi_t gppi_instance;
1515

@@ -55,5 +55,5 @@ static int gppi_init(void)
5555
}
5656

5757
#if defined(CONFIG_NRFX_GPPI) && !defined(CONFIG_NRFX_GPPI_V1)
58-
SYS_INIT(gppi_init, PRE_KERNEL_1, 0);
58+
SYS_INIT(_gppi_init, EARLY, 0);
5959
#endif

0 commit comments

Comments
 (0)