Files
zephyr/soc/gd_gd32/gd32vf103/soc.c
Gerard Marull-Paretas 2bd84a1bc5 soc: gd_gd32: port gd32vf103 series to HWMv2
Port the only RISC-V SoC from GigaDevice to HWMv2.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-03-01 15:49:59 +01:00

27 lines
408 B
C

/*
* Copyright (c) 2021 Tokita, Hiroshi <tokita.hiroshi@gmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/init.h>
#include <zephyr/irq.h>
#include <gd32vf103.h>
static int gigadevice_gd32v_soc_init(void)
{
uint32_t key;
key = irq_lock();
SystemInit();
irq_unlock(key);
return 0;
}
SYS_INIT(gigadevice_gd32v_soc_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);