1 /*
2  * Copyright (c) 2021, ATL Electronics
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 
6 /**
7  * @file
8  * @brief GD32 MCU series initialization code
9  *
10  * This module provides routines to initialize and support board-level
11  * hardware for the GigaDevice GD32 SoC.
12  */
13 
14 #include <zephyr/device.h>
15 #include <zephyr/init.h>
16 #include <soc.h>
17 
18 /**
19  * @brief Perform basic hardware initialization at boot.
20  *
21  * This needs to be run from the very beginning.
22  * So the init priority has to be 0 (zero).
23  *
24  * @return 0
25  */
gigadevice_gd32_soc_init(void)26 static int gigadevice_gd32_soc_init(void)
27 {
28 	SystemInit();
29 
30 	return 0;
31 }
32 
33 SYS_INIT(gigadevice_gd32_soc_init, PRE_KERNEL_1, 0);
34