soc: arm: nuvoton_npcx: make soc_*.h headers self-contained

Almost none of the soc_*.h headers were self-contained. This patch adds
all necessary includes to improve the situation.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2022-01-03 18:43:29 +01:00 committed by Carles Cufí
commit 095a21e2cf
8 changed files with 32 additions and 1 deletions

View file

@ -7,6 +7,12 @@
#ifndef _NUVOTON_NPCX_REG_DEF_H
#define _NUVOTON_NPCX_REG_DEF_H
#include <stdint.h>
#include <sys/__assert.h>
#include <sys/util_macro.h>
#include <toolchain.h>
/*
* NPCX register structure size/offset checking macro function to mitigate
* the risk of unexpected compiling results. All addresses of NPCX registers

View file

@ -7,6 +7,11 @@
#ifndef _NUVOTON_NPCX_SOC_CLOCK_H_
#define _NUVOTON_NPCX_SOC_CLOCK_H_
#include <stdbool.h>
#include <stdint.h>
#include <devicetree.h>
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -7,6 +7,10 @@
#ifndef _NUVOTON_NPCX_SOC_DT_H_
#define _NUVOTON_NPCX_SOC_DT_H_
#include <devicetree.h>
#include <irq.h>
#include <sys/util_macro.h>
/**
* @brief Like DT_PROP(), but expand parameters with
* DT_ENUM_UPPER_TOKEN not DT_PROP

View file

@ -8,7 +8,6 @@
#define _NUVOTON_NPCX_SOC_ESPI_H_
#include <device.h>
#include <sys/util.h>
#ifdef __cplusplus
extern "C" {

View file

@ -7,6 +7,8 @@
#ifndef _NUVOTON_NPCX_SOC_GPIO_H_
#define _NUVOTON_NPCX_SOC_GPIO_H_
#include <device.h>
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -7,6 +7,12 @@
#ifndef _NUVOTON_NPCX_SOC_HOST_H_
#define _NUVOTON_NPCX_SOC_HOST_H_
#include <stdint.h>
#include <device.h>
#include <drivers/espi.h>
#include <sys/slist.h>
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -7,6 +7,11 @@
#ifndef _NUVOTON_NPCX_SOC_MIWU_H_
#define _NUVOTON_NPCX_SOC_MIWU_H_
#include <stdint.h>
#include <device.h>
#include <drivers/gpio.h>
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -7,6 +7,10 @@
#ifndef _NUVOTON_NPCX_SOC_PINS_H_
#define _NUVOTON_NPCX_SOC_PINS_H_
#include <stdint.h>
#include "reg/reg_def.h"
#ifdef __cplusplus
extern "C" {
#endif