From 0b53d8b883684a68b1e218f6c6ddb2a9d302558c Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Fri, 29 Jan 2021 19:17:24 +0530 Subject: soc/intel/alderlake: Remove pch.h from SoC directory Remove unnecessary include of soc/pch.h from - bootblock/pch.c - bootblock/report_platform.c - bootblock/uart.c Define PCIE_CLK_XXX macro inside chip.h for mb/devicetree.cb to consume. Change-Id: Ic08ef586d4590462434ba2c64e21dd802ccc6800 Signed-off-by: Eric Lai Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/50132 Reviewed-by: Angel Pons Reviewed-by: Tim Wawrzynczak Tested-by: build bot (Jenkins) --- src/soc/intel/alderlake/bootblock/pch.c | 1 - src/soc/intel/alderlake/bootblock/report_platform.c | 1 - src/soc/intel/alderlake/chip.h | 5 ++++- src/soc/intel/alderlake/include/soc/pch.h | 10 ---------- src/soc/intel/alderlake/uart.c | 1 - 5 files changed, 4 insertions(+), 14 deletions(-) delete mode 100644 src/soc/intel/alderlake/include/soc/pch.h diff --git a/src/soc/intel/alderlake/bootblock/pch.c b/src/soc/intel/alderlake/bootblock/pch.c index 662f33e1b7..3a92661f08 100644 --- a/src/soc/intel/alderlake/bootblock/pch.c +++ b/src/soc/intel/alderlake/bootblock/pch.c @@ -21,7 +21,6 @@ #include #include #include -#include #include #include #include diff --git a/src/soc/intel/alderlake/bootblock/report_platform.c b/src/soc/intel/alderlake/bootblock/report_platform.c index 8cc81c13a0..002b306e0c 100644 --- a/src/soc/intel/alderlake/bootblock/report_platform.c +++ b/src/soc/intel/alderlake/bootblock/report_platform.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include diff --git a/src/soc/intel/alderlake/chip.h b/src/soc/intel/alderlake/chip.h index f23b9d2566..70ceba7fdf 100644 --- a/src/soc/intel/alderlake/chip.h +++ b/src/soc/intel/alderlake/chip.h @@ -9,7 +9,6 @@ #include #include #include -#include #include #include #include @@ -20,6 +19,10 @@ #define MAX_HD_AUDIO_SNDW_LINKS 4 #define MAX_HD_AUDIO_SSP_LINKS 6 +#define PCIE_CLK_NOTUSED 0xFF +#define PCIE_CLK_LAN 0x70 +#define PCIE_CLK_FREE 0x80 + struct soc_intel_alderlake_config { /* Common struct containing soc config data required by common code */ diff --git a/src/soc/intel/alderlake/include/soc/pch.h b/src/soc/intel/alderlake/include/soc/pch.h deleted file mode 100644 index 89e8a8a1f7..0000000000 --- a/src/soc/intel/alderlake/include/soc/pch.h +++ /dev/null @@ -1,10 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#ifndef _SOC_ALDERLAKE_PCH_H_ -#define _SOC_ALDERLAKE_PCH_H_ - -#define PCIE_CLK_NOTUSED 0xFF -#define PCIE_CLK_LAN 0x70 -#define PCIE_CLK_FREE 0x80 - -#endif diff --git a/src/soc/intel/alderlake/uart.c b/src/soc/intel/alderlake/uart.c index 6e64e0faff..06618b294b 100644 --- a/src/soc/intel/alderlake/uart.c +++ b/src/soc/intel/alderlake/uart.c @@ -13,7 +13,6 @@ #include #include #include -#include #include #include -- cgit v1.2.3