From be7026e87be34973b55a91d33a7970c9cdd4a277 Mon Sep 17 00:00:00 2001 From: Yong Cong Sin Date: Tue, 26 Sep 2023 13:55:51 +0800 Subject: [PATCH] boards: ti_k3: prevent header dependencies These headers are using things like `uint32_t` & devicetree macros, so they should include the `devicetree.h` & `types.h`. Otherwise they depend on the parent file to have those headers included before they are included. (cherry picked from commit 3300b31de80e0c1c63d350c908d282fd1c7049b3) Original-Signed-off-by: Yong Cong Sin GitOrigin-RevId: 3300b31de80e0c1c63d350c908d282fd1c7049b3 Change-Id: I8394db255b7ce59fe5560bc25696bb1c7aaf8032 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/4894341 Tested-by: ChromeOS Prod (Robot) Commit-Queue: Al Semjonovs Tested-by: Al Semjonovs Reviewed-by: Al Semjonovs --- soc/arm/ti_k3/pinctrl_soc.h | 3 +++ soc/arm64/ti_k3/pinctrl_soc.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/soc/arm/ti_k3/pinctrl_soc.h b/soc/arm/ti_k3/pinctrl_soc.h index fb9fcfa5a7e..d85797bc2b2 100644 --- a/soc/arm/ti_k3/pinctrl_soc.h +++ b/soc/arm/ti_k3/pinctrl_soc.h @@ -7,6 +7,9 @@ #ifndef ZEPHYR_SOC_ARM_TI_K3_PINCTRL_SOC_H_ #define ZEPHYR_SOC_ARM_TI_K3_PINCTRL_SOC_H_ +#include +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/soc/arm64/ti_k3/pinctrl_soc.h b/soc/arm64/ti_k3/pinctrl_soc.h index 0328f52b390..055215db7f2 100644 --- a/soc/arm64/ti_k3/pinctrl_soc.h +++ b/soc/arm64/ti_k3/pinctrl_soc.h @@ -7,6 +7,9 @@ #ifndef ZEPHYR_SOC_ARM64_TI_K3_PINCTRL_SOC_H_ #define ZEPHYR_SOC_ARM64_TI_K3_PINCTRL_SOC_H_ +#include +#include + #ifdef __cplusplus extern "C" { #endif