drivers: timer: litex: add missing include

<soc.h> is needed to access IO R/W functions like litex_read8.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
Gerard Marull-Paretas 2024-01-18 16:22:43 +01:00 committed by Fabio Baltieri
parent ed166915bb
commit a63591c5cb

View file

@ -13,6 +13,8 @@
#include <zephyr/spinlock.h> #include <zephyr/spinlock.h>
#include <zephyr/drivers/timer/system_timer.h> #include <zephyr/drivers/timer/system_timer.h>
#include <soc.h>
#define TIMER_LOAD_ADDR DT_INST_REG_ADDR_BY_NAME(0, load) #define TIMER_LOAD_ADDR DT_INST_REG_ADDR_BY_NAME(0, load)
#define TIMER_RELOAD_ADDR DT_INST_REG_ADDR_BY_NAME(0, reload) #define TIMER_RELOAD_ADDR DT_INST_REG_ADDR_BY_NAME(0, reload)
#define TIMER_EN_ADDR DT_INST_REG_ADDR_BY_NAME(0, en) #define TIMER_EN_ADDR DT_INST_REG_ADDR_BY_NAME(0, en)