soc: riscv: openisa_rv32m1: add missing includes

<soc.h> is needed to pull some APIs defined in soc.h.
<fsl_device_registers.h> is needed to access EVENT0/1 addresses.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
Gerard Marull-Paretas 2024-01-18 15:27:19 +01:00 committed by Fabio Baltieri
commit 95c573f02e
2 changed files with 4 additions and 0 deletions

View file

@ -16,6 +16,8 @@
#include <zephyr/irq_nextlevel.h> #include <zephyr/irq_nextlevel.h>
#endif #endif
#include <soc.h>
#define LOG_LEVEL CONFIG_SOC_LOG_LEVEL #define LOG_LEVEL CONFIG_SOC_LOG_LEVEL
#include <zephyr/logging/log.h> #include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(soc); LOG_MODULE_REGISTER(soc);

View file

@ -11,6 +11,8 @@
#ifndef SOC_RISCV32_OPENISA_RV32M1_SOC_OFFSETS_H_ #ifndef SOC_RISCV32_OPENISA_RV32M1_SOC_OFFSETS_H_
#define SOC_RISCV32_OPENISA_RV32M1_SOC_OFFSETS_H_ #define SOC_RISCV32_OPENISA_RV32M1_SOC_OFFSETS_H_
#include <fsl_device_registers.h>
#ifdef CONFIG_SOC_OPENISA_RV32M1_RI5CY #ifdef CONFIG_SOC_OPENISA_RV32M1_RI5CY
#ifdef CONFIG_RISCV_SOC_CONTEXT_SAVE #ifdef CONFIG_RISCV_SOC_CONTEXT_SAVE