From 6fecff20c1a7cd48763f9c93977b9d1e27b965b3 Mon Sep 17 00:00:00 2001 From: Dinesh Gehlot Date: Tue, 17 Jan 2023 06:02:16 +0000 Subject: [PATCH] soc/intel/xeon_sp: Use common gpio.h include Replace the intelblocks/gpio.h, soc/gpio.h and soc/gpio_defs.h includes with the common gpio.h which includes soc/gpio.h which includes intelblocks/gpio.h which includes soc/gpio_defs.h. This patch also fixes alphabetic ordering of included headers. BUG=b:261778357 TEST=Able to build and boot. Signed-off-by: Dinesh Gehlot Change-Id: I8135dc918cb04c854dc003966b7657806a42bad9 Reviewed-on: https://review.coreboot.org/c/coreboot/+/72042 Reviewed-by: Elyes Haouas Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai --- src/soc/intel/xeon_sp/acpi/gpio.asl | 2 +- src/soc/intel/xeon_sp/cpx/chip.c | 2 +- src/soc/intel/xeon_sp/cpx/chip.h | 2 +- src/soc/intel/xeon_sp/lbg/soc_gpio.c | 3 +-- src/soc/intel/xeon_sp/skx/chip.c | 2 +- src/soc/intel/xeon_sp/skx/chip.h | 4 ++-- 6 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/soc/intel/xeon_sp/acpi/gpio.asl b/src/soc/intel/xeon_sp/acpi/gpio.asl index c7a9f9589e..ea00b03ee4 100644 --- a/src/soc/intel/xeon_sp/acpi/gpio.asl +++ b/src/soc/intel/xeon_sp/acpi/gpio.asl @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include +#include #include #include #include diff --git a/src/soc/intel/xeon_sp/cpx/chip.c b/src/soc/intel/xeon_sp/cpx/chip.c index 15bd5dec0e..21d6e1748e 100644 --- a/src/soc/intel/xeon_sp/cpx/chip.c +++ b/src/soc/intel/xeon_sp/cpx/chip.c @@ -6,8 +6,8 @@ #include #include #include +#include #include -#include #include #include #include diff --git a/src/soc/intel/xeon_sp/cpx/chip.h b/src/soc/intel/xeon_sp/cpx/chip.h index abd358efab..321073b57f 100644 --- a/src/soc/intel/xeon_sp/cpx/chip.h +++ b/src/soc/intel/xeon_sp/cpx/chip.h @@ -3,9 +3,9 @@ #ifndef _SOC_CHIP_H_ #define _SOC_CHIP_H_ +#include #include #include -#include #include #include diff --git a/src/soc/intel/xeon_sp/lbg/soc_gpio.c b/src/soc/intel/xeon_sp/lbg/soc_gpio.c index 7fd7a3ed87..01e13fc330 100644 --- a/src/soc/intel/xeon_sp/lbg/soc_gpio.c +++ b/src/soc/intel/xeon_sp/lbg/soc_gpio.c @@ -1,7 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include -#include +#include #include #include #include diff --git a/src/soc/intel/xeon_sp/skx/chip.c b/src/soc/intel/xeon_sp/skx/chip.c index 35e834aab3..924ce22bf6 100644 --- a/src/soc/intel/xeon_sp/skx/chip.c +++ b/src/soc/intel/xeon_sp/skx/chip.c @@ -3,8 +3,8 @@ #include #include #include +#include #include -#include #include #include #include diff --git a/src/soc/intel/xeon_sp/skx/chip.h b/src/soc/intel/xeon_sp/skx/chip.h index b852c4a128..0c0521178c 100644 --- a/src/soc/intel/xeon_sp/skx/chip.h +++ b/src/soc/intel/xeon_sp/skx/chip.h @@ -3,11 +3,11 @@ #ifndef _SOC_CHIP_H_ #define _SOC_CHIP_H_ -#include +#include #include #include -#include #include +#include struct soc_intel_xeon_sp_skx_config { /* Common struct containing soc config data required by common code */