blob: ece50f1cdad553afc23acda3ce6b5e15b2027c9a [file] [log] [blame]
/*
* Copyright (c) 2022, Teslabs Engineering S.L.
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/init.h>
#include <zephyr/irq.h>
static int gd32e50x_soc_init(const struct device *dev)
{
uint32_t key;
ARG_UNUSED(dev);
key = irq_lock();
SystemInit();
NMI_INIT();
irq_unlock(key);
return 0;
}
SYS_INIT(gd32e50x_soc_init, PRE_KERNEL_1, 0);