From 12fc21b1cffcd8541abb534e2957f7f467e1667b Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Wed, 16 Jun 2021 16:57:21 +0200 Subject: [PATCH] soc/intel/broadwell: Rename `ramstage.h` This file only contains the `broadwell_run_reference_code()` function prototype (either a declaration or an inline stub definition). Rename this file to refcode.h and only include it where necessary. Tested with BUILD_TIMELESS=1, Purism Librem 13 v1 remains identical. Change-Id: I6513f45b8914a84312b27ef4860870a89fd0aab3 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/55582 Reviewed-by: Felix Held Tested-by: build bot (Jenkins) --- src/soc/intel/broadwell/gma.c | 1 - .../intel/broadwell/include/soc/{ramstage.h => refcode.h} | 7 ++----- src/soc/intel/broadwell/minihd.c | 1 - src/soc/intel/broadwell/northbridge.c | 2 +- src/soc/intel/broadwell/pch/adsp.c | 1 - src/soc/intel/broadwell/pch/hda.c | 1 - src/soc/intel/broadwell/pch/lpc.c | 1 - src/soc/intel/broadwell/pch/me.c | 1 - src/soc/intel/broadwell/pch/pch.c | 2 +- src/soc/intel/broadwell/pch/sata.c | 1 - src/soc/intel/broadwell/pch/serialio.c | 1 - src/soc/intel/broadwell/pch/usb_xhci.c | 1 - src/soc/intel/broadwell/refcode.c | 2 +- 13 files changed, 5 insertions(+), 17 deletions(-) rename src/soc/intel/broadwell/include/soc/{ramstage.h => refcode.h} (60%) diff --git a/src/soc/intel/broadwell/gma.c b/src/soc/intel/broadwell/gma.c index dcbd1e3af5..b3e010c65a 100644 --- a/src/soc/intel/broadwell/gma.c +++ b/src/soc/intel/broadwell/gma.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #include #include diff --git a/src/soc/intel/broadwell/include/soc/ramstage.h b/src/soc/intel/broadwell/include/soc/refcode.h similarity index 60% rename from src/soc/intel/broadwell/include/soc/ramstage.h rename to src/soc/intel/broadwell/include/soc/refcode.h index 3900c7339e..19c2e49bcd 100644 --- a/src/soc/intel/broadwell/include/soc/ramstage.h +++ b/src/soc/intel/broadwell/include/soc/refcode.h @@ -1,10 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef _BROADWELL_RAMSTAGE_H_ -#define _BROADWELL_RAMSTAGE_H_ - -#include -#include +#ifndef BROADWELL_REFCODE_H +#define BROADWELL_REFCODE_H #if CONFIG(HAVE_REFCODE_BLOB) void broadwell_run_reference_code(void); diff --git a/src/soc/intel/broadwell/minihd.c b/src/soc/intel/broadwell/minihd.c index 6d96eb363d..b73c1b3b57 100644 --- a/src/soc/intel/broadwell/minihd.c +++ b/src/soc/intel/broadwell/minihd.c @@ -7,7 +7,6 @@ #include #include #include -#include #include static const u32 minihd_verb_table[] = { diff --git a/src/soc/intel/broadwell/northbridge.c b/src/soc/intel/broadwell/northbridge.c index 623ab70887..76ea35f87a 100644 --- a/src/soc/intel/broadwell/northbridge.c +++ b/src/soc/intel/broadwell/northbridge.c @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include u8 systemagent_revision(void) diff --git a/src/soc/intel/broadwell/pch/adsp.c b/src/soc/intel/broadwell/pch/adsp.c index b4b0257c11..3cc7e12f2a 100644 --- a/src/soc/intel/broadwell/pch/adsp.c +++ b/src/soc/intel/broadwell/pch/adsp.c @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include diff --git a/src/soc/intel/broadwell/pch/hda.c b/src/soc/intel/broadwell/pch/hda.c index ba7d342fe5..ab348ea7c2 100644 --- a/src/soc/intel/broadwell/pch/hda.c +++ b/src/soc/intel/broadwell/pch/hda.c @@ -9,7 +9,6 @@ #include #include #include -#include #include static void codecs_init(u8 *base, u32 codec_mask) diff --git a/src/soc/intel/broadwell/pch/lpc.c b/src/soc/intel/broadwell/pch/lpc.c index 10cc9d8c60..13e4fd7e33 100644 --- a/src/soc/intel/broadwell/pch/lpc.c +++ b/src/soc/intel/broadwell/pch/lpc.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include diff --git a/src/soc/intel/broadwell/pch/me.c b/src/soc/intel/broadwell/pch/me.c index 6c01f07026..22db6a72f9 100644 --- a/src/soc/intel/broadwell/pch/me.c +++ b/src/soc/intel/broadwell/pch/me.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include diff --git a/src/soc/intel/broadwell/pch/pch.c b/src/soc/intel/broadwell/pch/pch.c index 20e243153a..da13503b90 100644 --- a/src/soc/intel/broadwell/pch/pch.c +++ b/src/soc/intel/broadwell/pch/pch.c @@ -7,7 +7,7 @@ #include #include #include -#include +#include /* TODO: for reproducibility purposes only */ #include #include #include diff --git a/src/soc/intel/broadwell/pch/sata.c b/src/soc/intel/broadwell/pch/sata.c index b8ef52714d..8343775888 100644 --- a/src/soc/intel/broadwell/pch/sata.c +++ b/src/soc/intel/broadwell/pch/sata.c @@ -7,7 +7,6 @@ #include #include #include -#include #include #include #include diff --git a/src/soc/intel/broadwell/pch/serialio.c b/src/soc/intel/broadwell/pch/serialio.c index 1d6773880a..601bf97629 100644 --- a/src/soc/intel/broadwell/pch/serialio.c +++ b/src/soc/intel/broadwell/pch/serialio.c @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include diff --git a/src/soc/intel/broadwell/pch/usb_xhci.c b/src/soc/intel/broadwell/pch/usb_xhci.c index fd36fad4a0..b766425df4 100644 --- a/src/soc/intel/broadwell/pch/usb_xhci.c +++ b/src/soc/intel/broadwell/pch/usb_xhci.c @@ -8,7 +8,6 @@ #include #include #include -#include #include #ifdef __SIMPLE_DEVICE__ diff --git a/src/soc/intel/broadwell/refcode.c b/src/soc/intel/broadwell/refcode.c index ae175b0f68..9d4bd2dce0 100644 --- a/src/soc/intel/broadwell/refcode.c +++ b/src/soc/intel/broadwell/refcode.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include static pei_wrapper_entry_t load_reference_code(void) {