drivers: nxp_s32: add missing soc.h inclusion

Some NXP S32 shim drivers are using macros defined in
soc/arm/nxp_s32/*/soc.h but not including soc.h. Those still
can be built because the header file is included indirectly
by some other header files. This is very fragile, it should
be included directly

Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
This commit is contained in:
Dat Nguyen Duy 2023-11-09 01:50:14 +07:00 committed by Carles Cufí
parent df6a9f2d30
commit a39d2dc9d5
2 changed files with 2 additions and 0 deletions

View file

@ -6,6 +6,7 @@
#define DT_DRV_COMPAT nxp_s32_siul2_eirq
#include <soc.h>
#include <zephyr/irq.h>
#include <zephyr/sys/sys_io.h>
#include <zephyr/drivers/pinctrl.h>

View file

@ -6,6 +6,7 @@
#define DT_DRV_COMPAT nxp_s32_linflexd
#include <soc.h>
#include <zephyr/irq.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/drivers/pinctrl.h>